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
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Prettier Eslint Webpack Plugin
2
2
3
-
Webpack 2.* plugin for [prettier-eslint](https://github.com/kentcdodds/prettier-eslint) which ESLint's settings is set to [JavaScript Standard Style](http://standardjs.com/)
3
+
Webpack 2.* plugin for [prettier-eslint](https://github.com/kentcdodds/prettier-eslint)
| filePath | ?String | The path of the file being formatted can be used in leu of eslintConfig (eslint will be used to find the relevant config for the file). | undefined |
23
+
| eslintConfig | ?Object | The config to use for formatting with ESLint. If this is provided, then filePath is not necessary. |[JavaScript Standard Style](http://standardjs.com/)|
24
+
| prettierOptions | ?Object | The options to pass for formatting with prettier. If not provided, prettier-eslint will attempt to create the options based on the eslintConfig (whether that's provided or derived via filePath). You can also provide some of the options and have the remaining options derived via your eslint config. This is useful for options like parser. | undefined |
25
+
| logLevel | ?Enum: ['trace', 'debug', 'info', 'warn', 'error', 'silent']| prettier-eslint does quite a bit of logging if you want it to. Pass this to set the amount of logs you want to see. | process.env.LOG_LEVEL || 'warn' |
26
+
| eslintPath | ?String | By default, prettier-eslint will try to find the relevant eslint (and prettier) module based on the filePath. If it cannot find one, then it will use the version that prettier-eslint has installed locally. If you'd like to specify a path to the eslint module you would like to have prettier-eslint use, then you can provide the full path to it with the eslintPath option. | undefined |
0 commit comments