-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
.eslintrc.js
32 lines (32 loc) · 715 Bytes
/
.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
module.exports = {
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
parserOptions: {
ecmaVersion: 2021,
requireConfigFile: false,
babelOptions: {
presets: [require.resolve('@wordpress/babel-preset-default')],
},
},
root: true,
env: {
browser: true,
es6: true,
jquery: true,
},
rules: {
'@wordpress/no-global-event-listener': 0, // Disable. We don't use React-based components.
'space-before-function-paren': 0,
camelcase: 0,
'jsx-a11y/label-has-associated-control': 0,
'no-undef': 0,
'no-shadow': 0,
'no-lonely-if': 0,
'no-console': ['error', { allow: ['warn', 'error', 'table'] }],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
};