mirror of
https://github.com/acamarata/dayjs-hijri-plus.git
synced 2026-06-30 18:54:26 +00:00
eslint.config.mjs imported @typescript-eslint/parser and @typescript-eslint/eslint-plugin directly but neither was a direct devDependency. pnpm strict hoisting made them unreachable on CI. Fix: add both as explicit ^8 devDependencies, add files pattern for *.ts to all config objects, and enable parserOptions.project for typed rules. Also run prettier to fix formatting.
20 lines
646 B
JavaScript
20 lines
646 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', '**/*.tsx'],
|
|
plugins: { '@typescript-eslint': tsPlugin },
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: { project: true, tsconfigRootDir: import.meta.dirname },
|
|
},
|
|
},
|
|
...typescript.map((cfg) => ({ ...cfg, files: ['**/*.ts', '**/*.tsx'] })),
|
|
eslintConfigPrettier,
|
|
{
|
|
ignores: ['dist/', 'node_modules/', 'test.mjs', 'test-cjs.cjs'],
|
|
},
|
|
];
|