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
+18
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,24 @@ You can then set Prettier's own options inside a `.prettierrc` file.
141
141
```
142
142
143
143
_This option is useful if you're migrating a large codebase and already use pragmas like `@flow`._
144
+
145
+
- An object with the following options
146
+
147
+
- `pragma`: Also sets the aforementioned `pragma`: a string with a pragma that triggers this rule. By default, this rule applies to all files. However, if you set a pragma (this option), only files with that pragma in the heading docblock will be checked. All pragmas must start with `@`.
148
+
149
+
```json
150
+
"prettier/prettier": ["error", null, {
151
+
"pragma": "@prettier"
152
+
}]
153
+
```
154
+
155
+
- `usePrettierrc`: Enables loading of the Prettier configuration file, (default: `true`). May be useful if you are using multiple tools that conflict with each other, or do not wish to mix your ESLint settings with your Prettier configuration.
156
+
157
+
```json
158
+
"prettier/prettier": ["error", null, {
159
+
"usePrettierrc": false
160
+
}]
161
+
```
144
162
145
163
* The rule is autofixable -- if you run `eslint` with the `--fix` flag, your code will be formatted according to `prettier` style.
0 commit comments