diff --git a/.changeset/cold-scissors-compete.md b/.changeset/cold-scissors-compete.md new file mode 100644 index 0000000..18e7e1d --- /dev/null +++ b/.changeset/cold-scissors-compete.md @@ -0,0 +1,8 @@ +--- +'eslint-config-seek': minor +--- + +Add [export][docs] as an error. +This disallows repeated exports of names or defaults. + +[docs]: https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/export.md diff --git a/base.js b/base.js index 52cdbb8..6c753bc 100644 --- a/base.js +++ b/base.js @@ -190,6 +190,7 @@ module.exports = [ // However, there is a pending PR which improves the behaviour of this rule https://github.com/import-js/eslint-plugin-import/pull/2716 // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports 'import-x/no-duplicates': [ERROR, { 'prefer-inline': true }], + 'import-x/export': ERROR, }, }, { @@ -207,6 +208,7 @@ module.exports = [ { commonjs: true, amd: true, ignore: ['.svg$', '^file?'] }, ], 'import-x/no-duplicates': ERROR, + 'import-x/export': ERROR, }, }, {