Skip to content

Commit

Permalink
Disable unicorn/prefer-module for .cjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
xt0rted committed Jan 30, 2023
1 parent 6e37676 commit 9f401b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Remove `parserOptions` from typescript config
- Disable `unicorn/prefer-module` for `.cjs` files

## [1.1.0](https://github.com/rezstream/eslint-plugin-rezstream/compare/v1.0.1...v1.1.0) - 2023-01-27

Expand Down
8 changes: 8 additions & 0 deletions lib/configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ const config = {
},
],
},
overrides: [
{
files: ["*.cjs"],
rules: {
"unicorn/prefer-module": "off",
},
},
],
};

module.exports = config;

0 comments on commit 9f401b2

Please sign in to comment.