-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
29 lines (29 loc) · 851 Bytes
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: { node: true, es6: true },
extends: ["eslint:recommended", "plugin:prettier/recommended"],
overrides: [
{
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
],
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
rules: {
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/non-nullable-type-assertion-style": "off",
"@typescript-eslint/no-non-null-assertion": "off",
},
},
{
files: ["*.js", "*.jsx", "*.cjs"],
},
],
}