chore(eslint): no-relative-monorepo-imports on package dir, other cleanup
This commit is contained in:
@@ -8,6 +8,7 @@ module.exports = {
|
||||
plugins: ['payload'],
|
||||
rules: {
|
||||
'payload/no-jsx-import-statements': 'warn',
|
||||
'payload/no-relative-monorepo-imports': 'error',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Disallows imports from .jsx extensions. Auto-fixes to .js.
|
||||
*/
|
||||
|
||||
/** @type {import('eslint').Rule.RuleModule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/**
|
||||
* Disallows imports from relative monorepo package paths.
|
||||
*
|
||||
* ie. `import { mongooseAdapter } from '../../../packages/mongoose-adapter/src'`
|
||||
*/
|
||||
|
||||
/** @type {import('eslint').Rule.RuleModule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
|
||||
@@ -43,10 +43,7 @@ module.exports = {
|
||||
{
|
||||
files: ['**/*.int.spec.ts', '**/int.spec.ts'],
|
||||
rules: {
|
||||
'payload/no-relative-monorepo-imports': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
'@typescript-eslint/no-use-before-define': 'off',
|
||||
'jest/prefer-strict-equal': 'off',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user