mirror of
https://github.com/acamarata/moment-hijri-plus.git
synced 2026-06-30 18:54:29 +00:00
- Add @typescript-eslint/parser and @typescript-eslint/eslint-plugin to devDependencies - Fix eslint.config.mjs: add files pattern and parserOptions.project for typed linting - Fix prettier formatting in src/index.ts and src/types.ts - Add coverage/ to .gitignore and untrack committed coverage artifacts - postbuild cp already handles dist/index.d.mts (verified)
23 lines
666 B
JavaScript
23 lines
666 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: ['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,
|
|
{
|
|
ignores: ['dist/', 'node_modules/', 'test.mjs', 'test-cjs.cjs'],
|
|
},
|
|
];
|