Evan Purkhiser's Personal JS code styles
These are my eslint configurations that I use across my various personal projects.
yarn install -D @evanpurkihser/eslint-config
Create a .eslintrc.js
file with the contents:
module.exports = {
extends: ['@evanpurkhiser'],
};
The default configuration is for React apps, but you can select from the following configurations
common
- ES6 and Typescript rulesreact
- React specific rules
For example:
module.exports = {
extends: ['@evanpurkhiser/eslint-config/common'],
};