forked from wagtail/eslint-config-wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
27 lines (27 loc) · 836 Bytes
/
index.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
module.exports = {
extends: ['eslint:recommended', 'airbnb', 'airbnb/hooks', 'prettier'],
rules: {
// See https://github.com/wagtail/wagtail/pull/9482.
'class-methods-use-this': 'off',
'id-length': [
'warn',
{
min: 2,
exceptions: ['x', 'y', 'e', 'i', 'j', 'k', 'd', 'n', '_', '$'],
},
],
// See https://github.com/wagtail/wagtail/pull/9483.
'max-classes-per-file': 'off',
'no-constant-binary-expression': 'error',
'no-new': ['warn'],
'no-var': ['off'],
'no-warning-comments': ['off'],
'object-shorthand': ['error', 'methods'],
'prefer-template': ['off'],
'react/jsx-boolean-value': ['off'],
'react/jsx-no-bind': ['off'],
'react/prefer-es6-class': ['off', 'never'],
'react/sort-comp': ['off'],
'react/prop-types': ['off'],
},
};