Skip to content

Commit

Permalink
ignore eslint inline config
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Aug 6, 2024
1 parent f0c12b4 commit 0c286e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generators/bootstrap/support/eslint-transform.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe('generator - bootstrap - eslint', () => {
path: 'foo.ts',
contents: Buffer.from(`
import { Foo } from 'bar';
// eslint-disable-next-line no-console
export const foo = 'bar';
`),
};
Expand All @@ -23,6 +24,7 @@ export const foo = 'bar';
transform(() => undefined),
);
expect(file.contents.toString()).toBe(`
// eslint-disable-next-line no-console
export const foo = 'bar';
`);
});
Expand Down
1 change: 1 addition & 0 deletions generators/bootstrap/support/eslint-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default async ({ cwd, filePath, fileContents, extensions }) => {
eslintInstance = new eslint.ESLint({
fix: true,
overrideConfigFile: true,
allowInlineConfig: false,
cache: false,
cwd,
baseConfig: ts.config({ files: [`**/*.{${extensions}}`] }, ts.configs.base, jhipster.base),
Expand Down

0 comments on commit 0c286e5

Please sign in to comment.