chore: fix all eslint configs to work with esm
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/** @type {import('prettier').Config} */
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
extends: ['@payloadcms'],
|
||||||
overrides: [
|
overrides: [
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @type {import('prettier').Config} */
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['@payloadcms'],
|
extends: ['@payloadcms'],
|
||||||
overrides: [
|
overrides: [
|
||||||
36
packages/ui/.eslintrc.cjs
Normal file
36
packages/ui/.eslintrc.cjs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
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: {
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
},
|
||||||
|
root: true,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user