forked from VKCOM/vk-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
23 lines (21 loc) · 886 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["import", "unicorn"],
"extends": [
"plugin:@vkontakte/eslint-plugin/typescript", // "Preset 1"
"plugin:prettier/recommended" // "Preset 2"
],
"rules": {
"@typescript-eslint/no-magic-numbers": "off", // [Reason] overrides "Preset 1",
"@typescript-eslint/no-unnecessary-condition": "off", // [Reason] overrides "Preset 1"
"@typescript-eslint/no-non-null-assertion": "off", // [Reason] overrides "Preset 1"
"@typescript-eslint/prefer-ts-expect-error": "off", // [Reason] overrides "Preset 1" (see rollup.config-legacy-types.mjs)
"@typescript-eslint/ban-ts-comment": "off", // [Reason] overrides "Preset 1" (see rollup.config-legacy-types.mjs)
"no-shadow": "off",
"unicorn/expiring-todo-comments": ["error"]
}
}