@@ -6,6 +6,7 @@ import prettierExtends from "eslint-config-prettier";
6
6
import { fixupPluginRules } from "@eslint/compat" ;
7
7
import globals from "globals" ;
8
8
import tseslint from "typescript-eslint" ;
9
+ import { globalIgnores } from "eslint/config" ;
9
10
10
11
const globalToUse = {
11
12
...globals . browser ,
@@ -15,46 +16,49 @@ const globalToUse = {
15
16
...globals . node ,
16
17
} ;
17
18
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 : [
46
22
{
47
- prefer : "type-imports" ,
23
+ ignores : [ "dist/**" , "bin/**" , "docs/**" , ".yarn/**" ] ,
48
24
} ,
25
+ prettierExtends ,
26
+ eslint . configs . recommended ,
27
+ ...tseslint . configs . recommended ,
49
28
] ,
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
+ } ,
57
60
} ,
58
61
} ,
59
62
} ,
60
- } ) ;
63
+ globalIgnores ( [ ".yarn/" , ".expo/" , ".idea/" , "android/" , "ios/" ] ) ,
64
+ ] ) ;
0 commit comments