@@ -4,25 +4,28 @@ import importPlugin from 'eslint-plugin-import';
4
4
import localRules from 'eslint-plugin-local-rules' ;
5
5
import wcPlugin from 'eslint-plugin-wc' ;
6
6
import litPlugin from 'eslint-plugin-lit' ;
7
- import litA11yPlugin from 'eslint-plugin-lit-a11y' ;
8
- import storybookPlugin from 'eslint-plugin-storybook' ;
9
7
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' ;
10
8
import tseslint from 'typescript-eslint' ;
11
9
12
10
export default [
13
11
// Recommended config applied to all files
14
12
js . configs . recommended ,
15
13
...tseslint . configs . recommended ,
14
+ wcPlugin . configs [ 'flat/recommended' ] ,
15
+ litPlugin . configs [ 'flat/recommended' ] ,
16
+ localRules . configs . all ,
16
17
eslintPluginPrettierRecommended ,
17
18
18
19
// Global ignores
19
20
{
20
21
ignores : [
22
+ '**/eslint.config.js' ,
21
23
'**/rollup.config.js' ,
22
24
'**/vite.config.ts' ,
23
25
'src/external' ,
24
26
'src/packages/core/icon-registry/icons' ,
25
27
'src/packages/core/icon-registry/icons.ts' ,
28
+ 'src/**/*.test.ts' ,
26
29
] ,
27
30
} ,
28
31
@@ -40,29 +43,19 @@ export default [
40
43
plugins : {
41
44
import : importPlugin ,
42
45
'local-rules' : localRules ,
43
- wc : wcPlugin ,
44
- lit : litPlugin ,
45
- 'lit-a11y' : litA11yPlugin ,
46
- storybook : storybookPlugin ,
47
46
} ,
48
47
rules : {
49
48
semi : [ 'warn' , 'always' ] ,
50
- "prettier/prettier" : [ "warn" , { "endOfLine" : "auto" } ] ,
49
+ "prettier/prettier" : [ "warn" , { "endOfLine" : "auto" } ] ,
51
50
'no-unused-vars' : 'off' , //Let '@typescript-eslint/no-unused-vars' catch the errors to allow unused function parameters (ex: in interfaces)
52
51
'no-var' : 'error' ,
52
+ ...importPlugin . configs . recommended . rules ,
53
+ 'import/namespace' : 'off' ,
53
54
'import/no-unresolved' : 'off' ,
54
55
'import/order' : [ 'warn' , { groups : [ 'builtin' , 'parent' , 'sibling' , 'index' , 'external' ] } ] ,
55
56
'import/no-self-import' : 'error' ,
56
57
'import/no-cycle' : [ 'error' , { maxDepth : 6 , allowUnsafeDynamicCyclicDependency : true } ] ,
57
- 'local-rules/bad-type-import' : 'error' ,
58
- 'local-rules/enforce-element-suffix-on-element-class-name' : 'error' ,
59
- 'local-rules/enforce-umb-prefix-on-element-name' : 'error' ,
60
- 'local-rules/ensure-relative-import-use-js-extension' : 'error' ,
61
- 'local-rules/no-direct-api-import' : 'warn' ,
62
- 'local-rules/prefer-import-aliases' : 'error' ,
63
58
'local-rules/prefer-static-styles-last' : 'warn' ,
64
- 'local-rules/umb-class-prefix' : 'error' ,
65
- 'local-rules/no-relative-import-to-import-map-module' : 'error' ,
66
59
'local-rules/enforce-umbraco-external-imports' : [
67
60
'error' ,
68
61
{
0 commit comments