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
--configPointer <pointer> JSON Pointer to object within configuration file (default: "")
32
+
-d, --dot include files/folders with a dot (for example `.github`)
33
+
-f, --fix fix basic errors (does not work with STDIN)
34
+
-i, --ignore <file|directory|glob> file(s) to ignore/exclude (default: [])
35
+
-j, --json write issues in json format
36
+
-o, --output <outputFile> write issues to file (no console)
37
+
-p, --ignore-path <file> path to file with ignore pattern(s)
38
+
-q, --quiet do not write issues to STDOUT
39
+
-r, --rules <file|directory|glob|package> include custom rule files (default: [])
40
+
-s, --stdin read from STDIN (does not work with files)
41
+
--enable <rules...> Enable certain rules, e.g. --enable MD013 MD041 --
42
+
--disable <rules...> Disable certain rules, e.g. --disable MD013 MD041 --
43
+
-h, --help display helpforcommand
43
44
```
44
45
45
46
Or run using [Docker](https://www.docker.com) and [GitHub Packages](https://github.com/features/packages):
@@ -113,6 +114,9 @@ JS configuration files contain JavaScript code, must have the `.js` or `.cjs` fi
113
114
If your workspace _(project)_ is [ESM-only]_(`"type": "module"` set in the root `package.json` file)_, then the configuration file **should end with `.cjs` file extension**.
114
115
A JS configuration file may internally `require` one or more npm packages as a way of reusing configuration across projects.
115
116
117
+
The `--configPointer` argument allows the use of [JSON Pointer][json-pointer] syntax to identify a sub-object within the configuration object (per above).
118
+
This argument can be used with any configuration file type and makes it possible to nest a configuration object within another file like `package.json` or `pyproject.toml` (e.g., via `/key` or `/key/subkey`).
119
+
116
120
`--enable` and `--disable` override configuration files; if a configuration file disables `MD123` and you pass `--enable MD123`, it will be enabled.
117
121
If a rule is passed to both `--enable` and `--disable`, it will be disabled.
0 commit comments