-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
26 lines (26 loc) · 1006 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"plugins": ["@typescript-eslint", "prettier"],
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"no-console": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
"@typescript-eslint/consistent-generic-constructors": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/prefer-function-type": "error"
},
"ignorePatterns": ["dist", "node_modules", "examples"]
}