1.3.6 ⢠Published 4 years ago
@amaurym/eslintrc v1.3.6
@amaurym/eslintrc
šÆ Mostly common-sense configuration files for eslint.
š Get Started
Install the package
yarn add --dev @amaurym/eslintrcIn your project's root folder:
echo "module.exports = require('@amaurym/eslintrc');" > .eslintrc.js
echo "module.exports = require('@amaurym/eslintrc/prettierrc');" > .prettierrc.jsAnd now you should be able to lint your project.
š Included Rules
The set of rules I use is the following:
@typescript-eslint/recommended: Recommended rules by thetypescript-eslintteam. See all rules.prettier: Opiniated code formatter. See their homepage for more info https://prettier.io/.react/recommended: Recommended rules for React, harmless if you don't use React.
I believe that Prettier is not enough, because it's only a code formatter, and doesn't check for code quality rules. This is the reason I chose to add @typescript-eslint/recommended on top of Prettier.