-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
79 lines (69 loc) · 1.82 KB
/
index.js
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import js from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import importPlugin from "eslint-plugin-import";
import pluginPromise from "eslint-plugin-promise";
import vitest from "@vitest/eslint-plugin";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import globals from "globals";
export default [
js.configs.recommended,
eslintPluginPrettierRecommended,
importPlugin.flatConfigs.recommended,
pluginPromise.configs["flat/recommended"],
vitest.configs.recommended,
{
plugins: {
"simple-import-sort": simpleImportSort,
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
ecmaVersion: 2024,
sourceType: "module",
},
rules: {
"import/prefer-default-export": 0,
"simple-import-sort/imports": 2,
"simple-import-sort/exports": 2,
"no-dupe-class-members": 0,
"no-useless-constructor": 0,
"import/extensions": ["error", "ignorePackages"],
"no-console": 2,
"prettier/prettier": [
2,
{
singleQuote: false,
printWidth: 150,
semi: true,
trailingComma: "es5",
},
],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
ignores: [
// See https://help.github.com/ignore-files/ for more about ignoring files.
// dependencies
"/node_modules",
// testing
"/coverage",
//production
"/build",
// misc
".DS_Store",
".env.local",
".env.development.local",
".env.test.local",
".env.production.local",
"npm-debug.log*",
"yarn-debug.log*",
"yarn-error.log*",
"examples/",
"types/*",
"dist/*",
],
},
];