My personal eslint configuration.
This package is hosted on npm.
Install the configuration and it's peer dependencies as a development dependency.
npx install-peerdeps --dev eslint-config-bradgarropy
This installs peer dependencies automatically using npx and install-peerdeps so you don't have to!
Create an .eslintrc
file in the root of your project and tell it to extend the configuration.
{
extends: "bradgarropy"
}
You can add more ESLint configuration options in this file if you want.
If you have any trouble, definitely open an issue and I'll take a look.
Or you can consult the ESLint Shareable Configs documentation.
And if all else fails, you can ask me directly on Twitter or my AMA.