mysticatea / eslint-plugin-es

ESLint plugin about ECMAScript syntactic features.
https://eslint-plugin-es.mysticatea.dev/
MIT License
108 stars 21 forks source link

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

Open ceisele-r opened 3 years ago

ceisele-r commented 3 years ago

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 commented 3 years ago

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?

chrigi commented 3 years ago

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.

maxcnunes commented 3 years ago

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

Alonkad commented 3 years ago

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

helloint commented 3 years ago

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

ChrisWiles commented 2 years ago

a year later and still hasn't been released 😐