0.3.0 • Published 3 years ago
eslint-config-woda v0.3.0
eslint-config-woda
These are our settings for ESlint that we use at woda
- Supports TypeScript projects using
typescript-eslint - Easily extensible
- Based on Airbnb's JavaScript Style Guide.
Installation
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-woda- You can see that all the necessary
devDependencieswere added to yourpackage.jsonfile
If you're using yarn and the dependencies aren't showing up in your package.json file, try
npx install-peerdeps --dev eslint-config-woda -Y- Create an .eslintrc.js config file in the root of your project's directory (same folder as your
package.jsonfile)
touch .eslintrc.js- The file should look like this
module.exports = {
extends: 'eslint-config-woda',
};and for TypeScript like this
module.exports = {
extends: ['eslint-config-woda/typescript'],
parserOptions: {
project: './tsconfig.json',
},
};