eslint-plugin-es
eslint-plugin-es copied to clipboard
Definition for rule 'es/no-string-prototype-replaceall' was not found
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?
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?
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.
While that is not released I have installed it directly from GitHub instead of NPM.
es/no-array-prototype-flat
is also missing from the index file and can't be consumed...
The document introduced the support for ES2021 but these feature are not released...
a year later and still hasn't been released 😐