diff --git a/scripts/bin/scaffold/template/web/.eslintignore b/scripts/bin/scaffold/template/web/.eslintignore deleted file mode 100644 index 5807c501b..000000000 --- a/scripts/bin/scaffold/template/web/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -/node_modules -/coverage -/dist -/.eslintrc.js -/jest.config.ts diff --git a/scripts/bin/scaffold/template/web/.eslintrc.js b/scripts/bin/scaffold/template/web/.eslintrc.js deleted file mode 100644 index a0cd6b34b..000000000 --- a/scripts/bin/scaffold/template/web/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - extends: ['../../../.eslintrc.js'], - parserOptions: { - project: ['./tsconfig.json', './test/tsconfig.json'], - tsconfigRootDir: __dirname, - }, -}; diff --git a/scripts/bin/scaffold/template/web/eslint.config.mjs b/scripts/bin/scaffold/template/web/eslint.config.mjs new file mode 100644 index 000000000..ceddc7757 --- /dev/null +++ b/scripts/bin/scaffold/template/web/eslint.config.mjs @@ -0,0 +1,21 @@ +import { fileURLToPath } from 'node:url'; +import path from 'node:path'; +import rootEslintConfig from '../../../eslint.config.mjs'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +export default [ + ...rootEslintConfig, + { + ignores: ['node_modules', 'coverage', 'dist', 'eslintrc.config.mjs', 'jest.config.ts'], + }, + { + languageOptions: { + parserOptions: { + project: ['./tsconfig.json', './test/tsconfig.json'], + tsconfigRootDir: __dirname, + }, + }, + }, +];