-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
38 lines (38 loc) · 1.16 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
// Need eslint-plugin-prettier
"prettier"
],
"extends": [
// Base ESLint recommended rules
"eslint:recommended",
// ESLint typescript rules
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
"plugin:@typescript-eslint/recommended",
// Prettier rules, 'eslint-config-prettier', Turns off all rules that are unnecessary or might conflict with Prettier.
// https://github.com/prettier/eslint-config-prettier#installation
"prettier"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/semi": "off",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}