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
Breaking: Defining prettier options must use an object
Drop support for specifying prettier options using the "fb" shorthand
string. Replace "fb" with either config in your .prettierrc or the object:
`{ singleQuote: true, trailingComma: 'all', bracketSpacing: false, jsxBracketSameLine: true, parser: 'flow'}`
Drop support for specifying the prettier options as `null`. Replace
`null` with an empty object `{}`
- Or the string `"fb"` may be used to set"Facebook style" defaults:
111
-
112
-
```json
113
-
"prettier/prettier": ["error", "fb"]
114
-
```
115
-
116
-
Equivalent to:
117
-
118
-
```json
119
-
"prettier/prettier": ["error", {
120
-
"singleQuote": true,
121
-
"trailingComma": "all",
122
-
"bracketSpacing": false,
123
-
"jsxBracketSameLine": true,
124
-
"parser": "flow"
125
-
}]
126
-
```
127
-
128
110
NB: This option will merge and override any config set with `.prettierrc` files
129
111
130
112
- The second option:
131
113
132
114
- An object with the following options
115
+
133
116
- `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.
0 commit comments