generated from stegripe/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
35 lines (33 loc) · 997 Bytes
/
eslint.config.mjs
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
30
31
32
33
34
35
import { common, modules, node, prettier, typescript } from "@stegripe/eslint-config";
import { Linter } from "eslint";
/**
* @type {Linter.Config[]}
*/
const config = [
...common,
...modules,
...node,
...prettier,
...typescript,
{
ignores: ["**/node_modules", "**/dist"]
},
{
languageOptions: {
parserOptions: {
allowAutomaticSingleRunInference: true,
project: ["tsconfig.eslint.json", "packages/*/tsconfig.eslint.json"],
tsconfigRootDir: import.meta.dirname
}
},
rules: {
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"class-methods-use-this": "off",
"typescript/consistent-type-definitions": "off",
"typescript/no-base-to-string": "off",
"typescript/no-non-null-assertion": "off"
}
}
];
export default config;