generated from chingu-voyages/voyage-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
45 lines (45 loc) · 1.33 KB
/
.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
38
39
40
41
42
43
44
45
module.exports = {
root: true,
env: { browser: true, es2020: true, node: true },
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
ignorePatterns: [
"dist",
".eslintrc.cjs",
".pnpm-lock.yaml",
"node_modules/*",
],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"prettier",
],
plugins: ["react-refresh", "prettier", "@tanstack/query"],
settings: { react: { version: "18.2" } },
overrides: [
{
files: ["*.yaml", "*.yml"],
plugins: ["yaml"],
extends: ["plugin:yaml/recommended"],
rules: {
"import/no-unresolved": "off",
"react/prop-types": "off",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"no-unused-vars": "off",
"no-undef": "off",
"prettier/prettier": ["error", {}, { usePrettierrc: true }],
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/prefer-query-object-syntax": "error",
"@tanstack/query/stable-query-client": "error",
"react/prop-types": "off",
"linebreak-style": 0,
"eslint linkebreak-style": [0, "error", "windows"],
},
},
],
};