2024-06-10 06:49:50 -07:00
|
|
|
const sharedOptions = require('@n8n_io/eslint-config/shared');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
|
|
|
*/
|
|
|
|
module.exports = {
|
2024-06-11 05:45:15 -07:00
|
|
|
extends: ['@n8n_io/eslint-config/base', 'plugin:cypress/recommended'],
|
2024-06-10 06:49:50 -07:00
|
|
|
|
|
|
|
...sharedOptions(__dirname),
|
|
|
|
|
2024-06-11 05:45:15 -07:00
|
|
|
plugins: ['cypress'],
|
|
|
|
|
|
|
|
env: {
|
|
|
|
'cypress/globals': true,
|
|
|
|
},
|
|
|
|
|
2024-06-10 06:49:50 -07:00
|
|
|
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',
|
2024-06-11 05:45:15 -07:00
|
|
|
|
|
|
|
'cypress/no-assigning-return-values': 'warn',
|
|
|
|
'cypress/no-unnecessary-waiting': 'warn',
|
|
|
|
'cypress/unsafe-to-chain-command': 'warn',
|
2024-06-10 06:49:50 -07:00
|
|
|
},
|
|
|
|
};
|