-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.json
36 lines (36 loc) · 1.22 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
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"ignorePatterns": ["test/**/*.js"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "explicit" }],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-require-imports": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "args": "after-used", "ignoreRestSiblings": false, "vars": "all", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-var-requires": "warn",
"eqeqeq": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-unused-vars": "off",
"no-warning-comments": "warn",
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}