-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.68 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
module.exports = {
env: { browser: true, node: true },
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"import",
"simple-import-sort",
// 'prettier' commented as we don't want to run prettier through eslint because of performance degradation
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
],
rules: {
/**
* eslint-plugin-import @see https://github.com/benmosher/eslint-plugin-import
*/
"import/order": 0, // turn off in favor of eslint-plugin-simple-import-sort
"import/no-unresolved": 0,
"import/no-duplicates": 1,
/**
* eslint-plugin-simple-import-sort @see https://github.com/lydell/eslint-plugin-simple-import-sort
*/
"sort-imports": 0, // we use eslint-plugin-import instead
"simple-import-sort/imports": 0,
"simple-import-sort/exports": 0,
/**
* @typescript-eslint/eslint-plugin @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
*/
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-non-null-assertion": 0,
/**
* ESLint core rules @see https://eslint.org/docs/rules/
*/
"no-case-declarations": 0,
"no-empty": 0,
},
};