-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.38 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'airbnb-base',
'plugin:prettier/recommended',
],
plugins: ['import'],
root: true,
env: {
es6: true,
node: true,
browser: true,
jest: true,
},
globals: {},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
codeFrame: true,
ecmaVersion: 6,
ecmaFeatures: {
impliedStrict: true,
},
},
rules: {
'prettier/prettier': 'error',
'valid-jsdoc': [
1,
{
requireParamDescription: true,
requireReturnDescription: false,
requireReturnType: true,
requireReturn: false,
prefer: { return: 'returns' },
},
],
'require-jsdoc': [
2,
{
require: {
FunctionDeclaration: true,
MethodDefinition: true,
ClassDeclaration: true,
},
},
],
'one-var': [2, { uninitialized: 'always' }],
'prefer-const': [
1,
{
destructuring: 'all',
ignoreReadBeforeAssign: false,
},
],
'no-param-reassign': 0,
// 'operator-linebreak': ['error', 'before'],
'eqeqeq': ['error', 'always', { null: 'ignore' }],
'import/no-mutable-exports': 1,
'import/prefer-default-export': 1,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
};