-
Notifications
You must be signed in to change notification settings - Fork 73
/
.eslintrc.json
27 lines (27 loc) · 986 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
27
{
"extends": [
"eslint:recommended", // recommended ESLint rules
"plugin:@typescript-eslint/recommended", // recommended rules from @typescript-eslint/eslint-plugin
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display Prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
"plugins": ["@typescript-eslint", "prettier"],
"root": true,
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"ignorePatterns": ["build/", "dist/", "test/", "docs/", "samples/"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"no-console": "off",
"spaced-comment": ["error", "always", { "markers": ["/"] }]
}
}