Skip to content

Commit

Permalink
Enable no anonymous default export (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby authored Aug 12, 2020
1 parent c5d0fd5 commit ea13efd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-panthers-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-caleb': major
---

Enable no-anonymous-default-export
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const external = [
'eslint-plugin-jsx-a11y',
]

export default {
const config = {
input: 'src/rules.js',
output: {
file: 'dist/rules.js',
Expand Down Expand Up @@ -66,3 +66,5 @@ export default {
}),
],
}

export default config
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module.exports.configs = {
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
'node/no-missing-import': 'off', // doesn't work with ts files, and we have eslint-plugin-import for this
'import/no-anonymous-default-export': 'error',
'no-unused-vars': [
'error',
{
Expand Down

0 comments on commit ea13efd

Please sign in to comment.