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

Fix/lint staged prettier - #2573

Merged
jasonLaster merged 4 commits into
firefox-devtools:masterfrom
bomsy:fix/lint-staged-prettier
Apr 7, 2017
Merged

Fix/lint staged prettier#2573
jasonLaster merged 4 commits into
firefox-devtools:masterfrom
bomsy:fix/lint-staged-prettier

Conversation

@bomsy

@bomsy bomsy commented Apr 7, 2017

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Apr 7, 2017

Copy link
Copy Markdown

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.

Comment thread package.json
"src/*.js": ["prettier", "git add"],
"src/*/*.js": ["prettier", "git add"],
"src/*/!(mochitest)**/*.js": ["prettier", "git add"],
"src/*/!(mochitest)*/**/*.js": ["prettier", "git add"]

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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