mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 10:52:35 +02:00
chore: enable a few fixable ESLint rules (#6380)
* chore: enable react/jsx-one-expression-per-line * chore: enable import/first * chore: enable lines-between-class-members * revert class spacing Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
3cb0972b79
commit
16141fcd80
2 changed files with 2 additions and 3 deletions
|
@ -77,7 +77,6 @@ module.exports = {
|
|||
'no-underscore-dangle': OFF,
|
||||
curly: [WARNING, 'all'],
|
||||
'react/jsx-filename-extension': OFF,
|
||||
'react/jsx-one-expression-per-line': OFF,
|
||||
'react/no-array-index-key': OFF, // Sometimes its ok, e.g. non-changing data.
|
||||
'react/prop-types': OFF,
|
||||
'react/destructuring-assignment': OFF, // Too many lines.
|
||||
|
@ -97,7 +96,6 @@ module.exports = {
|
|||
WARNING,
|
||||
{disallowTypeAnnotations: false},
|
||||
],
|
||||
'import/first': OFF,
|
||||
'import/order': OFF,
|
||||
'import/prefer-default-export': OFF,
|
||||
'lines-between-class-members': OFF,
|
||||
|
|
|
@ -7,10 +7,11 @@
|
|||
|
||||
// Globby/Micromatch are the 2 libs we use in Docusaurus consistently
|
||||
|
||||
export {default as Globby} from 'globby';
|
||||
import Micromatch from 'micromatch'; // Note: Micromatch is used by Globby
|
||||
import path from 'path';
|
||||
|
||||
export {default as Globby} from 'globby';
|
||||
|
||||
// The default patterns we ignore when globbing
|
||||
// using _ prefix for exclusion by convention
|
||||
export const GlobExcludeDefault = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue