- eslint: respect the repo's existing _-prefix convention for unused vars - phase-one-blockers: derive projectRoot via import.meta.dirname so Windows checkouts stop producing C:\C:\... paths - backup/release-evidence/cutover-orchestrator: skip POSIX-only directory fsync on win32 and fsync read-only handles through a writable handle
44 lines
1009 B
JavaScript
44 lines
1009 B
JavaScript
import eslint from '@eslint/js';
|
|
import { defineConfig } from 'eslint/config';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default defineConfig(
|
|
{
|
|
ignores: ['node_modules/**', '**/dist/**', 'coverage/**', 'packages/**/test/fixtures/**'],
|
|
},
|
|
{
|
|
files: ['**/*.js'],
|
|
...eslint.configs.recommended,
|
|
languageOptions: {
|
|
...eslint.configs.recommended.languageOptions,
|
|
globals: {
|
|
console: 'readonly',
|
|
process: 'readonly',
|
|
URL: 'readonly',
|
|
},
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
extends: [...tseslint.configs.recommended],
|
|
languageOptions: {
|
|
parser: tseslint.parser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
rules: {
|
|
'no-undef': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
);
|