1
- import js from " @eslint/js" ;
2
- import globals from " globals" ;
3
- import importPlugin from " eslint-plugin-import" ;
4
- import localRules from " eslint-plugin-local-rules" ;
5
- import wcPlugin from " eslint-plugin-wc" ;
6
- import litPlugin from " eslint-plugin-lit" ;
7
- import litA11yPlugin from " eslint-plugin-lit-a11y" ;
8
- import storybookPlugin from " eslint-plugin-storybook" ;
1
+ import js from ' @eslint/js' ;
2
+ import globals from ' globals' ;
3
+ import importPlugin from ' eslint-plugin-import' ;
4
+ import localRules from ' eslint-plugin-local-rules' ;
5
+ import wcPlugin from ' eslint-plugin-wc' ;
6
+ import litPlugin from ' eslint-plugin-lit' ;
7
+ import litA11yPlugin from ' eslint-plugin-lit-a11y' ;
8
+ import storybookPlugin from ' eslint-plugin-storybook' ;
9
9
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' ;
10
10
import tseslint from 'typescript-eslint' ;
11
11
@@ -18,11 +18,11 @@ export default [
18
18
// Global ignores
19
19
{
20
20
ignores : [
21
- " **/rollup.config.js" ,
22
- " **/vite.config.ts" ,
23
- " src/external" ,
24
- " src/packages/core/icon-registry/icons" ,
25
- " src/packages/core/icon-registry/icons.ts"
21
+ ' **/rollup.config.js' ,
22
+ ' **/vite.config.ts' ,
23
+ ' src/external' ,
24
+ ' src/packages/core/icon-registry/icons' ,
25
+ ' src/packages/core/icon-registry/icons.ts' ,
26
26
] ,
27
27
} ,
28
28
@@ -35,52 +35,52 @@ export default [
35
35
} ,
36
36
globals : {
37
37
...globals . browser ,
38
- }
38
+ } ,
39
39
} ,
40
40
plugins : {
41
41
import : importPlugin ,
42
- " local-rules" : localRules ,
43
- "wc" : wcPlugin ,
44
- " lit" : litPlugin ,
45
- " lit-a11y" : litA11yPlugin ,
46
- " storybook" : storybookPlugin
42
+ ' local-rules' : localRules ,
43
+ wc : wcPlugin ,
44
+ lit : litPlugin ,
45
+ ' lit-a11y' : litA11yPlugin ,
46
+ storybook : storybookPlugin ,
47
47
} ,
48
48
rules : {
49
- semi : [ " warn" , " always" ] ,
50
- " no-unused-vars" : " warn" ,
51
- " no-var" : " error" ,
52
- " import/no-unresolved" : " off" ,
53
- " import/order" : [ " warn" , { " groups" : [ " builtin" , " parent" , " sibling" , " index" , " external" ] } ] ,
54
- " import/no-self-import" : " error" ,
55
- " import/no-cycle" : [ " error" , { " maxDepth" : 6 , " allowUnsafeDynamicCyclicDependency" : true } ] ,
56
- " local-rules/bad-type-import" : " error" ,
57
- " local-rules/enforce-element-suffix-on-element-class-name" : " error" ,
58
- " local-rules/enforce-umb-prefix-on-element-name" : " error" ,
59
- " local-rules/ensure-relative-import-use-js-extension" : " error" ,
60
- " local-rules/no-direct-api-import" : " warn" ,
61
- " local-rules/prefer-import-aliases" : " error" ,
62
- " local-rules/prefer-static-styles-last" : " warn" ,
63
- " local-rules/umb-class-prefix" : " error" ,
64
- " local-rules/no-relative-import-to-import-map-module" : " error" ,
65
- " local-rules/enforce-umbraco-external-imports" : [
66
- " error" ,
49
+ semi : [ ' warn' , ' always' ] ,
50
+ ' no-unused-vars' : ' warn' ,
51
+ ' no-var' : ' error' ,
52
+ ' import/no-unresolved' : ' off' ,
53
+ ' import/order' : [ ' warn' , { groups : [ ' builtin' , ' parent' , ' sibling' , ' index' , ' external' ] } ] ,
54
+ ' import/no-self-import' : ' error' ,
55
+ ' import/no-cycle' : [ ' error' , { maxDepth : 6 , allowUnsafeDynamicCyclicDependency : true } ] ,
56
+ ' local-rules/bad-type-import' : ' error' ,
57
+ ' local-rules/enforce-element-suffix-on-element-class-name' : ' error' ,
58
+ ' local-rules/enforce-umb-prefix-on-element-name' : ' error' ,
59
+ ' local-rules/ensure-relative-import-use-js-extension' : ' error' ,
60
+ ' local-rules/no-direct-api-import' : ' warn' ,
61
+ ' local-rules/prefer-import-aliases' : ' error' ,
62
+ ' local-rules/prefer-static-styles-last' : ' warn' ,
63
+ ' local-rules/umb-class-prefix' : ' error' ,
64
+ ' local-rules/no-relative-import-to-import-map-module' : ' error' ,
65
+ ' local-rules/enforce-umbraco-external-imports' : [
66
+ ' error' ,
67
67
{
68
- " exceptions" : [ " @umbraco-cms" , " @open-wc/testing" , " @storybook" , " msw" , "." , " vite" ]
69
- }
68
+ exceptions : [ ' @umbraco-cms' , ' @open-wc/testing' , ' @storybook' , ' msw' , '.' , ' vite' ] ,
69
+ } ,
70
70
] ,
71
- " local-rules/exported-string-constant-naming" : [
72
- " error" ,
71
+ ' local-rules/exported-string-constant-naming' : [
72
+ ' error' ,
73
73
{
74
- " excludedFileNames" : [ " umbraco-package" , " input-tiny-mce.defaults" ] // TODO: what to do about the tiny mce defaults?
75
- }
74
+ excludedFileNames : [ ' umbraco-package' , ' input-tiny-mce.defaults' ] , // TODO: what to do about the tiny mce defaults?
75
+ } ,
76
76
] ,
77
- " @typescript-eslint/no-non-null-assertion" : " off" ,
78
- " @typescript-eslint/no-explicit-any" : " warn" ,
79
- " @typescript-eslint/no-unused-vars" : " warn" ,
80
- " @typescript-eslint/consistent-type-exports" : " error" ,
81
- " @typescript-eslint/consistent-type-imports" : " error" ,
82
- " @typescript-eslint/no-import-type-side-effects" : " warn"
83
- }
77
+ ' @typescript-eslint/no-non-null-assertion' : ' off' ,
78
+ ' @typescript-eslint/no-explicit-any' : ' warn' ,
79
+ ' @typescript-eslint/no-unused-vars' : ' warn' ,
80
+ ' @typescript-eslint/consistent-type-exports' : ' error' ,
81
+ ' @typescript-eslint/consistent-type-imports' : ' error' ,
82
+ ' @typescript-eslint/no-import-type-side-effects' : ' warn' ,
83
+ } ,
84
84
} ,
85
85
86
86
// Pattern-specific overrides
@@ -90,7 +90,7 @@ export default [
90
90
languageOptions : {
91
91
globals : {
92
92
...globals . node ,
93
- }
94
- }
93
+ } ,
94
+ } ,
95
95
} ,
96
96
] ;
0 commit comments