Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

eslint-utils

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Issues
File Explorer

Advanced tools

eslint-utils

Utilities for ESLint plugins.

    3.0.0latest

Version published
Maintainers
1
Weekly downloads
30,052,221
decreased by-5.25%

Weekly downloads

Changelog

Source

💥 Breaking Changes

  • 9a5c4fb0784029e0f270f2a92b684d0804ab9e30, 5361c335cec928fa49a89e0aa68252560c1b297f dropped old Node.js support. The new range is ^10.0.0 || ^12.0.0 || >= 14.0.0.
  • 5361c335cec928fa49a89e0aa68252560c1b297f added the exports field to package.json. Now direct accesses to internal files are disallowed.
  • c5574cee3fab847e158755829a9d20d874bc3a2d, 46771e110b39cfa52dbf70ba5a24a1d7bbaf032a changed the result of getFunctionNameWithKind(node) function in some cases.
    • Functions at method places prefer the method name than function's id. E.g., { foo: function bar() {} } is method 'foo'.
    • Arrow functions at method places are now methods. E.g., { foo: () => {} } is method 'foo'.
    • Function expressions at variable initializers or the RHS of assignments are named. E.g. foo = function() {} is function 'foo'.

✨ Enhancements

  • 05b8390bd30b064fdaf5af6b397413934c99ffa5 supports the new class features of ES2022: public class fields, private class members, and static of them.
  • 46771e110b39cfa52dbf70ba5a24a1d7bbaf032a added the optional second parameter to getFunctionNameWithKind(node). If you give context.getSourceCode() to that, the getFunctionNameWithKind(node, sourceCode) function handles the name of computed properties. E.g., { [foo]() {} } is method [foo].

🐛 Bug fixes

  • 994ee18e252ddccbb0c341f9c6c53cc8b30a766c fixed misleading result from getStaticValue() on expressions that re-use Symbol()s (#12)
  • b8820bc40243adf2ab016628a393f1aab1b47c40 fixed isParenthesized() on CatchClause.param should be false (#15)

Readme

Source

eslint-utils

npm version Downloads/month Build Status Coverage Status Dependency Status

🏁 Goal

This package provides utility functions and classes for make ESLint custom rules.

For examples:

📖 Usage

See documentation.

📰 Changelog

See releases.

❤️ Contributing

Welcome contributing!

Please use GitHub's Issues/PRs.

Development Tools

  • npm test runs tests and measures coverage.
  • npm run clean removes the coverage result of npm test command.
  • npm run coverage shows the coverage result of the last npm test command.
  • npm run lint runs ESLint.
  • npm run watch runs tests on each file change.

Keywords

FAQs

What is eslint-utils?

Utilities for ESLint plugins.

Is eslint-utils popular?

The npm package eslint-utils receives a total of 28,644,974 weekly downloads. As such, eslint-utils popularity was classified as popular.

Is eslint-utils well maintained?

We found that eslint-utils demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 14 May 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc