Defines a set of rules used by ESLint to enforce our JS/TS coding standards.
This configuration uses the Airbnb style guide with a few tweaks.
yarn add @destination/eslint-config eslint --dev
Add the following to your project's ruleset e.g. in package.json
:
{
"eslint": {
"extends": "@destination/eslint-config"
}
}
Run eslint
as normal e.g.:
yarn eslint 'assets/**/*.{js,ts}'
Released under the MIT license