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

Add tslint to the linting pipe #2682

Merged
merged 3 commits into from
Jan 8, 2018
Merged

Add tslint to the linting pipe #2682

merged 3 commits into from
Jan 8, 2018

Conversation

igor-dv
Copy link
Member

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

Issue: Based on #2679 (comment)

What I did

Added tslint to the precommit + fixed linter errors.
Feel free to add new rules.

@codecov
Copy link

codecov bot commented Jan 8, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2682   +/-   ##
=======================================
  Coverage   34.35%   34.35%           
=======================================
  Files         389      389           
  Lines        8747     8747           
  Branches      897      898    +1     
=======================================
  Hits         3005     3005           
+ Misses       5144     5134   -10     
- Partials      598      608   +10
Impacted Files Coverage Δ
app/vue/src/server/utils.js 0% <0%> (-53.58%) ⬇️
lib/ui/src/modules/ui/components/menu_item.js 19.14% <0%> (ø) ⬆️
addons/info/src/components/types/Enum.js 0% <0%> (ø) ⬆️
lib/ui/src/modules/ui/components/layout/usplit.js 38.7% <0%> (ø) ⬆️
...ents/stories_panel/stories_tree/tree_decorators.js 34.37% <0%> (ø) ⬆️
...modules/ui/components/stories_panel/text_filter.js 30.98% <0%> (ø) ⬆️
addons/info/src/components/types/Shape.js 68.62% <0%> (ø) ⬆️
app/react-native/src/preview/story_kind.js 0% <0%> (ø) ⬆️
lib/ui/src/modules/ui/components/layout/index.js 29.28% <0%> (ø) ⬆️
addons/events/src/components/Event.js 38.55% <0%> (ø) ⬆️
... and 46 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 50595b7...0bd8a1c. Read the comment docs.

@igor-dv igor-dv self-assigned this Jan 8, 2018
@igor-dv igor-dv added compatibility with other tools maintenance User-facing maintenance tasks labels Jan 8, 2018
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me!

@igor-dv igor-dv merged commit a03b6a6 into master Jan 8, 2018
@igor-dv igor-dv deleted the ts-lint-all branch January 8, 2018 13:45
"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",
Copy link
Member

Choose a reason for hiding this comment

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

do they have something like .tslintignore?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, I'll check it!

@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
@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
compatibility with other tools 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.

None yet

5 participants