Skip to content

Commit

Permalink
feat: Update ES Syntax (#189)
Browse files Browse the repository at this point in the history
* chore: Add all es-x rules to es-syntax.json

* chore: Add a couple of missing syntax 🤔

* chore: #json comments

* chore: Attempt (part 1) of simplifying es-syntax

* chore: Add "test:mocha" to be able to run tests on one file faster

* chore: Updates to the es-syntax.json

* feat: Re-add support for strict mode

* chore: Update all tests to support "not-supported-till"

* fix: strip "no-" prefix from es-x rule ids

* chore: remove useless comment

* fix: Add the ability to have es-syntax aliases

* feat: Add compat aliases for es-syntax

* feat: Use "featureName" over "ruleId" in error message
  • Loading branch information
scagood committed Mar 4, 2024
1 parent c8a87f3 commit 4778ae8
Show file tree
Hide file tree
Showing 5 changed files with 1,607 additions and 961 deletions.
30 changes: 30 additions & 0 deletions lib/rules/no-unsupported-features/es-syntax-additions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"[computed=false] Literal.key[bigint]": {
"name": "no-bigint-property-names",
"supported": ">=14.0.0"
},
"[shorthand=true][kind='get'], [shorthand=true][key.name='get']": {
"name": "no-property-shorthands-get",
"supported": ">=6.0.0"
},
"[shorthand=true][kind='set'], [shorthand=true][key.name='set']": {
"name": "no-property-shorthands-set",
"supported": ">=6.0.0"
},
"CallExpression[optional=true] > SpreadElement.arguments": {
"name": "no-spread-parameters-after-optional-chaining",
"supported": ">=16.1.0"
},
"MethodDefinition > PrivateName.key": {
"name": "no-class-private-methods",
"supported": ">=14.6.0"
},
"MemberExpression[object.name='Atomics'] > Identifier.property[name='notify']": {
"name": "no-class-private-methods",
"supported": ">=10.6.0"
},
"MemberExpression[object.name='Array'] > Identifier.property[name='fromAsync']": {
"name": "no-class-array-fromasync",
"supported": null
}
}

0 comments on commit 4778ae8

Please sign in to comment.