-
Notifications
You must be signed in to change notification settings - Fork 247
Expand file tree
/
Copy patheslint.config.mjs
More file actions
44 lines (42 loc) · 1.18 KB
/
Copy patheslint.config.mjs
File metadata and controls
44 lines (42 loc) · 1.18 KB
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
import nextConfig from "eslint-config-next";
import prettier from "eslint-plugin-prettier";
import reactCompiler from "eslint-plugin-react-compiler";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import unusedImports from "eslint-plugin-unused-imports";
import tseslint from "typescript-eslint";
const eslintConfig = [
...nextConfig,
{
plugins: {
"simple-import-sort": simpleImportSort,
"unused-imports": unusedImports,
prettier: prettier,
"react-compiler": reactCompiler,
},
rules: {
"prettier/prettier": "error",
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"react-compiler/react-compiler": "error",
},
},
{
files: ["**/*.ts", "**/*.tsx"],
plugins: {
"@typescript-eslint": tseslint.plugin,
},
rules: {
"@typescript-eslint/no-unused-vars": "error",
},
},
{
files: ["src/app/how-terminals-work/demos/**/*.tsx"],
rules: {
"react/no-unescaped-entities": "off",
"react/jsx-no-comment-textnodes": "off",
},
},
];
export default eslintConfig;