-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
54 lines (54 loc) · 1.18 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
{
"root": true,
"extends": [
"plugin:@wordpress/eslint-plugin/recommended",
"plugin:prettier/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": [ "@babel/preset-react" ]
},
"ecmaFeatures": {
"jsx": true,
"ecmaVersion": "es2023"
}
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"CLI": "readonly",
"FWP": true,
"jQuery": "readonly",
"ReadSpeaker": true,
"rspkr": true,
"wp": "readonly"
},
"rules": {
"semi": [ "warn", "always" ],
"no-unused-expressions": [ "error", { "allowTernary": true } ]
},
"overrides": [
{
"files": [ "*.{ts,tsx}" ],
"parser": "@typescript-eslint/parser",
"plugins": [ "@typescript-eslint" ],
"extends": [
"plugin:@wordpress/eslint-plugin/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/no-loss-of-precision": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "off",
"no-unused-expressions": [ "error", { "allowTernary": true } ]
},
"env": { "browser": true }
}
]
}