-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (50 loc) · 1.75 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
},
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".d.ts"]
}
}
},
"env": {
"browser": true,
"mocha": true
},
"rules": {
"max-len": ["error", { "code": 150 }],
"linebreak-style": ["error", "unix"],
"array-bracket-spacing": ["error", "always"],
"class-methods-use-this":"off",
"curly": ["error"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"object-literal-sort-keys": "off",
"object-curly-newline": ["error", { "ImportDeclaration": "never", "ExportDeclaration": "always" }],
"comma-dangle": ["error", "always-multiline"],
"arrow-parens": ["error", "as-needed"],
"eol-last": ["error", "always"],
"whitespace": ["off", "check-module"],
"ordered-imports": "off",
"quotes": ["error", "single", { "avoidEscape": true }],
"object-curly-spacing": ["error", "always"],
"one-line": ["off", "check-catch", "check-finally", "check-else", "check-open-brace", "check-whitespace"],
"brace-style": ["error", "stroustrup", { "allowSingleLine": false }],
"forin": "off",
"no-shadow": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/interface-name-prefix": ["error", "always"],
"@typescript-eslint/no-angle-bracket-type-assertion": ["error"],
"@typescript-eslint/explicit-member-accessibility": ["off"],
"@typescript-eslint/explicit-function-return-type": ["off"]
}
}