-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
61 lines (60 loc) · 1.31 KB
/
.eslintrc.cjs
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// @ts-check
const { defineConfig } = require("eslint-define-config");
module.exports = defineConfig({
root: true,
extends: [
"with-tsconfig",
"plugin:react-hooks/recommended",
"plugin:@eslint-react/all-legacy",
],
rules: {
"no-console": [
"warn",
{
allow: [
"info",
"warn",
"error",
],
},
],
"sonarjs/no-duplicate-string": "warn",
"@typescript-eslint/no-redeclare": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"tailwindcss/no-custom-classname": "off",
"security/detect-object-injection": "off",
},
ignorePatterns: ["node_modules/", "dist/", "src-tauri", "updater"],
overrides: [
{
files: [
"scripts/**/*.ts",
"./*.config.ts",
".eslintrc.cjs",
],
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
},
parserOptions: {
project: "tsconfig.node.json",
},
},
{
files: [
"src/i18n/i18n-*.@(ts|tsx)",
],
rules: {
"unicorn/no-abusive-eslint-disable": "off",
},
},
{
files: [
"src/**/*.css.ts",
],
rules: {
"sonarjs/no-duplicate-string": "off",
},
},
],
});