-
Notifications
You must be signed in to change notification settings - Fork 40
/
.eslintrc.json
62 lines (59 loc) · 2.02 KB
/
.eslintrc.json
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
{
"env": { "browser": true, "es6": true, "node": true },
"parser": "@typescript-eslint/parser",
"parserOptions": { "sourceType": "module" },
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"rules": {
"no-return-await": "error",
"block-scoped-var": "error",
"default-case": "error",
"default-case-last": "error",
"default-param-last": "error",
"guard-for-in": "error",
"no-extend-native": "error",
"no-invalid-this": "error",
"no-useless-call": "error",
"no-void": "error",
"wrap-iife": "error",
"no-console": "error",
"no-await-in-loop": "error",
"no-template-curly-in-string": "error",
"require-atomic-updates": "error",
"no-useless-backreference": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": { "delimiter": "semi", "requireLast": true },
"singleline": { "delimiter": "semi", "requireLast": false }
}
],
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/semi": ["warn", "always"],
"@typescript-eslint/interface-name-prefix": "off",
"curly": "warn",
"eqeqeq": ["warn", "always"],
"no-redeclare": "warn",
"no-throw-literal": "warn",
"prettier/prettier": 0
}
}