mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
const sharedOptions = require('@n8n/eslint-config/shared');
|
|
|
|
/**
|
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
|
*/
|
|
module.exports = {
|
|
extends: ['@n8n/eslint-config/base', 'plugin:playwright/recommended'],
|
|
|
|
...sharedOptions(__dirname),
|
|
|
|
plugins: ['playwright'],
|
|
|
|
env: {
|
|
node: true,
|
|
},
|
|
|
|
rules: {
|
|
// TODO: remove these rules
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
'@typescript-eslint/promise-function-async': 'off',
|
|
'n8n-local-rules/no-uncaught-json-parse': 'off',
|
|
'playwright/expect-expect': 'warn',
|
|
'playwright/max-nested-describe': 'warn',
|
|
'playwright/no-conditional-in-test': 'warn',
|
|
'playwright/no-skipped-test': 'warn',
|
|
'import/no-extraneous-dependencies': [
|
|
'error',
|
|
{
|
|
devDependencies: ['**/tests/**', '**/e2e/**', '**/playwright/**'],
|
|
optionalDependencies: false,
|
|
},
|
|
],
|
|
},
|
|
};
|