-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc.js
48 lines (48 loc) · 1.62 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
47
48
module.exports = {
env: {
browser: true,
es6: true,
node: true,
amd: true,
},
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
parserOptions: {
tsconfigRootDir: __dirname,
project: "./tsconfig.json",
ecmaFeatures: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
},
},
plugins: ["simple-import-sort"],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/no-explicit-any": 0,
"no-void": 0,
"import/named": 0,
"import/prefer-default-export": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/ban-ts-comment": 0,
"jsx-a11y/anchor-is-valid": 0,
"no-console": ["error", { allow: ["warn", "error", "debug"] }],
},
settings: {},
ignorePatterns: [
"test/**/*",
".prettierrc.js",
"jest.config.js",
"jest.setup.ts",
"utils.d.ts",
"utils.js",
".eslintrc.js",
],
};