mirror of
https://github.com/acamarata/solar-spa.git
synced 2026-06-30 19:04:28 +00:00
- Move corepack enable before actions/setup-node in coverage job - Add @typescript-eslint/parser and @typescript-eslint/eslint-plugin as direct devDeps - Add files pattern and parserOptions.project to eslint.config.mjs - Change build:ts to cp dist/index.d.ts dist/index.d.mts so pack-check passes - Run prettier format on src/ files
23 lines
717 B
JavaScript
23 lines
717 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', 'wasm/', 'src/spa.c', 'src/spa.h', 'validate.mjs'],
|
|
},
|
|
];
|