-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
35 lines (34 loc) · 1.01 KB
/
.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
29
30
31
32
33
34
35
const config = require("./packages/eslint-config/dist");
const globals = require("./packages/eslint-config/dist/globals");
module.exports = {
...config,
extends: [...config.extends, "./packages/eslint-config/dist/typescript-type-checking"],
globals: {
...config?.globals,
...globals.es2021,
},
overrides: [
...config.overrides,
{
files: ["*.ts", "*.mts", "*.cts", "*.tsx", ".mdx"],
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
},
{
files: ["packages/eslint-config/src/config/**/*.ts", "packages/eslint-config/src/typescript-type-checking.ts"],
rules: {
"perfectionist/sort-objects": "off",
},
},
],
root: true,
rules: {
...config.rules,
// Customize your rules
"no-console": "off",
"no-secrets/no-secrets": "off",
"unicorn/text-encoding-identifier-case": "off",
},
};