eslint-config-temoncher
v2.1.5
Published
Personal set of super-strict eslint rules for various environments
Downloads
17
Maintainers
Readme
eslint-config-temoncher
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
Install config and core peer dependencies
Via npm:
npm i -D eslint eslint-config-temoncher
Via yarn:
yarn add -D eslint eslint-config-temoncher
Available configurations
JavaScript
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", ], };
TypeScript extends javascript
Install peer dependencies of the
javascript
packageInstall 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", ], };
React extends javascript
Install peer dependencies of the
javascript
packageInstall 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", ], };
React-Typescript extends javascript
, react
, typescript
Install peer dependencies of the
javascript
packageInstall peer dependencies of the
react
packageInstall peer dependencies of the
typescript
packageAdd
"extends": "temoncher/react-typescript"
to your.eslintrc
{ "extends": [ "temoncher/react-typescript", ], };
Vue-cli extends javascript
⚠ 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
packageInstall 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", ], };
Vue-Typescript extends javascript
, vue-cli
, 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
packageInstall peer dependencies of the
vue-cli
packageInstall 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", ], };