@amaurym/eslintrc

1.3.6 • Public • Published

npm License code style: prettier dependencies Status Buy me a tree

@amaurym/eslintrc

💯 Mostly common-sense configuration files for eslint.

🚀 Get Started

Install the package

yarn add --dev @amaurym/eslintrc

In your project's root folder:

echo "module.exports = require('@amaurym/eslintrc');" > .eslintrc.js
echo "module.exports = require('@amaurym/eslintrc/prettierrc');" > .prettierrc.js

And 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 the typescript-eslint team. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @amaurym/eslintrc

Weekly Downloads

43

Version

1.3.6

License

MIT

Unpacked Size

14 kB

Total Files

6

Last publish

Collaborators

  • amaurym