-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
37 lines (37 loc) · 861 Bytes
/
.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
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["react", "react-hooks", "@typescript-eslint"],
settings: {
react: {
version: "detect",
},
},
ignorePatterns: ["dist", "node_modules", "build", "scripts", "webpack", "*.cjs"],
rules: {
"prettier/prettier": [
"error",
{
useTabs: true,
tabWidth: 2,
semi: true,
singleQuote: false,
printWidth: 100,
endOfLine: "lf",
},
],
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "import", next: "*" },
{ blankLine: "never", prev: "import", next: "import" },
],
"react/react-in-jsx-scope": "off",
eqeqeq: ["error", "always"],
},
};