-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
66 lines (63 loc) · 1.43 KB
/
eslint.config.mjs
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
import pluginJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import { FlatCompat } from "@eslint/eslintrc";
const compat = new FlatCompat();
export default [
pluginJs.configs.recommended,
...compat.extends("airbnb-base"),
eslintConfigPrettier,
{
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-bitwise": "off",
"no-plusplus": "off",
"import/prefer-default-export": "off",
camelcase: "off",
},
plugins: {
"simple-import-sort": simpleImportSort,
},
ignores: [
"node_modules",
"dist",
"build",
".env",
".env.local",
".env.development.local",
".env.test.local",
".env.production.local",
"*.log",
".idea",
".vscode",
"*.sublime-project",
"*.sublime-workspace",
".DS_Store",
"Thumbs.db",
"public",
"coverage",
"*.min.js",
"*.min.css",
"*.png",
"*.jpg",
"*.jpeg",
"*.gif",
"*.svg",
"*.ico",
"*.webp",
".eslintrc",
".eslintrc.js",
".eslintrc.json",
".eslintrc.yml",
".eslintignore",
".prettierrc",
".prettierrc.js",
".prettierrc.json",
".prettierrc.yml",
".prettierignore",
"eslint.config.mjs",
"eslint.config.js",
],
},
];