Skip to content

Commit

Permalink
feat!: move to eslint-plugin-es-x
Browse files Browse the repository at this point in the history
Fixes #111
  • Loading branch information
voxpelli committed May 16, 2023
1 parent f0ac16c commit 8b2a600
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 62 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Instead of simply extending `@voxpelli` you can extend `@voxpelli/eslint-config/
<!-- TODO: Maybe add promise/prefer-await-to-callbacks -->
<!-- TODO: Maybe add node/no-mixed-requires -->

* :warning: [`es/no-exponential-operators`](https://mysticatea.github.io/eslint-plugin-es/rules/no-exponential-operators.html) – disallows the use of the `**` operator, as that's in most cases a mistake and one really meant to write `*`
* :warning: [`es-x/no-exponential-operators`](https://eslint-community.github.io/eslint-plugin-es-x/rules/no-exponential-operators.html) – disallows the use of the `**` operator, as that's in most cases a mistake and one really meant to write `*`

* :warning: [`n/prefer-global/console`](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/console.md)
* :warning: [`n/prefer-promises/fs`](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-promises/fs.md)
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = {
plugins: [
'es',
'es-x',
'import',
'jsdoc',
'mocha',
Expand Down Expand Up @@ -95,7 +95,7 @@ module.exports = {

// Additional standalone ESLint rules

'es/no-exponential-operators': 'warn',
'es-x/no-exponential-operators': 'warn',

'n/prefer-global/console': 'warn',
'n/prefer-promises/fs': 'warn',
Expand Down
59 changes: 2 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@commitlint/config-conventional": "^17.6.3",
"eslint": "^8.40.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-es-x": "^6.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^44.2.4",
"eslint-plugin-mocha": "^10.1.0",
Expand All @@ -44,7 +44,7 @@
"peerDependencies": {
"eslint": "^8.40.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-es-x": "^6.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^44.2.4",
"eslint-plugin-mocha": "^10.1.0",
Expand Down

0 comments on commit 8b2a600

Please sign in to comment.