-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
40 lines (40 loc) · 1.81 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
module.exports = {
extends: "divid",
parserOptions: {
project: [
"./packages/property/tsconfig.json",
"./packages/property-filter-pretty/tsconfig.json",
"./packages/react-property-selectors/tsconfig.json",
"./packages/variant-listing/tsconfig.json",
],
},
rules: {
// Should be fixed in eslint-config-divid:
"@typescript-eslint/no-unused-vars": "off", // Should allow underscored?
// Enable these rules once code is fixed (or perhaps disable in eslint-config-divid):
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-redeclare": "off", // We want to name type same as const
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/init-declarations": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/prefer-enum-initializers": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-extra-non-null-assertion": "off",
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/no-base-to-string": "off",
},
};