Skip to content
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

Extract tslint exclusions out of package.json scripts #2684

Merged
merged 2 commits into from
Jan 8, 2018

Conversation

igor-dv
Copy link
Member

@igor-dv igor-dv commented Jan 8, 2018

Issue: #2682 (comment)

What I did

Extract tslint exclusions to the section inside tslint.json.

package.json Outdated
@@ -23,7 +23,7 @@
"github-release": "github-release-from-changelog",
"lint": "yarn lint:js . && yarn lint:ts && yarn lint:md .",
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json",
"lint:ts": "tslint -p . -t stylish -e '{**/node_modules/**,**/dist/**,lib/cli/test/**,**/storybook-static/**}' **/*.ts",
"lint:ts": "tslint -p . -c tslint.json -t stylish **/*.ts",
Copy link
Member

@Hypnosphi Hypnosphi Jan 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will lint all the ts files (even untouched) on each commit. Please remove the **/*.ts part and add it in lint script instead (as it's done for eslint)

@codecov
Copy link

codecov bot commented Jan 8, 2018

Codecov Report

Merging #2684 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2684   +/-   ##
=======================================
  Coverage   34.35%   34.35%           
=======================================
  Files         389      389           
  Lines        8747     8747           
  Branches      919      888   -31     
=======================================
  Hits         3005     3005           
- Misses       5132     5162   +30     
+ Partials      610      580   -30
Impacted Files Coverage Δ
app/react/src/server/utils.js 0% <0%> (-53.58%) ⬇️
addons/viewport/src/components/RotateViewport.js 22.72% <0%> (ø) ⬆️
lib/ui/src/modules/ui/configs/handle_routing.js 24.21% <0%> (ø) ⬆️
addons/info/src/components/markdown/code.js 79.31% <0%> (ø) ⬆️
lib/ui/src/modules/ui/components/search_box.js 36.36% <0%> (ø) ⬆️
addons/knobs/src/components/types/Select.js 7.93% <0%> (ø) ⬆️
.../src/modules/ui/components/stories_panel/header.js 29.62% <0%> (ø) ⬆️
lib/ui/src/modules/ui/containers/addon_panel.js 23.52% <0%> (ø) ⬆️
lib/ui/src/modules/ui/routes.js 0% <0%> (ø) ⬆️
addons/jest/src/hoc/provideJestResult.js 0% <0%> (ø) ⬆️
... and 57 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a03b6a6...002ddbf. Read the comment docs.

@Hypnosphi Hypnosphi merged commit 2f502b6 into master Jan 8, 2018
@Hypnosphi Hypnosphi added the maintenance User-facing maintenance tasks label Jan 8, 2018
@Hypnosphi Hypnosphi deleted the tslint-extract-exclusions branch January 8, 2018 16:18
@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Jan 10, 2018
@shilman
Copy link
Member

shilman commented Jan 10, 2018

adding to patch to reduce merge conflicts

shilman pushed a commit that referenced this pull request Jan 10, 2018
Extract tslint exclusions out of package.json scripts
@Hypnosphi Hypnosphi added the patch:done Patch/release PRs already cherry-picked to main/release branch label Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants