You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,7 @@ Notice that the linting commands now are nested into the `linters` object. The f
148
148
*`ignore` - `['**/docs/**/*.js']` - array of glob patterns to entirely ignore from any task.
149
149
*`linters` — `Object` — keys (`String`) are glob patterns, values (`Array<String> | String`) are commands to execute.
150
150
*`subTaskConcurrency` — `1` — Controls concurrency for processing chunks generated for each linter. This option is only applicable on Windows. Execution is **not** concurrent by default(see [#225](https://github.com/okonet/lint-staged/issues/225))
151
+
*`relative` — `false` — if `true` it will give the relative path from your `package.json` directory to your linter arguments.
151
152
152
153
## Filtering files
153
154
@@ -287,6 +288,17 @@ The following is equivalent:
287
288
}
288
289
```
289
290
291
+
### Use ng lint with angular cli >= 7.0.0
292
+
293
+
```json
294
+
{
295
+
"linters": {
296
+
"*.ts": "ng lint myProjectName --files"
297
+
},
298
+
"relative": true
299
+
}
300
+
```
301
+
290
302
### Stylelint for CSS with defaults and for SCSS with SCSS syntax
0 commit comments