generated from greguintow/typescript-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
73 lines (73 loc) · 2.09 KB
/
.eslintrc
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
65
66
67
68
69
70
71
72
73
{
"parser": "@typescript-eslint/parser",
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint-config-airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 3,
"sourceType": "module"
},
"plugins": ["import", "prettier", "@typescript-eslint"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".js"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"semi": ["error", "never"],
"comma-dangle": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
// "one-var": "off",
"no-var": "off",
"no-underscore-dangle": "off",
"import/no-unresolved": "error",
"import/extensions": ["error", "never"],
"import/no-extraneous-dependencies": "off",
"object-shorthand": "off",
"no-unused-vars": "off",
"no-extra-parens": "off",
"prefer-const": "off",
"@typescript-eslint/no-extra-parens": ["off"],
"no-case-declarations": "off",
"prefer-destructuring": "off",
"import/prefer-default-export": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-implicity-any": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/semi": ["error", "never"],
"linebreak-style": ["error", "unix"],
"prettier/prettier": "error",
"quotes": ["error", "single"]
}
}