-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.js
53 lines (52 loc) · 1.08 KB
/
eslint.config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import jsConfigs from "@eslint/js";
import tsPlugin from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import reactPlugin from "eslint-plugin-react";
import globals from "globals";
import autoImports from "./.wxt/eslint-auto-imports.mjs";
export default [
autoImports,
jsConfigs.configs.recommended,
reactPlugin.configs.flat.recommended,
{
ignores: [".wxt/", ".output/"],
},
{
files: ["**/*.{ts,tsx,js,mjs,jsx}"],
languageOptions:
{
parser: tsParser,
globals: {
React: true,
JSX: true,
...globals.browser
},
ecmaVersion: "latest",
sourceType: "module",
},
settings: {
react: {
version: "detect"
}
},
plugins: {
"@typescript-eslint": tsPlugin
}
},
{
rules:
{
"no-unused-vars": "off",
"no-undef": "error",
"semi": ["error", "always"],
"quotes": ["error", "double"],
"indent": ["warn", "tab", { "SwitchCase": 1 }],
"no-empty": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"args": "none"
}],
}
}
];