1.1.1 • Published 5 years ago
eslint-config-mmcoding v1.1.1
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.jsonfile, create one withnpm init.Then we need to install everything needed by the config:
npx install-peerdeps --dev eslint-config-mmcodingYou can see in your package.json there are now a big list of devDependencies.
Create a
.eslintrcfile in the root of your project's directory (it should live where package.json does). Your.eslintrcfile 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!! 😊