eslint-plugin-eslint-comments

Additional ESLint rules for directive comments of ESLint.

MIT License

Downloads
10.5M
Stars
361
Committers
8

Bot releases are hidden (Show)

eslint-plugin-eslint-comments - Latest Release

Published by mysticatea over 5 years ago

🐛 Bug Fixes

  • d6a9fd22220b3b3f6ca2c1b60f93b5d7f08f6493 fixed eslint-comments/no-unused-disable rule to work on ESLint 6.
eslint-plugin-eslint-comments -

Published by mysticatea over 5 years ago

🐛 Bug Fixes

eslint-plugin-eslint-comments -

Published by mysticatea over 5 years ago

✨ Enhancements

  • f625cd67589bc5357800ae319c653b5eb7e13575 made eslint-comments/no-unused-disable rule fixable. Thank you, @ianobermiller !
eslint-plugin-eslint-comments -

Published by mysticatea over 6 years ago

Bug fixes

  • 520f797080b8bcdaa9175dc4e825af761d3f8e0d fixed a problem on WebStorm. (see #14 for details)
eslint-plugin-eslint-comments -

Published by mysticatea over 6 years ago

Support ESLint 5.0.0 🎉

This version has no change from v3.0.0-beta.2.

eslint-plugin-eslint-comments -

Published by mysticatea over 6 years ago

Bug fixes

  • 2ae6ac49a718fe316f283a030e3d52abcb8ff6ea fixed the no-unused-disable rule's regression bug in beta.1.
eslint-plugin-eslint-comments -

Published by mysticatea over 6 years ago

Bug fixes

  • c6cb40bc0ed10ccadcbebc36653235069537e499 fixed the no-unused-disable rule as not crashing even if a certain source code has any parse error.
eslint-plugin-eslint-comments -

Published by mysticatea over 6 years ago

Now support ESLint 5.0.0 α 🎉

This version is β.
Please use @next tag to install.

npm install eslint-plugin-eslint-comments@next

Breaking changes

  • Requirements changed.
    • Node.js from >=4.0.0 to >=6.5.0
    • ESLint from ^4.7.0 to >=4.19.1
  • Now plugin:eslint-comments/recommended preset doesn't include eslint-comments/no-unused-disable rule. You have two options:
    1. Use the --report-unused-disable-directives CLI option instead of the eslint-comments/no-unused-disable rule.
    2. Use the eslint-comments/no-unused-disable rule explicitly continuously.

Bug fixes

  • eslint-comments/no-unused-disable rule crashes on ESLint 5.0.0 α.
eslint-plugin-eslint-comments -

Published by mysticatea almost 7 years ago

Chores

  • 6cc5229c0ecde7cc6847f43cb169dd3b668413b8 added the meta.docs.url property to rules.
eslint-plugin-eslint-comments -

Published by mysticatea almost 7 years ago

Bug fixes

  • 62f67a4aa349e10d29ac970804d051249e7863cb fixed false positive in eslint-comments/disable-enable-pair rule with allowWholeFile option (#9).
eslint-plugin-eslint-comments -

Published by mysticatea almost 7 years ago

Breaking changes

  • 0cd25a3cf259320228d473b3a47ae97280cbd955 and 54d5fa0d574426bc4f656ad66179d74f7e58515d dropped the support of eslint@<4.7.0. ESLint changed the behavior about directive comments without backward compatibility in https://github.com/eslint/eslint/pull/9216. And the rules of plugins cannot know the version of ESLint which is running the rule. They are recommending plugin developers to drop support for old ESLint if you want to know the version of ESLint. Eslint-plugin-eslint-comments v2.0.0 handles directive comments of eslint@>=4.7.0.

New features

eslint-plugin-eslint-comments -

Published by mysticatea almost 7 years ago

Enhancements

  • 3b93a30a0d7bdea61e6a7dc19aed8e7bf35dd782 added an option allowWholeFile into disable-enable-pair rule (#8). Thank you, @futpib !
eslint-plugin-eslint-comments -

Published by mysticatea about 7 years ago

Bug fixes

  • 85fa282a8407fc7c2fd4753d45fcf63fcd593007 fixes some rules don't work on ESLint 4.4.0. Thank you, @not-an-aardvark ❤️
eslint-plugin-eslint-comments -

Published by mysticatea over 7 years ago

Bug fixes

  • f72feeb2bbb19a7699f449596bb45993b3c2eb35 fixed it to work on ESLint v4. (#1)
eslint-plugin-eslint-comments -

Published by mysticatea over 7 years ago

Chore

  • Upgrade dependencies.
eslint-plugin-eslint-comments -

Published by mysticatea almost 8 years ago

No change, just a stable release.

eslint-plugin-eslint-comments -

Published by mysticatea about 8 years ago

Bug Fixes

  • e7d9900e7c6afda358bdd6a287d73f76efdc1981 fixed false positive of eslint-comments/no-unused-disable.
eslint-plugin-eslint-comments -

Published by mysticatea about 8 years ago

First β Release.