59 lines
1.7 KiB
JavaScript
59 lines
1.7 KiB
JavaScript
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: {
|
|
project: ['./tsconfig.json'],
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
root: true,
|
|
}
|