mirror of
https://github.com/acamarata/moon-sighting.git
synced 2026-06-30 19:04:24 +00:00
- Add @typescript-eslint/parser and @typescript-eslint/eslint-plugin as explicit devDependencies so pnpm hoists them for eslint.config.mjs - Add files: ['**/*.ts'] to eslint config entries so ESLint 10 processes TS sources instead of ignoring them - Add parserOptions.project for typed-lint rules - Run prettier --write to fix pre-existing format issues in 12 src files
23 lines
641 B
JavaScript
23 lines
641 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 [
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: { '@typescript-eslint': tsPlugin },
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
project: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
...typescript.map((c) => ({ ...c, files: ['**/*.ts'] })),
|
|
eslintConfigPrettier,
|
|
{
|
|
ignores: ['dist/', 'node_modules/', 'test.mjs', 'test-cjs.cjs'],
|
|
},
|
|
];
|