-
Notifications
You must be signed in to change notification settings - Fork 284
/
.eslintrc.js
36 lines (35 loc) · 1.07 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
module.exports = {
parser: "@typescript-eslint/parser",
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
extends: [
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
plugins: ["@typescript-eslint", "prettier"],
rules: {
"no-unused-vars": [
"warn",
{argsIgnorePattern: "^_", varsIgnorePattern: "^_"},
],
"no-prototype-builtins": "off",
"no-useless-escape": "warn",
"prettier/prettier": "error",
"no-console": "off",
"no-var": "warn",
"prefer-const": "warn",
"no-constant-condition": "off",
"no-inner-declarations": "off",
"no-dupe-class-members": "off",
"require-atomic-updates": "off", // until https://github.com/eslint/eslint/issues/11899
"no-throw-literal": "error",
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
//"prettier/prettier": "warn",
"no-restricted-imports": ["error"],
},
};