@@ -18,10 +18,6 @@ export default [
1818 ignores : [
1919 '**/node_modules/' ,
2020 '**/build/' ,
21- '**/__snapshots__/' ,
22- '!**/src/**' ,
23- '!vite.config.ts' ,
24- '!**/.storybook/**' ,
2521 '**/storybook-static/' ,
2622 '**/dist/' ,
2723 '**/next-env.d.ts' ,
@@ -34,124 +30,127 @@ export default [
3430 '**/target/' ,
3531 '**/venv/' ,
3632 '**/.venv/' ,
33+ '.husky/' ,
34+ '!**/src/**' ,
35+ '!vite.config.ts' ,
36+ '!**/.storybook/**' ,
37+ '**/__snapshots__/' ,
3738 ] ,
3839 } ,
3940 ...devupUiEslintPlugin . configs . recommended ,
4041 react . configs . flat ! . recommended ,
41- ...tseslint . config (
42- js . configs . recommended ,
43- eslintPluginPrettierRecommended ,
44- ...tseslint . configs . recommended ,
45- ...pluginQuery . configs [ 'flat/recommended' ] ,
46- {
47- settings : {
48- react : {
49- version : 'detect' ,
50- defaultVersion : '19' ,
51- } ,
42+ js . configs . recommended ,
43+ eslintPluginPrettierRecommended ,
44+ ...tseslint . configs . recommended ,
45+ ...pluginQuery . configs [ 'flat/recommended' ] ,
46+ {
47+ settings : {
48+ react : {
49+ version : 'detect' ,
50+ defaultVersion : '19' ,
5251 } ,
53- plugins : {
54- 'react-hooks' : hooksPlugin ,
55- 'unused-imports ' : unusedImports ,
56- 'simple-import-sort ' : simpleImportSort ,
57- '@devup ' : {
58- rules : {
59- component ,
60- 'app-page' : appPage ,
61- 'component-interface ' : componentInterface ,
62- } ,
52+ } ,
53+ plugins : {
54+ 'react-hooks ' : hooksPlugin ,
55+ 'unused-imports ' : unusedImports ,
56+ 'simple-import-sort ' : simpleImportSort ,
57+ '@devup' : {
58+ rules : {
59+ component ,
60+ 'app-page ' : appPage ,
61+ 'component-interface' : componentInterface ,
6362 } ,
6463 } ,
65- rules : {
66- 'react/react-in-jsx-scope' : 'off' ,
67- 'require-jsdoc' : 'off' ,
68- 'valid-jsdoc' : 'off' ,
69- 'prettier/prettier' : [
70- 'error' ,
71- {
72- endOfLine : 'auto' ,
73- trailingComma : 'all' ,
74- singleQuote : true ,
75- semi : false ,
76- } ,
77- ] ,
78- 'no-trailing-spaces' : 'error' ,
79- '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
80- '@typescript-eslint/no-explicit-any' : 'off' ,
81- '@typescript-eslint/no-var-requires' : 'off' ,
82- '@typescript-eslint/ban-ts-comment' : 'off' ,
83- 'no-constant-condition' : [ 'error' , { checkLoops : false } ] ,
84- 'react/jsx-curly-brace-presence' : 'error' ,
85- camelcase : 'off' ,
86- 'simple-import-sort/imports' : 'error' ,
87- 'simple-import-sort/exports' : 'error' ,
88- 'react/jsx-sort-props' : [
89- 'error' ,
90- {
91- callbacksLast : false ,
92- shorthandFirst : false ,
93- shorthandLast : false ,
94- ignoreCase : false ,
95- noSortAlphabetically : false ,
96- reservedFirst : true ,
97- } ,
98- ] ,
99- '@typescript-eslint/no-unused-vars' : [
100- 'error' ,
101- {
102- args : 'all' ,
103- argsIgnorePattern : '^_' ,
104- caughtErrors : 'all' ,
105- caughtErrorsIgnorePattern : '^_' ,
106- destructuredArrayIgnorePattern : '^_' ,
107- varsIgnorePattern : '^_' ,
108- ignoreRestSiblings : true ,
109- } ,
110- ] ,
111- 'react/sort-default-props' : 'error' ,
112- 'unused-imports/no-unused-imports' : 'error' ,
113- 'unused-imports/no-unused-vars' : 'off' ,
114- 'comma-dangle' : 'off' ,
115- 'react/prop-types' : 'off' ,
116- 'no-console' : [
117- 'error' ,
118- {
119- allow : [ 'info' , 'debug' , 'warn' , 'error' ] ,
120- } ,
121- ] ,
122- 'spaced-comment' : [
123- 'error' ,
124- 'always' ,
125- {
126- markers : [ '/' ] ,
127- } ,
128- ] ,
129- '@devup/component-interface' : 'error' ,
130- '@devup/app-page' : 'error' ,
131- '@devup/component' : 'error' ,
132- ...hooksPlugin . configs . recommended . rules ,
133- 'react-hooks/exhaustive-deps' : [
134- 'warn' ,
135- {
136- additionalHooks : 'useSafeEffect' ,
137- } ,
138- ] ,
139- '@typescript-eslint/no-unused-expressions' : [
140- 'error' ,
141- {
142- allowShortCircuit : true ,
143- allowTernary : true ,
144- } ,
145- ] ,
146- } ,
14764 } ,
148- {
149- files : [ '**/*.test-d.{ts,tsx}' ] ,
150- rules : {
151- '@typescript-eslint/no-unused-expressions' : 'off' ,
152- } ,
65+ rules : {
66+ 'react/react-in-jsx-scope' : 'off' ,
67+ 'require-jsdoc' : 'off' ,
68+ 'valid-jsdoc' : 'off' ,
69+ 'prettier/prettier' : [
70+ 'error' ,
71+ {
72+ endOfLine : 'auto' ,
73+ trailingComma : 'all' ,
74+ singleQuote : true ,
75+ semi : false ,
76+ } ,
77+ ] ,
78+ 'no-trailing-spaces' : 'error' ,
79+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
80+ '@typescript-eslint/no-explicit-any' : 'off' ,
81+ '@typescript-eslint/no-var-requires' : 'off' ,
82+ '@typescript-eslint/ban-ts-comment' : 'off' ,
83+ 'no-constant-condition' : [ 'error' , { checkLoops : false } ] ,
84+ 'react/jsx-curly-brace-presence' : 'error' ,
85+ camelcase : 'off' ,
86+ 'simple-import-sort/imports' : 'error' ,
87+ 'simple-import-sort/exports' : 'error' ,
88+ 'react/jsx-sort-props' : [
89+ 'error' ,
90+ {
91+ callbacksLast : false ,
92+ shorthandFirst : false ,
93+ shorthandLast : false ,
94+ ignoreCase : false ,
95+ noSortAlphabetically : false ,
96+ reservedFirst : true ,
97+ } ,
98+ ] ,
99+ '@typescript-eslint/no-unused-vars' : [
100+ 'error' ,
101+ {
102+ args : 'all' ,
103+ argsIgnorePattern : '^_' ,
104+ caughtErrors : 'all' ,
105+ caughtErrorsIgnorePattern : '^_' ,
106+ destructuredArrayIgnorePattern : '^_' ,
107+ varsIgnorePattern : '^_' ,
108+ ignoreRestSiblings : true ,
109+ } ,
110+ ] ,
111+ 'react/sort-default-props' : 'error' ,
112+ 'unused-imports/no-unused-imports' : 'error' ,
113+ 'unused-imports/no-unused-vars' : 'off' ,
114+ 'comma-dangle' : 'off' ,
115+ 'react/prop-types' : 'off' ,
116+ 'no-console' : [
117+ 'error' ,
118+ {
119+ allow : [ 'info' , 'debug' , 'warn' , 'error' ] ,
120+ } ,
121+ ] ,
122+ 'spaced-comment' : [
123+ 'error' ,
124+ 'always' ,
125+ {
126+ markers : [ '/' ] ,
127+ } ,
128+ ] ,
129+ '@devup/component-interface' : 'error' ,
130+ '@devup/app-page' : 'error' ,
131+ '@devup/component' : 'error' ,
132+ ...hooksPlugin . configs . recommended . rules ,
133+ 'react-hooks/exhaustive-deps' : [
134+ 'warn' ,
135+ {
136+ additionalHooks : 'useSafeEffect' ,
137+ } ,
138+ ] ,
139+ '@typescript-eslint/no-unused-expressions' : [
140+ 'error' ,
141+ {
142+ allowShortCircuit : true ,
143+ allowTernary : true ,
144+ } ,
145+ ] ,
146+ } ,
147+ } ,
148+ {
149+ files : [ '**/*.test-d.{ts,tsx}' ] ,
150+ rules : {
151+ '@typescript-eslint/no-unused-expressions' : 'off' ,
153152 } ,
154- ) ,
153+ } ,
155154 // md, mdx rules
156155 {
157156 ...mdx . flat ,
@@ -171,4 +170,4 @@ export default [
171170 '@typescript-eslint/no-empty-object-type' : 'off' ,
172171 } ,
173172 } ,
174- ] as any
173+ ]
0 commit comments