forked from stellarwp/kadence-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
79 lines (77 loc) · 2.28 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
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
const path = require('path');
const eslintConfig = {
root: true,
parser: '@babel/eslint-parser',
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
settings: {
'import/resolver': {
node: {},
webpack: {
config: path.join(__dirname, '/webpack.config.js'),
},
},
},
globals: {
kt_blocks_params: 'readonly',
kadence_blocks_params: 'writeable',
kt_deregister_params: 'readonly',
kadence_blocks_user_params: 'readonly',
},
rules: {
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: ['default', 'kadence-blocks', 'kadence-starter-templates'],
},
],
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/named': 'off',
'no-unused-vars': 'off',
'react-hooks/exhaustive-deps': 'off',
'no-shadow': 'off',
'@wordpress/i18n-ellipsis': 'off',
'jsdoc/require-param': 'off',
'no-nested-ternary': 'off',
camelcase: 'off',
'no-undef': 'off',
'@wordpress/no-unsafe-wp-apis': 'off',
'react-hooks/rules-of-hooks': 'off',
'no-console': 'off',
'react/jsx-no-target-blank': 'off',
'no-var': 'off',
'array-callback-return': 'off',
'jsdoc/check-types': 'off',
'jsdoc/check-tag-names': 'off',
'jsdoc/newline-after-description': 'off',
'jsx-a11y/label-has-associated-control': 'off',
eqeqeq: 'off',
'no-unused-expressions': 'off',
'jsx-a11y/no-autofocus': 'off',
'@wordpress/i18n-translator-comments': 'off',
'jsdoc/check-line-alignment': 'off',
'no-useless-computed-key': 'off',
'@wordpress/no-unused-vars-before-return': 'off',
'react/no-unknown-property': 'off',
'react/jsx-key': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/no-undefined-types': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsdoc/valid-types': 'off',
'jsx-a11y/interactive-supports-focus': 'off',
'jsdoc/require-returns-description': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/aria-role': 'off',
'jsdoc/require-param-type': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'no-redeclare': 'off',
'import/default': 'off',
'@wordpress/i18n-no-collapsible-whitespace': 'off',
'jsx-a11y/alt-text': 'off',
'no-bitwise': 'off',
'jsdoc/require-returns-check': 'off',
'@wordpress/no-global-active-element': 'off',
},
ignorePatterns: [],
};
module.exports = eslintConfig;