Skip to content

Commit

Permalink
chore: update hybrid template eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
otabek-magic committed Nov 22, 2024
1 parent be5e7fb commit bc766d5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
5 changes: 0 additions & 5 deletions scripts/bin/scaffold/template/hybrid/.eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/bin/scaffold/template/hybrid/.eslintrc.js

This file was deleted.

21 changes: 21 additions & 0 deletions scripts/bin/scaffold/template/hybrid/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
},
},
},
];

0 comments on commit bc766d5

Please sign in to comment.