Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Fix/lint staged prettier #2573

Merged
merged 4 commits into from
Apr 7, 2017

Conversation

bomsy
Copy link
Contributor

@bomsy bomsy commented Apr 7, 2017

Associated Issue

The issue is that lint-staged was not watching most of our prettier paths to automatically
make staged files in those files pretty.

Summary of Changes

  • Add lint-staged tasks to support all our prettier paths
  • Use the npm tasks instead
  • lint-staged does not seem to have a concise way of grouping multiple glob patterns atm .

@codecov
Copy link

codecov bot commented Apr 7, 2017

Codecov Report

Merging #2573 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2573      +/-   ##
==========================================
- Coverage   57.76%   57.68%   -0.09%     
==========================================
  Files          51       51              
  Lines        1996     1985      -11     
  Branches      401      398       -3     
==========================================
- Hits         1153     1145       -8     
+ Misses        843      840       -3
Impacted Files Coverage Δ
src/utils/editor/source-editor.js 25.53% <0%> (-5.85%) ⬇️
src/actions/expressions.js 80.55% <0%> (-1.5%) ⬇️
src/utils/editor/index.js 14.75% <0%> (-0.64%) ⬇️

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 860a1ee...1468e03. Read the comment docs.

"src/*.js": ["prettier", "git add"],
"src/*/*.js": ["prettier", "git add"],
"src/*/!(mochitest)**/*.js": ["prettier", "git add"],
"src/*/!(mochitest)*/**/*.js": ["prettier", "git add"]
Copy link
Contributor

Choose a reason for hiding this comment

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

could we do a catch all like **/*.js which would pass everything to prettier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This won't ignore changes changes to the mochitests

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh

@jasonLaster jasonLaster merged commit 20aebea into firefox-devtools:master Apr 7, 2017
DanUgelow pushed a commit to DanUgelow/debugger.html that referenced this pull request May 4, 2017
* add dummy test

* second test

* 3rd test dummy

* add lint-staged tasks for watching all oour prettier paths
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants