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

Definition for rule 'es/no-string-prototype-replaceall' was not found

Open ceisele-r opened this issue 3 years ago • 6 comments

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": {
    "ecmaVersion": 2021,
    "sourceType": "module",
    "project": "./tsconfig.json"
  },
  "plugins": ["@typescript-eslint", "es",
  "rules": {
    "es/no-string-prototype-replaceall": "error"
  }
}

I'm using "eslint-plugin-es": "^4.1.0",

When, as a test, using es/no-async-iteration instead of the replaceall rule, it works.

Is there anything else I need to configure to make checks only for this rule work?

ceisele-r avatar Apr 07 '21 06:04 ceisele-r

Ah, I just saw this is not yet included in the 4.1.0 release.

Would it be possible to create a new release that contains these rules?

ceisele-r avatar Apr 07 '21 06:04 ceisele-r

Same issue with es/no-string-prototype-matchall would be great to get a release which includes those in a new release, the docs on the webpage suggest that they are already useable.

chrigi avatar May 20 '21 19:05 chrigi

While that is not released I have installed it directly from GitHub instead of NPM.

maxcnunes avatar Jul 26 '21 20:07 maxcnunes

es/no-array-prototype-flat is also missing from the index file and can't be consumed...

Alonkad avatar Jul 28 '21 10:07 Alonkad

The document introduced the support for ES2021 but these feature are not released...

helloint avatar Sep 01 '21 06:09 helloint

a year later and still hasn't been released 😐

ChrisWiles avatar Feb 04 '22 15:02 ChrisWiles