chore: eslint perf improvements for test suite, make use of cascading for all eslint configs to minimize duplicative rule

This commit is contained in:
Alessio Gravili
2024-03-12 09:15:38 -04:00
parent d22cb1dfa7
commit da1326a336
106 changed files with 869 additions and 740 deletions

View File

@@ -0,0 +1,8 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
ignorePatterns: ['payload-types.ts'],
parserOptions: {
project: ['./tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
}

View File

@@ -0,0 +1,13 @@
{
// extend your base config to share compilerOptions, etc
//"extends": "./tsconfig.json",
"compilerOptions": {
// ensure that nobody can accidentally use this config for a build
"noEmit": true,
},
"include": [
// whatever paths you intend to lint
"./**/*.ts",
"./**/*.tsx"
],
}