Skip to content

Commit ebcff34

Browse files
ahilton-godaddyjpage-godaddymsluther
authored
update readme with how to disable autofix (#154)
* update readme with how to disable autofix it took me a while to figure out how to disable autofix, and on ci, auto-fixing is not always desirable, as opposed to just erroring * Update README.md Co-authored-by: Jacob Page <85361835+jpage-godaddy@users.noreply.github.com> * Update README.md Co-authored-by: msluther <msluther99@gmail.com> Co-authored-by: Jacob Page <85361835+jpage-godaddy@users.noreply.github.com> Co-authored-by: msluther <msluther99@gmail.com>
1 parent 313c3f0 commit ebcff34

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ This section is a place for additional best practices that may be useful but are
124124
}
125125
```
126126

127+
## How do I disable auto fix
128+
129+
You may wish to disable auto fix so when you run `eslint` in ci it will error
130+
if it catches anything unlinted.
131+
132+
``` js
133+
{
134+
"scripts": {
135+
"eslint:ci": "eslint-godaddy --fix=false --max-warnings=0 lib/ test/",
136+
}
137+
}
138+
```
139+
140+
127141
## How do I contribute?
128142

129143
Fork this repository and submit a pull request.

0 commit comments

Comments
 (0)