Skip to content

Commit

Permalink
ESLint 9 (add dir for ignores)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Sep 1, 2024
1 parent dc21090 commit 8f4be46
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.addFile("tsconfig.json")
.addTemplate("vite.config.ts")
.addTemplate("vitest.config.ts")
.addFile("eslint.config.js")
.addTemplate("eslint.config.js")
.and()
.batch(SOURCE_COMMON, to("."))
.addFile(".npmrc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public JHipsterModule buildVueModule(JHipsterModuleProperties properties) {
.addScript(scriptKey("test:watch"), scriptCommand("vitest --"))
.and()
.files()
.add(SOURCE.file("eslint.config.js"), to("eslint.config.js"))
.add(SOURCE.template("eslint.config.js.mustache"), to("eslint.config.js"))
.add(SOURCE.file("tsconfig.json"), to("tsconfig.json"))
.add(SOURCE.file("tsconfig.build.json"), to("tsconfig.build.json"))
.add(SOURCE.template("webapp/app/http/AxiosHttp.ts.mustache"), MAIN_DESTINATION.append("http/AxiosHttp.ts"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.batch(SOURCE, to("."))
.addFile("tsconfig.json")
.addTemplate("vitest.config.ts")
.addFile("eslint.config.js")
.addTemplate("eslint.config.js")
.and()
.and()
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default typescript.config(
},
},
{
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js'],
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'],
},
eslint.configs.recommended,
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default typescript.config(
},
},
{
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js'],
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'],
},
js.configs.recommended,
...typescript.configs.recommended.map(config => (config.name === 'typescript-eslint/base' ? config : { ...config, files: ['**/*.ts'] })),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default typescript.config(
},
},
{
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js'],
ignores: ['src/main/docker/', 'jest.conf.js', 'src/test/webapp/jest.conf.js', 'postcss.config.js', '{{projectBuildDirectory}}/'],
},
js.configs.recommended,
...typescript.configs.recommended.map(config => (config.name === 'typescript-eslint/base' ? config : { ...config, files: ['**/*.ts'] })),
Expand Down

0 comments on commit 8f4be46

Please sign in to comment.