/avensia-eslint

Primary LanguageJavaScriptMIT LicenseMIT

avensia-eslint

Work in progress...

List of supported rules

✔: Enabled in the recommended configuration.
🔧: Fixable with eslint --fix.

✔ 🔧 Rule Description
✔ 🔧 avensia/require-comment-for-hook-ignore Prevent ignoring exhaustive-deps or rules-of-hooks without describing why

Rules documentation

See eslint documentation for more information about working with ESLint rules.

CONTRIBUTING

An important note about contributing right now is that there is a problem in the markdown-magic package which is currently at 2.6.0. It has a dependency called @technote-space/doctoc that completely removed the possiblity to use require() and instead wants import(). The package has not been properly updated yet, so if you want to run the npm run generate-list-of-rules command, you have to open node_modules\markdown-magic\lib\transforms\toc.js and change:

// this
const { transform } = require('@technote-space/doctoc')
// to this
const { transform } = import('@technote-space/doctoc')

And you should now be able to properly update README.md with your new rules. Once markdown-magic pins a non-broken version of @technote-space/doctoc things should work great again. So ^2.6.1 hopefully. (See versions here: https://www.npmjs.com/package/markdown-magic?activeTab=versions)

License

avensia-eslint is licensed under the MIT License.