-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
41 lines (41 loc) · 1014 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
33
34
35
36
37
38
39
40
41
module.exports = {
root: true,
ignorePatterns: ['.eslintrc.js'],
extends: [
'airbnb',
'airbnb-typescript'
],
env: {
node : true,
es6 : true
},
parserOptions: {
ecmaVersion: 8,
sourceType: "module",
ecmaFeatures: {
impliedStrict: true
},
project: "./tsconfig.json"
},
settings: {
'import/resolver': {
node: {
extensions: ['.ts']
}
}
},
rules: {
"no-console": process.env.NODE_ENV === 'production' ? 2 : 0,
"no-debugger": process.env.NODE_ENV === 'production' ? 2 : 0,
"@typescript-eslint/indent": [2, "tab"],
"no-tabs": 0,
"max-len": 0,
"keyword-spacing": 0,
"@typescript-eslint/keyword-spacing": 0,
"no-extend-native": 0,
"func-names": 0,
"@typescript-eslint/space-before-function-paren": 0,
"no-restricted-syntax": 0,
"no-mixed-operators": 0
}
}