eslint-plugin-es icon indicating copy to clipboard operation
eslint-plugin-es copied to clipboard

ESLint plugin about ECMAScript syntactic features.

Results 38 eslint-plugin-es issues
Sort by recently updated
recently updated
newest added

**Please describe what the rule should do:** `no-hashbang` rule that disallow Hashbang comments, added in ES2023. https://github.com/tc39/proposal-hashbang **Provide 2-3 code examples that this rule will warn about:** ```js #!/usr/bin/env node...

**Please describe what the rule should do:** `no-array-prototype-findlast-findlastindex` rule that disallow `array.findLast()` and `array.findLastIndex()`, added in ES2023. https://github.com/tc39/proposal-array-find-from-last **Provide 2-3 code examples that this rule will warn about:** ```js array.findLast(e...

**Please describe what the rule should do:** Disallows Class Fields added in ES2022. https://github.com/estree/estree/blob/master/es2022.md **Provide 2-3 code examples that this rule will warn about:** https://github.com/tc39/proposal-class-fields ```js class Counter { x...

Hi, @mysticatea. The rules for prototype methods were added 7 months ago, but the new version was not published forcing us to use this plugin from GitHub. Maby already makes...

When trying to use _only_ the `"es/no-string-prototype-replaceall": "error"` rule, eslint reports that this rule is not available: `Definition for rule 'es/no-string-prototype-replaceall' was not found` .eslintrc.json: ``` { "parser": "@typescript-eslint/parser", "parserOptions":...

The third example was syntactically incorrect so I added a plus sign and added more examples for correct code regarding other ways to format string literals (hopefully the same way...

First: Thanks for this. It's great! Neither of these rules have examples and I'm not clear on what the difference is: - `no-spread-elements`: \ https://github.com/mysticatea/eslint-plugin-es/blob/master/docs/rules/no-spread-elements.md - `no-rest-spread-properties`: \ https://github.com/mysticatea/eslint-plugin-es/blob/master/docs/rules/no-rest-spread-properties.md What's...

This PR adds `es/no-function-prototype-bind` rule. `es/no-function-prototype-bind` rule reports ES5 `Function.prototype.bind` method as errors. For how to check if type is a function on TypeScript, I referred to the source code...

This PR adds `es/no-object-create` rule. `es/no-object-create` rule reports ES5 `Object.create()` as errors. close #60

This PR adds `es/no-arbitrary-module-namespace-names` rule. `es/no-arbitrary-module-namespace-names` rule reports ES2022 arbitrary module namespace names as errors. close #86