Skip to content

Commit b62642b

Browse files
committed
add npm script
1 parent 2ba1701 commit b62642b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

js/red-javascript-style-guide/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-red",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"license": "CC0-1.0",
55
"homepage": "https://github.com/GrosSacASac/JavaScript-Set-Up/tree/master/js/red-javascript-style-guide",
66
"keywords": [

js/red-javascript-style-guide/readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ npm i -D eslint eslint-config-red
599599

600600
Inside package.json
601601

602-
```
602+
```json
603603
"eslintConfig": {
604604
"extends": ["red"],
605605
"parserOptions": {
@@ -615,6 +615,13 @@ Inside package.json
615615
}
616616
```
617617

618+
Inside package.json>scripts
619+
620+
```
621+
"lint-fix": "eslint --ignore-path .gitignore --fix source",
622+
"lint": "eslint --ignore-path .gitignore source",
623+
```
624+
618625
### Inspiration
619626

620627
- [APIs (video)](https://www.youtube.com/watch?v=gweY3L0YA1Y)

0 commit comments

Comments
 (0)