-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.eslintrc
91 lines (91 loc) · 1.93 KB
/
.eslintrc
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"env": {
"browser": true
},
"extends": "plugin:@wordpress/eslint-plugin/recommended",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module"
},
"ignorePatterns": [ "node_modules", "assets" ],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"prefer-destructuring": [
"warn",
{
"array": false,
"object": true
},
{
"enforceForRenamedProperties": false
}
],
"array-bracket-spacing": [
"warn",
"always",
{
"arraysInArrays": false,
"objectsInArrays": false
}
],
"key-spacing": [
"warn",
{
"beforeColon": false,
"afterColon": true
}
],
"object-curly-spacing": [
"warn",
"always",
{
"arraysInObjects": true,
"objectsInObjects": false
}
],
"prettier/prettier": ["off"],
"react-hooks/rules-of-hooks": ["warn"],
"dot-notation": ["off"],
"@wordpress/no-unsafe-wp-apis": ["warn"],
"no-undef": ["warn"],
"no-shadow": ["warn"],
"@typescript-eslint/no-shadow": "warn",
"@wordpress/no-base-control-with-label-without-id": ["warn"],
"no-unused-vars": ["warn"],
"@typescript-eslint/no-unused-vars": "warn",
"jsdoc/require-returns-description": ["warn"],
"no-unused-expressions": ["warn"],
"jsdoc/require-returns-type": ["warn"],
"no-nested-ternary": ["warn"],
"no-console": "warn",
"jsdoc/require-param-type": "warn",
"jsdoc/no-undefined-types": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"import/no-extraneous-dependencies": "warn",
"jsx-a11y/label-has-associated-control": "warn",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/no-autofocus": "warn"
}
}