-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint 9 #10598
ESLint 9 #10598
Conversation
'node_modules/', | ||
'src/main/docker/', | ||
'src/test/webapp/cypress/', | ||
'src/test/webapp/protractor.conf.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use protractor, jest, webpack, so this can be removed.
'webpack/', | ||
'target/', | ||
'build/', | ||
'node/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The node
folder is inside the target folder now, so this is not required too.
'jest.conf.js', | ||
'src/test/webapp/jest.conf.js', | ||
'webpack/', | ||
'target/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (and build
) could be templatized, by using {{projectBuildDirectory}}
}, | ||
{ | ||
ignores: [ | ||
'node_modules/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node_modules
is already ignored by default, see https://eslint.org/docs/latest/use/configure/ignore#ignoring-files
@@ -55,7 +55,8 @@ public JHipsterModule buildVueModule(JHipsterModuleProperties properties) { | |||
.addDependency(packageName("vue-router"), VUE) | |||
.addDevDependency(packageName("@typescript-eslint/parser"), COMMON) | |||
.addDevDependency(packageName("@vitejs/plugin-vue"), VUE) | |||
.addDevDependency(packageName("@vue/eslint-config-typescript"), VUE) | |||
.addDevDependency(packageName("typescript-eslint"), COMMON) | |||
.addDevDependency(packageName("globals"), COMMON) | |||
.addDevDependency(packageName("@vue/eslint-config-prettier"), VUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one could probably be removed, I think it's not used anymore:
.addDevDependency(packageName("@vue/eslint-config-prettier"), VUE) |
@@ -55,7 +55,8 @@ public JHipsterModule buildVueModule(JHipsterModuleProperties properties) { | |||
.addDependency(packageName("vue-router"), VUE) | |||
.addDevDependency(packageName("@typescript-eslint/parser"), COMMON) | |||
.addDevDependency(packageName("@vitejs/plugin-vue"), VUE) | |||
.addDevDependency(packageName("@vue/eslint-config-typescript"), VUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to remove this dependency (and @vue/eslint-config-prettier
) from src/main/resources/generator/dependencies/vue/package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment sill applies, some cleanup of unused dependencies are needed in src/main/resources/generator/dependencies/vue/package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/main/java/tech/jhipster/lite/generator/typescript/core/domain/TypescriptModuleFactory.java
Show resolved
Hide resolved
8f4be46
to
338e987
Compare
dc4784c
to
b69b828
Compare
.addDevDependency(packageName("eslint-import-resolver-typescript"), COMMON) | ||
.addDevDependency(packageName("eslint-plugin-import"), COMMON) | ||
.addDevDependency(packageName("eslint-plugin-import-x"), COMMON) | ||
.addDevDependency(packageName("eslint-plugin-prettier"), COMMON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use anymore `eslint-plugin-prettier', see #10638
}, | ||
}, | ||
{ | ||
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jest is not used by react:
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'], | |
ignores: ['src/main/docker/', 'postcss.config.js', '{{projectBuildDirectory}}/'], |
}, | ||
}, | ||
{ | ||
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jest and postcss are not used by Vue:
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'], | |
ignores: ['src/main/docker/', '{{projectBuildDirectory}}/'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually have javascript or typescript content in src/main/docker
?
"eslint-plugin-cypress": "3.5.0", | ||
"eslint-plugin-import": "2.29.1", | ||
"eslint-plugin-import-x": "4.1.0", | ||
"eslint-plugin-prettier": "5.2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint-plugin-prettier is not used anymore
{ | ||
ignores: [ | ||
'src/main/docker/', | ||
'jest.conf.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither Jest, nor postcss is used.
Also why ignore vitest.config.ts
and eslint.config.js
?
c83bfeb
to
b2fb702
Compare
thanks @murdos for your reviews |
a94bbd9
to
18d3425
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Could you fix conflict with the main branch?
The merge-base changed after approval.
@murdos thanks for the reviews |
Fix #9496