Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 95bbbf7

Browse files
committed
add unnamedRootBase rule. sort rules.
1 parent d0de1b0 commit 95bbbf7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.eslintrc.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,26 @@ module.exports = {
2424
version: 'detect'
2525
},
2626
jsdoc: {
27+
unnamedRootBase: ['props'],
2728
tagNamePreference: {
2829
returns: 'return'
2930
}
3031
}
3132
},
3233
plugins: ['react', 'react-hooks', 'jsx-a11y', 'prettier', 'jsdoc'],
3334
rules: {
35+
'func-style': ['error', 'declaration'],
36+
'jsdoc/check-indentation': 1,
37+
'jsdoc/check-line-alignment': [1, 'always'],
3438
'jsx-a11y/anchor-is-valid': 'off',
39+
'no-console': ['error', {allow: ['warn', 'error']}],
40+
'prettier/prettier': 'error',
3541
'react/react-in-jsx-scope': 'off',
3642
'react/jsx-filename-extension': [
3743
1,
3844
{
3945
extensions: ['.js', '.jsx']
4046
}
41-
],
42-
'prettier/prettier': 'error',
43-
'func-style': ['error', 'declaration'],
44-
'jsdoc/check-indentation': 1,
45-
'jsdoc/check-line-alignment': [1, 'always'],
46-
'no-console': ['error', {allow: ['warn', 'error']}]
47+
]
4748
}
4849
}

0 commit comments

Comments
 (0)