-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update hybrid template eslint
- Loading branch information
1 parent
be5e7fb
commit bc766d5
Showing
3 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}, | ||
}, | ||
]; |