27 lines
549 B
JavaScript
27 lines
549 B
JavaScript
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['**/*.ts'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
plugins: {
|
|
prettier: prettierPlugin,
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/**', 'coverage/**', 'node_modules/**'],
|
|
},
|
|
];
|