File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,16 +27,8 @@ function normalizeConfig(config) {
2727 const next = { ...config } ;
2828
2929 if ( next . plugins ?. [ '@typescript-eslint' ] ) {
30- next . plugins = {
31- ...next . plugins ,
32- '@typescript-eslint' : {
33- ...next . plugins [ '@typescript-eslint' ] ,
34- rules : {
35- ...next . plugins [ '@typescript-eslint' ] . rules ,
36- 'ban-types' : noopRule ,
37- } ,
38- } ,
39- } ;
30+ next . plugins = { ...next . plugins } ;
31+ delete next . plugins [ '@typescript-eslint' ] ;
4032 }
4133
4234 if ( next . rules ) {
@@ -72,6 +64,18 @@ export default [
7264 'src/index.d.ts' ,
7365 ] ,
7466 } ,
67+ {
68+ plugins : {
69+ '@typescript-eslint' : {
70+ ...tsEslintPlugin ,
71+ rules : {
72+ ...tsEslintPlugin . rules ,
73+ 'ban-types' : noopRule ,
74+ 'consistent-type-exports' : noopRule ,
75+ } ,
76+ } ,
77+ } ,
78+ } ,
7579 ...compat . config ( require ( './.eslintrc.js' ) ) . map ( normalizeConfig ) ,
7680 {
7781 rules : {
Original file line number Diff line number Diff line change @@ -55,13 +55,4 @@ declare const vi: {
5555 restoreAllMocks : ( ) => void ;
5656} ;
5757
58- declare const describe : any ;
59- declare const it : any ;
60- declare const test : any ;
61- declare const beforeEach : any ;
62- declare const afterEach : any ;
63- declare const beforeAll : any ;
64- declare const afterAll : any ;
65- declare const expect : any ;
66-
6758declare module 'moment/locale/zh-cn' ;
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "target" : " esnext" ,
44 "module" : " ESNext" ,
5- "moduleResolution" : " node" ,
6- "baseUrl" : " ./" ,
5+ "moduleResolution" : " bundler" ,
76 "lib" : [" dom" , " es2017" ],
87 "jsx" : " react" ,
98 "strict" : false ,
1312 "skipLibCheck" : true ,
1413 "declaration" : true ,
1514 "paths" : {
16- "@/*" : [" src/*" ],
17- "@@/*" : [" .dumi/tmp/*" ],
18- "@rc-component/segmented" : [" src/index.tsx" ],
19- "@rc-component/segmented/es" : [" src" ],
20- "@rc-component/segmented/es/*" : [" src/*" ],
21- "@rc-component/segmented/assets/*" : [" assets/*" ]
15+ "@/*" : [" ./ src/*" ],
16+ "@@/*" : [" ./. dumi/tmp/*" ],
17+ "@rc-component/segmented" : [" ./ src/index.tsx" ],
18+ "@rc-component/segmented/es" : [" ./ src" ],
19+ "@rc-component/segmented/es/*" : [" ./ src/*" ],
20+ "@rc-component/segmented/assets/*" : [" ./ assets/*" ]
2221 },
23- "ignoreDeprecations" : " 6.0" ,
2422 "noImplicitAny" : false ,
2523 "strictNullChecks" : false ,
2624 "strictPropertyInitialization" : false ,
You can’t perform that action at this time.
0 commit comments