-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
41 lines (40 loc) · 1.09 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
const testFilesGlob = ['**/*.test.*.js', '**/*.test.js', '**/__mocks__/**/*.js'];
module.exports = {
root: true,
extends: ['airbnb/base', 'plugin:lodash/recommended', 'plugin:import/errors', 'plugin:import/warnings'],
parser: 'babel-eslint',
env: {
node: true,
jest: true,
},
overrides: [{
files: testFilesGlob,
rules: {
camelcase: ['off'],
'prefer-arrow-callback': ['off'],
'func-names': ['off'],
'no-use-before-define': ['off'],
},
}],
rules: {
'import/default': ['error'],
'import/named': ['error'],
'import/namespace': ['error', { allowComputed: false }],
'import/prefer-default-export': ['warn'],
'linebreak-style': 'off',
'max-len': [
'error',
{
code: 120,
ignoreUrls: true,
ignoreRegExpLiterals: true,
},
],
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'no-return-assign': ['error', 'except-parens'],
radix: 'off',
'class-methods-use-this': 'off',
'no-mixed-operators': 'off',
'no-underscore-dangle': 'off',
},
};