forked from graphif/project-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 897 Bytes
/
eslint.config.js
File metadata and controls
29 lines (28 loc) · 897 Bytes
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
import pluginJs from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import pluginReact from "eslint-plugin-react";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
settings: { react: { version: "detect" } },
languageOptions: { globals: globals.browser },
},
// https://github.com/eslint/eslint/discussions/18304
{
ignores: ["src-tauri/", "dist/"],
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
pluginReact.configs.flat["jsx-runtime"],
eslintPluginPrettierRecommended,
// 2024/10/23 这里的rules不能写在上面,否则会被覆盖
{
rules: {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
];