-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
27 lines (27 loc) · 833 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
// @ts-check
/** @type import("@typescript-eslint/utils").TSESLint.Linter.Config */
module.exports = {
extends: ["@yudai-nkt"],
plugins: ["eslint-plugin"],
overrides: [
{
files: ["*.ts"],
parserOptions: { project: "./tsconfig.eslint.json" },
// Some errors cannot be resolved even with a DeepReadonly<T> utility,
// so disable this rule temporarily until an investigation is made.
rules: { "@typescript-eslint/prefer-readonly-parameter-types": "off" },
},
{
files: ["src/rules/*.ts"],
extends: ["plugin:eslint-plugin/rules-recommended"],
},
{
files: ["src/__tests__/rules/*.ts"],
extends: ["plugin:eslint-plugin/tests-recommended"],
},
{
files: ["scripts/*.ts"],
parserOptions: { project: "./scripts/tsconfig.json" },
},
],
};