-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
28 lines (28 loc) · 914 Bytes
/
.eslintrc.js
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
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:perfectionist/recommended-natural",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
],
parserOptions: {
ecmaVersion: "latest",
parser: "@typescript-eslint/parser",
project: true,
tsConfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "perfectionist", "sonarjs", "unicorn"],
root: true,
rules: {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"no-console": "error",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-null": "off",
"unicorn/number-literal-case": "off",
"unicorn/prefer-module": "off",
},
};