forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 54
feat: Update ES Syntax #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
de042b9
chore: Add all es-x rules to es-syntax.json
scagood ca8a3b8
chore: Add a couple of missing syntax :thinking:
scagood a9bc0bd
chore: #json comments
scagood 3cfa141
chore: Attempt (part 1) of simplifying es-syntax
scagood a61f962
chore: Add "test:mocha" to be able to run tests on one file faster
scagood a110d99
chore: Updates to the es-syntax.json
scagood 65849a1
feat: Re-add support for strict mode
scagood 633d78d
chore: Update all tests to support "not-supported-till"
scagood 1f90615
fix: strip "no-" prefix from es-x rule ids
scagood 1e212e9
Merge branch 'master' into es-syntax
scagood c2d5009
chore: remove useless comment
scagood 17e6d1b
fix: Add the ability to have es-syntax aliases
scagood 555508e
feat: Add compat aliases for es-syntax
scagood b1f2d35
feat: Use "featureName" over "ruleId" in error message
scagood File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
lib/rules/no-unsupported-features/es-syntax-additions.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.