Merge newsletter tests config into ES5 config

[MAILPOET-5015]
This commit is contained in:
Jan Jakes
2023-03-25 22:13:59 +01:00
committed by Jan Jakeš
parent 8d311f2d9f
commit 62dcee8ae9
3 changed files with 20 additions and 45 deletions

View File

@@ -3,6 +3,7 @@ const FlatCompat = require('@eslint/eslintrc').FlatCompat;
const airbnbLegacyConfig = require('eslint-config-airbnb/legacy');
const prettierConfig = require('eslint-config-prettier');
const importPlugin = require('eslint-plugin-import');
const noOnlyTestsPlugin = require('eslint-plugin-no-only-tests');
const globals = require('globals');
// compat configs
@@ -26,11 +27,13 @@ module.exports = [
},
plugins: {
import: importPlugin,
'no-only-tests': noOnlyTestsPlugin,
},
rules: {
'import/prefer-default-export': 0, // we want to stop using default exports and start using named exports
'no-underscore-dangle': 0, // Backbone uses underscores, we cannot remove them
'import/no-default-export': 1, // no default exports
'no-only-tests/no-only-tests': 2,
},
},
];