mirror of
https://github.com/acamarata/date-fns-hijri.git
synced 2026-06-30 18:54:25 +00:00
20 lines
661 B
JavaScript
20 lines
661 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/', 'test.mjs', 'test-cjs.cjs'],
|
|
},
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
plugins: { '@typescript-eslint': tsPlugin },
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: { project: true, tsconfigRootDir: import.meta.dirname },
|
|
},
|
|
},
|
|
...typescript.map((cfg) => ({ ...cfg, files: ['src/**/*.ts'] })),
|
|
{ ...eslintConfigPrettier, files: ['src/**/*.ts'] },
|
|
];
|