eslint-utils icon indicating copy to clipboard operation
eslint-utils copied to clipboard

Utilities for ESLint plugins and custom rules.

Results 22 eslint-utils issues
Sort by recently updated
recently updated
newest added

This could theoretically work without the need of compiling things, just need to add the extension > Mandatory file extensions# > A file extension must be provided when using the...

I want to use the eslint-utils with TypeScript. However, the project doesn't have types. [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/blob/25ea953cc60b118bd385c71e0a9b61c286c26fcf/packages/experimental-utils/src/ast-utils/eslint-utils/index.ts) and [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue/blob/c775584b922d21fe62f6aee0f638ed9b75968f1f/typings/eslint-utils/index.d.ts) has type themselves. How about having type for developers who want to use...

enhancement

I added a non-empty judgment to the variable that may cause a TypeError( `TypeError: Cannot read property 'references' of null` ) in _**_iterateVariableReferences**_ `for (const reference of variable.references) {`

This adds some functions used by some built-in eslint rules through ast-utils, to make it easier to customize them.

i even downloaded the repo and ran the tests ![image](https://user-images.githubusercontent.com/22435967/139196191-ae154d18-5092-4dcb-b884-6366024cae64.png)

ESLint v8.0.0 is [released](https://eslint.org/blog/2021/10/eslint-v8.0.0-released) 🎉 devDependency compatibility with ESLint 8: - [ ] [`@mysticatea/eslint-plugin`](https://github.com/mysticatea/eslint-plugin) (https://github.com/mysticatea/eslint-plugin/issues/31) - [ ] https://github.com/mysticatea/eslint-plugin/pull/29 - [ ] https://github.com/mysticatea/eslint-plugin/pull/32 - [ ] Release --- BREAKING CHANGE:...

ESLint v8.0.0 is [released](https://eslint.org/blog/2021/10/eslint-v8.0.0-released) 🎉 It would be awesome to have official ESLint 8 support. 👊 I'm happy to help where I can of course 🙂

Example: `const a = []; a === a` will evaluate to `false`. This is because `getStaticValue` evaluates each reference to a variable separately, so we get different objects with the...

This allows simple function expressions (e.g. `() => 4`) in `getStaticValue`. Only functions that are not `async`, not generators, and have no parameters are supported. The function body must be...

This allows `getStaticValue` to evaluate RegExp getters. Only the safe readonly getters are allowed, those are `source`, `flags`, and the getters for individual flags. `lastIndex` is not included because its...