chore: eslint perf improvements for test suite, make use of cascading for all eslint configs to minimize duplicative rule
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
extends: ['@payloadcms'],
|
||||||
|
ignorePatterns: ['README.md', 'packages/**/*.spec.ts'],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: ['scripts/**'],
|
files: ['scripts/**'],
|
||||||
|
|||||||
@@ -1,44 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
ignorePatterns: ['README.md', '**/*.spec.ts'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.ts', '**/*.tsx'],
|
|
||||||
rules: {
|
|
||||||
'no-console': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,43 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.ts'],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
7
packages/graphql/.eslintrc.cjs
Normal file
7
packages/graphql/.eslintrc.cjs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,41 +1,9 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: [
|
|
||||||
'@payloadcms',
|
|
||||||
// 'next'
|
|
||||||
],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
settings: {
|
settings: {
|
||||||
next: {
|
next: {
|
||||||
rootDir: '../../app/',
|
rootDir: '../../app/',
|
||||||
|
|||||||
@@ -1,58 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
ignorePatterns: ['**/payload-types.ts'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: [
|
|
||||||
'*.js',
|
|
||||||
'*.cjs',
|
|
||||||
'playwright.config.ts',
|
|
||||||
'playwright.bail.config.ts',
|
|
||||||
'bin-cks.cjs',
|
|
||||||
'bin-esm.mjs',
|
|
||||||
'esm-loader.mjs',
|
|
||||||
'esm-loader-playwright.mjs',
|
|
||||||
'*.json',
|
|
||||||
'*.md',
|
|
||||||
'*.yml',
|
|
||||||
'*.yaml',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['*.e2e.ts'],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
|
||||||
'jest/expect-expect': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.spec.ts'],
|
|
||||||
rules: {
|
|
||||||
'jest/prefer-strict-equal': 'off',
|
|
||||||
'no-console': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,43 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.ts'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('eslint').ESLint.ConfigData } */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,7 @@
|
|||||||
/** @type {import('prettier').Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,7 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['package.json', 'tsconfig.json'],
|
|
||||||
rules: {
|
|
||||||
'perfectionist/sort-array-includes': 'off',
|
|
||||||
'perfectionist/sort-astro-attributes': 'off',
|
|
||||||
'perfectionist/sort-classes': 'off',
|
|
||||||
'perfectionist/sort-enums': 'off',
|
|
||||||
'perfectionist/sort-exports': 'off',
|
|
||||||
'perfectionist/sort-imports': 'off',
|
|
||||||
'perfectionist/sort-interfaces': 'off',
|
|
||||||
'perfectionist/sort-jsx-props': 'off',
|
|
||||||
'perfectionist/sort-keys': 'off',
|
|
||||||
'perfectionist/sort-maps': 'off',
|
|
||||||
'perfectionist/sort-named-exports': 'off',
|
|
||||||
'perfectionist/sort-named-imports': 'off',
|
|
||||||
'perfectionist/sort-object-types': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
'perfectionist/sort-svelte-attributes': 'off',
|
|
||||||
'perfectionist/sort-union-types': 'off',
|
|
||||||
'perfectionist/sort-vue-attributes': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,70 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
ignorePatterns: ['payload-types.ts'],
|
||||||
ignorePatterns: ['**/payload-types.ts'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
|
||||||
files: [
|
|
||||||
'*.js',
|
|
||||||
'*.cjs',
|
|
||||||
'playwright.config.ts',
|
|
||||||
'playwright.bail.config.ts',
|
|
||||||
'bin-cks.cjs',
|
|
||||||
'bin-esm.mjs',
|
|
||||||
'esm-loader.mjs',
|
|
||||||
'esm-loader-playwright.mjs',
|
|
||||||
'*.json',
|
|
||||||
'*.md',
|
|
||||||
'*.yml',
|
|
||||||
'*.yaml',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.ts'],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
|
||||||
// turn the @typescript-eslint/unbound-method rule off *only* for test files. See https://typescript-eslint.io/rules/unbound-method/#when-not-to-use-it
|
|
||||||
'@typescript-eslint/unbound-method': 'off',
|
|
||||||
'no-console': 'off',
|
|
||||||
'perfectionist/sort-objects': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/int.spec.ts'],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
|
||||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
|
||||||
'jest/prefer-strict-equal': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
extends: ['plugin:playwright/playwright-test'],
|
|
||||||
files: ['**/e2e.spec.ts'],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
|
||||||
'jest/consistent-test-it': 'off',
|
|
||||||
'jest/expect-expect': 'off',
|
|
||||||
'jest/no-test-callback': 'off',
|
|
||||||
'jest/prefer-strict-equal': 'off',
|
|
||||||
'jest/require-top-level-describe': 'off',
|
|
||||||
'jest-dom/prefer-to-have-attribute': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['*.e2e.ts'],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
|
||||||
'jest/expect-expect': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['./tsconfig.json'],
|
project: ['./tsconfig.eslint.json'],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
root: true,
|
|
||||||
}
|
}
|
||||||
|
|||||||
8
test/_community/.eslintrc.cjs
Normal file
8
test/_community/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/_community/tsconfig.eslint.json
Normal file
13
test/_community/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
8
test/access-control/.eslintrc.cjs
Normal file
8
test/access-control/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/access-control/tsconfig.eslint.json
Normal file
13
test/access-control/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/admin/.eslintrc.cjs
Normal file
8
test/admin/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/admin/tsconfig.eslint.json
Normal file
13
test/admin/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/array-update/.eslintrc.cjs
Normal file
8
test/array-update/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/array-update/tsconfig.eslint.json
Normal file
13
test/array-update/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/auth/.eslintrc.cjs
Normal file
8
test/auth/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/auth/tsconfig.eslint.json
Normal file
13
test/auth/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/collections-graphql/.eslintrc.cjs
Normal file
8
test/collections-graphql/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/collections-graphql/tsconfig.eslint.json
Normal file
13
test/collections-graphql/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/collections-rest/.eslintrc.cjs
Normal file
8
test/collections-rest/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/collections-rest/tsconfig.eslint.json
Normal file
13
test/collections-rest/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/config/.eslintrc.cjs
Normal file
8
test/config/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/config/tsconfig.eslint.json
Normal file
13
test/config/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/create-payload-app/.eslintrc.cjs
Normal file
8
test/create-payload-app/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/create-payload-app/tsconfig.eslint.json
Normal file
13
test/create-payload-app/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/custom-graphql/.eslintrc.cjs
Normal file
8
test/custom-graphql/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/custom-graphql/tsconfig.eslint.json
Normal file
13
test/custom-graphql/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/database/.eslintrc.cjs
Normal file
8
test/database/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/database/tsconfig.eslint.json
Normal file
13
test/database/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/dataloader/.eslintrc.cjs
Normal file
8
test/dataloader/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/dataloader/tsconfig.eslint.json
Normal file
13
test/dataloader/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/endpoints/.eslintrc.cjs
Normal file
8
test/endpoints/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/endpoints/tsconfig.eslint.json
Normal file
13
test/endpoints/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/field-error-states/.eslintrc.cjs
Normal file
8
test/field-error-states/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/field-error-states/tsconfig.eslint.json
Normal file
13
test/field-error-states/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"paths": {
|
"paths": {
|
||||||
"payload/generated-types": ["./payload-types.ts"]
|
"payload/generated-types": ["./payload-types.ts"]
|
||||||
|
|||||||
8
test/field-perf/.eslintrc.cjs
Normal file
8
test/field-perf/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/field-perf/tsconfig.eslint.json
Normal file
13
test/field-perf/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/fields-relationship/.eslintrc.cjs
Normal file
8
test/fields-relationship/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/fields-relationship/tsconfig.eslint.json
Normal file
13
test/fields-relationship/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/fields/.eslintrc.cjs
Normal file
8
test/fields/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/fields/tsconfig.eslint.json
Normal file
13
test/fields/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/globals/.eslintrc.cjs
Normal file
8
test/globals/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/globals/tsconfig.eslint.json
Normal file
13
test/globals/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/graphql-schema-gen/.eslintrc.cjs
Normal file
8
test/graphql-schema-gen/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/graphql-schema-gen/tsconfig.eslint.json
Normal file
13
test/graphql-schema-gen/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
8
test/hooks/.eslintrc.cjs
Normal file
8
test/hooks/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/hooks/tsconfig.eslint.json
Normal file
13
test/hooks/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/live-preview/.eslintrc.cjs
Normal file
8
test/live-preview/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/live-preview/tsconfig.eslint.json
Normal file
13
test/live-preview/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/localization-rtl/.eslintrc.cjs
Normal file
8
test/localization-rtl/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/localization-rtl/tsconfig.eslint.json
Normal file
13
test/localization-rtl/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/localization/.eslintrc.cjs
Normal file
8
test/localization/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/localization/tsconfig.eslint.json
Normal file
13
test/localization/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/migrations-cli/.eslintrc.cjs
Normal file
8
test/migrations-cli/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/migrations-cli/tsconfig.eslint.json
Normal file
13
test/migrations-cli/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/nested-fields/.eslintrc.cjs
Normal file
8
test/nested-fields/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/nested-fields/tsconfig.eslint.json
Normal file
13
test/nested-fields/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-cloud-storage/.eslintrc.cjs
Normal file
8
test/plugin-cloud-storage/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-cloud-storage/tsconfig.eslint.json
Normal file
13
test/plugin-cloud-storage/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-cloud/.eslintrc.cjs
Normal file
8
test/plugin-cloud/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-cloud/tsconfig.eslint.json
Normal file
13
test/plugin-cloud/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-form-builder/.eslintrc.cjs
Normal file
8
test/plugin-form-builder/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-form-builder/tsconfig.eslint.json
Normal file
13
test/plugin-form-builder/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-nested-docs/.eslintrc.cjs
Normal file
8
test/plugin-nested-docs/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-nested-docs/tsconfig.eslint.json
Normal file
13
test/plugin-nested-docs/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-redirects/.eslintrc.cjs
Normal file
8
test/plugin-redirects/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-redirects/tsconfig.eslint.json
Normal file
13
test/plugin-redirects/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-search/.eslintrc.cjs
Normal file
8
test/plugin-search/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-search/tsconfig.eslint.json
Normal file
13
test/plugin-search/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-sentry/.eslintrc.cjs
Normal file
8
test/plugin-sentry/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-sentry/tsconfig.eslint.json
Normal file
13
test/plugin-sentry/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-seo/.eslintrc.cjs
Normal file
8
test/plugin-seo/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-seo/tsconfig.eslint.json
Normal file
13
test/plugin-seo/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugin-stripe/.eslintrc.cjs
Normal file
8
test/plugin-stripe/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugin-stripe/tsconfig.eslint.json
Normal file
13
test/plugin-stripe/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/plugins/.eslintrc.cjs
Normal file
8
test/plugins/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/plugins/tsconfig.eslint.json
Normal file
13
test/plugins/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/refresh-permissions/.eslintrc.cjs
Normal file
8
test/refresh-permissions/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/refresh-permissions/tsconfig.eslint.json
Normal file
13
test/refresh-permissions/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
8
test/relationships/.eslintrc.cjs
Normal file
8
test/relationships/.eslintrc.cjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('eslint').Linter.Config} */
|
||||||
|
module.exports = {
|
||||||
|
ignorePatterns: ['payload-types.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.eslint.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
}
|
||||||
13
test/relationships/tsconfig.eslint.json
Normal file
13
test/relationships/tsconfig.eslint.json
Normal 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"
|
||||||
|
],
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user