-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
45 lines (45 loc) · 1.37 KB
/
.eslintrc.cjs
File metadata and controls
45 lines (45 loc) · 1.37 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
45
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"airbnb-base",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh", "prettier", "only-warn"],
rules: {
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
// "prettier/prettier": [
// "error",
// {
// printWidth: 100,
// endOfLine: "auto",
// tabWidth: 2,
// useTabs: false,
// trailingComma: "all",
// semi: true,
// singleQuote: false,
// },
// ],
quotes: "off",
"max-len": [
"error",
{
code: 200, // Maksimum satır karakter sayısı
comments: 200, // Yorumlar için ayrı maksimum karakter sayısı
ignoreUrls: true, // URL'leri kuralın dışında tut
ignoreStrings: true, // Stringleri kuralın dışında tut
ignoreTemplateLiterals: true, // Template literal ifadelerini kuralın dışında tut
},
],
"import/no-unresolved": "off",
"react/function-component-definition": "off",
"no-confusing-arrow": "off",
"import/extensions": "off",
},
};