-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.eslintrc
52 lines (52 loc) · 1.76 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
{
"root": true,
"env": {
"browser": true
},
"extends": "plugin:@wordpress/eslint-plugin/recommended",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest"
},
"ignorePatterns": ["**/vendor/**", "**/build/**", "**/*.min.js", "**/node_modules/**"],
"rules": {
"@wordpress/i18n-text-domain": ["error", {
"allowedTextDomain": ["feedzy-rss-feeds"]
}],
"@wordpress/i18n-no-flanking-whitespace": "error",
"@wordpress/data-no-store-string-literals": "error",
"@wordpress/wp-global-usage": "error",
"prettier/prettier": "warn",
"import/no-extraneous-dependencies": "warn",
"prefer-const": "warn",
"dot-notation": "warn",
"react/jsx-key": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"no-undef": "warn",
"object-shorthand": "warn",
"no-else-return": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"camelcase": "warn",
"jsdoc/check-line-alignment": "warn",
"jsdoc/check-alignment": "warn",
"jsx-a11y/label-has-associated-control": "warn",
"react/no-unknown-property": "warn",
"@wordpress/no-unused-vars-before-return": "warn",
"jsdoc/empty-tags": "warn",
"no-lonely-if": "warn",
"no-var": "warn",
"no-unused-vars": "warn",
"no-console": "warn",
"jsx-a11y/alt-text": "warn",
"react/no-deprecated": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/no-autofocus": "warn",
"no-nested-ternary": "warn",
"jsdoc/require-param": "warn",
"jsdoc/require-returns-description": "warn",
"jsdoc/require-returns-type": "warn"
}
}