-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.json
84 lines (84 loc) · 2.4 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-base",
"plugin:import/typescript",
"airbnb-typescript/base",
"plugin:storybook/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-lonely-if": "off",
"indent": "off",
"spaced-comment": "warn",
"camelcase": "warn",
"no-var": "warn",
"lines-between-class-members": "warn",
"prefer-arrow-callback": "warn",
"arrow-body-style": "warn",
"prefer-template": "warn",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"no-underscore-dangle": "warn",
"import/no-unresolved": "warn",
"no-return-assign": "warn",
"class-methods-use-this": ["warn", { "exceptMethods": ["render"] }],
"array-callback-return": "warn", // TODO: Check this if needed ["warn", { "checkForEach": false }]
"consistent-return": "warn",
"no-unused-expressions": "warn",
"import/no-dynamic-require": "warn",
"prefer-destructuring": "warn", // TODO: Turn this on?
"object-shorthand": "warn",
"eqeqeq": "warn",
"prefer-const": "warn",
"no-empty-pattern": "warn",
"import/newline-after-import": "warn",
"vars-on-top": "warn",
"no-shadow": "warn",
"no-restricted-globals": "warn",
"no-prototype-builtins": "warn",
"no-useless-concat": "warn",
"no-unneeded-ternary": "warn",
"no-useless-escape": "warn",
"no-await-in-loop": "warn",
"curly": "warn",
"no-unused-vars": "warn",
"no-nested-ternary": "warn",
"import/order": "warn",
"no-restricted-syntax": "warn", // TODO: check this - disables for-in related error
"default-case-last": "warn",
"no-restricted-exports": "warn",
"no-restricted-imports": ["error",
{
"name": "@stencil/core/internal",
"message": "Use @stencil/core instead."
}
],
"radix": ["error", "as-needed"],
"no-use-before-define": "off",
"no-console": "off",
"no-undef": "off",
"function-paren-newline": "off",
"dot-notation": "off",
"no-plusplus": "off",
"no-param-reassign": ["error", { "props": false }]
}
}