Skip to content

Commit

Permalink
🔨 Add fix script
Browse files Browse the repository at this point in the history
When linting during CI, misformatted code should result in a warning
instead of automatically getting fixed.
  • Loading branch information
clabe45 committed Jul 17, 2023
1 parent 8a6696f commit 6dbbf37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Thank you for considering contributing to Etro! There are many ways you can cont
- Briefly review the images in **spec/integration/assets/effect/**
- As you work, you can run
```
npm run lint
npm run fix
npm run build
npm test
```
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@
"prepare": "husky install",
"effects": "node scripts/effect/save-effect-samples.js",
"lint": "npm run --silent lint:main && npm run --silent lint:test && npm run --silent lint:examples",
"lint:main": "eslint -c eslint.typescript-conf.js --ext .ts --fix src",
"lint:test": "eslint -c eslint.test-conf.js --ext .ts --fix spec",
"lint:examples": "eslint -c eslint.example-conf.js --ext .html --fix examples",
"fix": "npm run --silent lint:main -- --fix && npm run --silent lint:test -- --fix && npm run --silent lint:examples -- --fix",
"lint:main": "eslint -c eslint.typescript-conf.js --ext .ts src",
"lint:test": "eslint -c eslint.test-conf.js --ext .ts spec",
"lint:examples": "eslint -c eslint.example-conf.js --ext .html examples",
"start": "http-server",
"test": "karma start",
"release": "shipjs prepare"
Expand Down

0 comments on commit 6dbbf37

Please sign in to comment.