-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.cjs
41 lines (34 loc) · 955 Bytes
/
eslint.config.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
// @ts-check
const js = require("@eslint/js");
const react = require("eslint-plugin-react");
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
const typescriptParser = require("@typescript-eslint/parser");
const prettierConfig = require("eslint-config-prettier");
module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2021,
sourceType: "module",
parser: typescriptParser,
globals: {
React: "readonly",
},
},
plugins: {
react,
"@typescript-eslint": typescriptEslint,
},
rules: {
...prettierConfig.rules,
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/explicit-module-boundary-types": "off",
},
},
prettierConfig,
{
ignores: ["node_modules", "dist", "pnpm-lock.json", "eslint.config.cjs", "test"],
},
];