-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (42 loc) · 1.18 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
module.exports = {
root: true,
env: {
browser: false,
es2021: true,
mocha: true,
node: true,
},
plugins: ["@typescript-eslint"],
extends: [
'airbnb-base',
'airbnb-typescript/base',
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"prettier"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
project: './tsconfig.json'
},
rules: {
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-throw-literal": "warn",
"import/no-extraneous-dependencies": "warn",
"no-underscore-dangle": "warn",
"no-plusplus": "off",
"prefer-arrow-callback": "off",
"func-names": "off",
"implicit-arrow-linebreak": "off",
"max-len": ["error", { "code": 120 }],
'@typescript-eslint/quotes': ["error", "double"],
quotes: ["error", "double"],
semi: [2, "always"],
"no-console": "off",
"import/prefer-default-export": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": ["error", "WithStatement", "LabeledStatement", "ForInStatement", "BinaryExpression[operator='in']"],
},
};