My personal opinionated eslint config that can be written into any project with a simple command.
prettier-eslint-cli is also installed as a dev dependency along with all other required eslint dependencies.
This config can be used for JavaScript, React, and React Native projects. To get a feel for the style you could look at the eslint config.
You can also easily integrate with Webstorm file watching.
You must have node and yarn installed on your machine
yarn global add timur-eslint-config
Go into any project directory where you want this eslint config. Next run
timur-eslint-config
- Go to Webstorm>Preferences then in the top left search bar search for file watchers
- Hit the plus icon, hit Prettier then enter these settings
-
Notice that we changed
$ProjectFileDir$ /node_modules/.bin/prettier to$ProjectFileDir$ /node_modules/.bin/prettier-eslint -
This will be red if you did not first run timur-eslint-config in the project root directory
-
And that's it! Your code will format with my codestyle on save