2022-12-22 00:55:39 -08:00
|
|
|
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
|
|
|
|
|
2022-09-12 02:41:50 -07:00
|
|
|
/**
|
|
|
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
|
|
|
*/
|
2019-06-23 03:35:23 -07:00
|
|
|
module.exports = {
|
2022-09-12 02:41:50 -07:00
|
|
|
extends: ['@n8n_io/eslint-config/frontend'],
|
|
|
|
|
2022-12-22 00:55:39 -08:00
|
|
|
...sharedOptions(__dirname, 'frontend'),
|
2022-09-12 02:41:50 -07:00
|
|
|
|
2022-12-01 04:26:22 -08:00
|
|
|
ignorePatterns: ['*.d.cts'],
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
rules: {
|
2022-09-12 02:41:50 -07:00
|
|
|
// TODO: Remove these
|
|
|
|
'id-denylist': 'off',
|
|
|
|
'import/extensions': 'off',
|
|
|
|
'import/no-default-export': 'off',
|
|
|
|
'import/no-extraneous-dependencies': 'off',
|
|
|
|
'import/order': 'off',
|
2022-12-22 00:55:39 -08:00
|
|
|
'import/no-cycle': 'warn',
|
2022-12-14 01:04:10 -08:00
|
|
|
indent: 'off',
|
2022-09-12 02:41:50 -07:00
|
|
|
'@typescript-eslint/ban-types': 'off',
|
|
|
|
'@typescript-eslint/dot-notation': 'off',
|
|
|
|
'@typescript-eslint/lines-between-class-members': 'off',
|
|
|
|
'@typescript-eslint/member-delimiter-style': 'off',
|
|
|
|
'@typescript-eslint/naming-convention': 'off',
|
|
|
|
'@typescript-eslint/no-duplicate-imports': 'off',
|
|
|
|
'@typescript-eslint/no-empty-interface': 'off',
|
|
|
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
|
|
'@typescript-eslint/no-for-in-array': 'off',
|
|
|
|
'@typescript-eslint/no-loop-func': 'off',
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
|
|
'@typescript-eslint/no-shadow': 'off',
|
|
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
|
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
|
|
|
|
'@typescript-eslint/no-unnecessary-type-assertion': '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-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
|
|
'@typescript-eslint/prefer-optional-chain': 'off',
|
|
|
|
'@typescript-eslint/promise-function-async': 'off',
|
|
|
|
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
|
|
'@typescript-eslint/return-await': 'off',
|
|
|
|
'@typescript-eslint/unbound-method': 'off',
|
2022-10-31 04:45:34 -07:00
|
|
|
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
};
|