-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
54 lines (54 loc) · 1.31 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
rules: {
'no-tabs': 0,
indent: ['error', 'tab', { SwitchCase: 1 }],
'prettier/prettier': [
2,
{
useTabs: true,
tabWidth: 4,
printWidth: 100,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
parenSpacing: false,
bracketSameLine: false,
semi: true,
arrowParens: 'always',
},
{
usePrettierrc: false,
},
],
'jsdoc/check-alignment': 1,
'jsdoc/check-examples': 0,
'jsdoc/check-indentation': 1,
'jsdoc/check-param-names': 1,
'jsdoc/check-tag-names': 1,
'jsdoc/check-types': 1,
'jsdoc/newline-after-description': 1,
'jsdoc/no-undefined-types': 1,
'jsdoc/require-description': 1,
'jsdoc/require-jsdoc': [
0,
{
publicOnly: true,
exemptEmptyFunctions: true,
},
],
'jsdoc/require-param': [1, { enableFixer: false }],
'jsdoc/require-param-description': 1,
'jsdoc/require-param-name': 1,
'jsdoc/require-param-type': 1,
'jsdoc/require-returns': 1,
'jsdoc/require-returns-check': 1,
'jsdoc/require-returns-type': 1,
'jsdoc/valid-types': 1,
'react/react-in-jsx-scope': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'@wordpress/dependency-group': 0,
'import/no-unresolved': [2, { ignore: ['^@wordpress/'] }],
},
};