Our re-usable config for the ESLint JS/TS linter.
-
Install this config as a devDependency:
npm i -D @gamesdonequick/eslint-config
-
Follow the instructions here to use or extend our config: https://eslint.org/docs/developer-guide/shareable-configs#using-a-shareable-config
-
This package actually includes multiple configs. One base config, one that adds typescript support, and one that adds react support. You can pick and choose what parts you wish to use. To use all three, your config might look like this:
module.exports = { extends: [ "@gamesdonequick/eslint-config/react", "@gamesdonequick/eslint-config", "@gamesdonequick/eslint-config/typescript" ] };