eslint-config-mmcoding
v1.1.1
Published
Miguel Machado (aka mmcoding) eslint settings
Downloads
13
Maintainers
Readme
ESlint and Prettier setup
These are my settings for ESLint and Prettier
You might like them - or you might not. Don't worry you can always change them.
You can see all the rules here
Local / Per Project Install
If you don't already have a
package.json
file, create one withnpm init
.Then we need to install everything needed by the config:
npx install-peerdeps --dev eslint-config-mmcoding
You can see in your package.json there are now a big list of devDependencies.
Create a
.eslintrc
file in the root of your project's directory (it should live where package.json does). Your.eslintrc
file should look like this:
{
"extends": ["mmcoding"]
}
Absolute paths
This ESlint is setted up to use absolute paths, so if you want to use you can check here how to do it! Your ESlint will not complain about!! 😊