Added @internal Js comments to internal API functions#2484
Open
nveenjain wants to merge 1 commit intographql:nextfrom
Open
Added @internal Js comments to internal API functions#2484nveenjain wants to merge 1 commit intographql:nextfrom
nveenjain wants to merge 1 commit intographql:nextfrom
Conversation
3f851bb to
a7f5bc7
Compare
Member
|
@nveenjain Please add ignoring of |
Member
|
@nveenjain Also please ignore all files under |
e6ebbc6 to
b3b56b4
Compare
nveenjain
commented
Mar 13, 2020
| "testonly:cover": "nyc npm run testonly", | ||
| "lint": "eslint --rulesdir './resources/eslint-rules' --rule 'no-dir-import: error' --cache --ext .js,.ts src resources", | ||
| "prelint": "node resources/generate-exported", | ||
| "lint": "eslint --rulesdir './resources/eslint-rules' --rule 'no-dir-import: error' --cache --ext .js,.ts src resources && eslint --rulesdir ./resources/eslint-rules/ --rule 'internal-func: 1' src --ignore-pattern 'src/jsutils/*' --ignore-pattern 'src/polyfills/*' --ignore-pattern 'src/**/__tests__/**' --ignore-pattern 'src/__tests__/*'", |
Author
There was a problem hiding this comment.
@IvanGoncharov, I've ignored all the files under __tests__ by ignoring them in the when we invoke eslint itself ( using --ignore-pattern ). But the command itself turned out to be larger in length... Should i break the lint commands in two parts or does this work?
Created ESLint rule to check whether internal API functions are properly annotated or not Added support to get list of puvlic API functions (map.json created during linting) Signed-off-by: Naveen Jain <nveenjain@gmail.com>
b3b56b4 to
42fb05d
Compare
Author
|
@IvanGoncharov , is there anything else that needs to be done apart from resolving conflicts? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #2183
Created ESLint rule to check whether internal API functions are properly annotated or not
Added support to get list of public API functions (map.json created during linting) to get the json file, remove the postlint step.
Signed-off-by: Naveen Jain nveenjain@gmail.com