-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
48 lines (48 loc) · 1.26 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: {
node: true,
jest: true,
browser: false,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
ecmaFeatures: {
jsx: false,
},
},
extends: [
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
],
plugins: ["@typescript-eslint", "simple-import-sort", "unused-imports"],
rules: {
"prettier/prettier": ["error"],
"import/prefer-default-export": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"no-nested-ternary": "off",
"no-restricted-syntax": "off",
"no-plusplus": "off",
"require-await": "error",
"simple-import-sort/imports": "error",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-ts-ignore": "off",
},
ignorePatterns: ["build", "node_modules"],
overrides: [
{
files: ["**/*.js", "**/*.jsx"],
rules: {
"no-undef": "error",
},
},
],
};