mirror of
https://github.com/acamarata/hijri-core.git
synced 2026-06-30 18:54:27 +00:00
- Add @typescript-eslint/parser and @typescript-eslint/eslint-plugin to devDependencies (required by eslint.config.mjs direct imports and by @acamarata/eslint-config peerDependencies) - Fix eslint.config.mjs: scope files to src/**/*.ts, add parserOptions.project for type-aware rules, expand ignores to cover coverage/ and docs/ - Run prettier --write src/ to fix format:check failures
23 lines
668 B
JavaScript
23 lines
668 B
JavaScript
import tsParser from '@typescript-eslint/parser';
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
import { typescript } from '@acamarata/eslint-config';
|
|
|
|
export default [
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', 'coverage/**', 'docs/**'],
|
|
},
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
plugins: { '@typescript-eslint': tsPlugin },
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
...typescript.map((cfg) => ({ ...cfg, files: ['src/**/*.ts'] })),
|
|
eslintConfigPrettier,
|
|
];
|