Personal set of super-strict eslint rules for various environments. The package is made so strict on purpose, to allow excluding unnecessary rules rather than adding new ones intentionally.
For even more strict rules visit Unicorn
Via npm:
npm i -D eslint eslint-config-temoncher
Via yarn:
yarn add -D eslint eslint-config-temoncher
Extension of eslint-config-airbnb-base.
-
Install peer dependencies of the
javascript
package:Using npm:
npm i -D eslint-plugin-import
Using yarn:
yarn add -D eslint-plugin-import
-
Add
"extends": "temoncher/javascript"
to your.eslintrc
{ "extends": [ "temoncher/javascript", ], };
-
Install peer dependencies of the
javascript
package -
Install typescript-eslint parser and plugin, along with peer dependencies of the
typescript
package:Using npm:
npm i -D eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser
Using yarn:
yarn add -D eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser
-
Configure typescript parser and add
"extends": "temoncher/typescript"
to your.eslintrc
:{ parserOptions: { parser: '@typescript-eslint/parser', project: ['./tsconfig.json'], }, "extends": [ "temoncher/typescript", ], };
-
Install peer dependencies of the
javascript
package -
Install peer dependencies of the
react
package:Using npm:
npm i -D eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
Using yarn:
yarn add -D eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
-
Add
"extends": "temoncher/react"
to your.eslintrc
{ "extends": [ "temoncher/react", ], };
-
Install peer dependencies of the
javascript
package -
Install peer dependencies of the
react
package -
Install peer dependencies of the
typescript
package -
Add
"extends": "temoncher/react-typescript"
to your.eslintrc
{ "extends": [ "temoncher/react-typescript", ], };
⚠ WARNING: For Vue CLI projects only. This package expects you to have Vue CLI project with installed @vue/cli-plugin-eslint.
-
Install peer dependencies of the
javascript
package -
Install peer dependencies of the
vue
package:Using npm:
npm i -D eslint-plugin-vue @vue/eslint-config-airbnb
Using yarn:
yarn add -D eslint-plugin-vue @vue/eslint-config-airbnb
-
Add
"extends": "temoncher/vue-cli"
to your.eslintrc
{ "extends": [ "temoncher/vue-cli", ], };
⚠ WARNING: For Vue CLI projects only. This package expects you to have Vue CLI project with installed @vue/cli-plugin-eslint.
-
Install peer dependencies of the
javascript
package -
Install peer dependencies of the
vue-cli
package -
Install latest versions of
@typescript-eslint
packages, to gain access to it's rulesUsing npm:
npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescript
Using yarn:
yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescript
-
Add
"extends": "temoncher/vue-cli-typescript"
to your.eslintrc
{ "extends": [ "temoncher/vue-cli-typescript", ], };