-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
42 lines (42 loc) · 1.03 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
{
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
"parserOptions": {
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-unused-vars": [
"warn", {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-alert": 0,
"no-nested-ternary": 0,
"prettier/prettier": "off",
"no-shadow": "warn",
"camelcase": "warn",
"@wordpress/i18n-text-domain": ["error", {
"allowedTextDomain": ["templates-patterns-collection"]
}]
},
"ignorePatterns": ["**/vendor/**"]
}