Skip to content

Commit 8443f69

Browse files
committed
eslint ignore
1 parent 01db1d0 commit 8443f69

File tree

1 file changed

+41
-37
lines changed

1 file changed

+41
-37
lines changed

eslint.config.mjs

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import prettierExtends from "eslint-config-prettier";
66
import { fixupPluginRules } from "@eslint/compat";
77
import globals from "globals";
88
import tseslint from "typescript-eslint";
9+
import { globalIgnores } from "eslint/config";
910

1011
const globalToUse = {
1112
...globals.browser,
@@ -15,46 +16,49 @@ const globalToUse = {
1516
...globals.node,
1617
};
1718

18-
export default tseslint.config({
19-
extends: [
20-
{
21-
ignores: ["dist/**", "bin/**", "docs/**", ".yarn/**"],
22-
},
23-
prettierExtends,
24-
eslint.configs.recommended,
25-
...tseslint.configs.recommended,
26-
],
27-
plugins: {
28-
prettierPlugin,
29-
"unused-imports": fixupPluginRules(unusedImportsPlugin),
30-
},
31-
rules: {
32-
"@typescript-eslint/no-this-alias": "off",
33-
"@typescript-eslint/no-unused-expressions": "off",
34-
"no-useless-escape": "off",
35-
"no-prototype-builtins": "off",
36-
"no-undef": "off",
37-
"@typescript-eslint/no-require-imports": "off",
38-
"@typescript-eslint/no-unused-vars": "off",
39-
"linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"],
40-
quotes: ["error", "double"],
41-
semi: ["error", "always"],
42-
"@typescript-eslint/ban-ts-comment": "off",
43-
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
44-
"@typescript-eslint/consistent-type-imports": [
45-
"error",
19+
export default tseslint.config([
20+
{
21+
extends: [
4622
{
47-
prefer: "type-imports",
23+
ignores: ["dist/**", "bin/**", "docs/**", ".yarn/**"],
4824
},
25+
prettierExtends,
26+
eslint.configs.recommended,
27+
...tseslint.configs.recommended,
4928
],
50-
"@typescript-eslint/no-explicit-any": "off",
51-
},
52-
languageOptions: {
53-
globals: globalToUse,
54-
parserOptions: {
55-
ecmaFeatures: {
56-
jsx: true,
29+
plugins: {
30+
prettierPlugin,
31+
"unused-imports": fixupPluginRules(unusedImportsPlugin),
32+
},
33+
rules: {
34+
"@typescript-eslint/no-this-alias": "off",
35+
"@typescript-eslint/no-unused-expressions": "off",
36+
"no-useless-escape": "off",
37+
"no-prototype-builtins": "off",
38+
"no-undef": "off",
39+
"@typescript-eslint/no-require-imports": "off",
40+
"@typescript-eslint/no-unused-vars": "off",
41+
"linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"],
42+
quotes: ["error", "double"],
43+
semi: ["error", "always"],
44+
"@typescript-eslint/ban-ts-comment": "off",
45+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
46+
"@typescript-eslint/consistent-type-imports": [
47+
"error",
48+
{
49+
prefer: "type-imports",
50+
},
51+
],
52+
"@typescript-eslint/no-explicit-any": "off",
53+
},
54+
languageOptions: {
55+
globals: globalToUse,
56+
parserOptions: {
57+
ecmaFeatures: {
58+
jsx: true,
59+
},
5760
},
5861
},
5962
},
60-
});
63+
globalIgnores([".yarn/", ".expo/", ".idea/", "android/", "ios/"]),
64+
]);

0 commit comments

Comments
 (0)