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}
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
extends: ['@n8n_io/eslint-config/node'],
|
2022-11-09 06:25:00 -08:00
|
|
|
|
2022-12-22 00:55:39 -08:00
|
|
|
...sharedOptions(__dirname),
|
2022-11-09 06:25:00 -08:00
|
|
|
|
2022-09-12 02:41:50 -07:00
|
|
|
ignorePatterns: [
|
|
|
|
'jest.config.js',
|
|
|
|
// TODO: Remove these
|
|
|
|
'src/databases/migrations/**',
|
|
|
|
'src/databases/ormconfig.ts',
|
|
|
|
],
|
2022-12-22 00:55:39 -08:00
|
|
|
|
2022-09-12 02:41:50 -07:00
|
|
|
rules: {
|
|
|
|
// TODO: Remove this
|
2022-12-22 00:55:39 -08:00
|
|
|
'import/no-cycle': 'warn',
|
2022-09-12 02:41:50 -07:00
|
|
|
'import/order': 'off',
|
2022-11-09 06:25:00 -08:00
|
|
|
'import/extensions': 'off',
|
2022-10-31 04:45:34 -07:00
|
|
|
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
|
2022-09-12 02:41:50 -07:00
|
|
|
},
|
2022-10-31 04:45:34 -07:00
|
|
|
};
|