-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.35 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
module.exports = {
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"max-len": ["error", { "code": 120 }],
"newline-per-chained-call": ["off"],
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"src/test/**/*",
"**/*{.,_}{test,spec}.{ts,tsx,js,jsx}"
],
"optionalDependencies": false
}],
"class-methods-use-this": ["off"],
"lines-between-class-members": ["off"],
"object-curly-newline": [
"off",
{
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "consistent": true },
"ImportDeclaration": "never",
"ExportDeclaration": "never",
}
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"no-useless-constructor": "off",
"func-call-spacing": "off",
"no-spaced-func": "off",
"import/no-unresolved": "off",
"import/first": "off",
"@typescript-eslint/explicit-function-return-type": "off",
}
}
],
}