mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
28 lines
609 B
JavaScript
28 lines
609 B
JavaScript
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
|
|
|
|
/**
|
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
|
*/
|
|
module.exports = {
|
|
extends: ['@n8n_io/eslint-config/node'],
|
|
|
|
...sharedOptions(__dirname),
|
|
|
|
ignorePatterns: [
|
|
'jest.config.js',
|
|
// TODO: Remove these
|
|
'src/databases/migrations/**',
|
|
'src/databases/ormconfig.ts',
|
|
],
|
|
|
|
rules: {
|
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
|
|
// TODO: Remove this
|
|
'import/no-cycle': 'warn',
|
|
'import/order': 'off',
|
|
'import/extensions': 'off',
|
|
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
|
|
},
|
|
};
|