2023-07-19 00:35:10 -07:00
|
|
|
const sharedOptions = require('@n8n_io/eslint-config/shared');
|
2022-12-22 00:55:39 -08:00
|
|
|
|
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
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
rules: {
|
2022-09-12 02:41:50 -07:00
|
|
|
// TODO: Remove these
|
2023-07-28 09:28:17 -07:00
|
|
|
'id-denylist': 'warn',
|
|
|
|
'import/extensions': 'warn',
|
|
|
|
'import/no-default-export': 'warn',
|
2022-09-12 02:41:50 -07:00
|
|
|
'import/order': 'off',
|
2022-12-22 00:55:39 -08:00
|
|
|
'import/no-cycle': 'warn',
|
2023-07-28 09:28:17 -07:00
|
|
|
'import/no-duplicates': 'warn',
|
|
|
|
'@typescript-eslint/ban-types': 'warn',
|
|
|
|
'@typescript-eslint/dot-notation': 'warn',
|
|
|
|
'@typescript-eslint/lines-between-class-members': 'warn',
|
|
|
|
'@typescript-eslint/member-delimiter-style': 'warn',
|
|
|
|
'@typescript-eslint/naming-convention': 'warn',
|
|
|
|
'@typescript-eslint/no-empty-interface': 'warn',
|
|
|
|
'@typescript-eslint/no-for-in-array': 'warn',
|
|
|
|
'@typescript-eslint/no-loop-func': 'warn',
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
|
|
'@typescript-eslint/no-shadow': 'warn',
|
|
|
|
'@typescript-eslint/no-this-alias': 'warn',
|
|
|
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'warn',
|
|
|
|
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
|
|
|
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
|
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
|
|
'@typescript-eslint/no-use-before-define': 'warn',
|
|
|
|
'@typescript-eslint/no-var-requires': 'warn',
|
|
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
|
|
|
|
'@typescript-eslint/prefer-optional-chain': 'warn',
|
|
|
|
'@typescript-eslint/restrict-plus-operands': 'warn',
|
2022-10-31 04:45:34 -07:00
|
|
|
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
|
2023-07-28 09:28:17 -07:00
|
|
|
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
|
|
'@typescript-eslint/no-base-to-string': 'warn',
|
|
|
|
'@typescript-eslint/no-unsafe-enum-comparison': 'warn',
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
};
|