eslint-config-temoncher v2.1.5
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-temoncherVia yarn:
yarn add -D eslint eslint-config-temoncherAvailable configurations
JavaScript
Extension of eslint-config-airbnb-base.
Install peer dependencies of the
javascriptpackage:Using npm:
npm i -D eslint-plugin-importUsing yarn:
yarn add -D eslint-plugin-importAdd
"extends": "temoncher/javascript"to your.eslintrc{ "extends": [ "temoncher/javascript", ], };
TypeScript extends javascript
Install peer dependencies of the
javascriptpackageInstall typescript-eslint parser and plugin, along with peer dependencies of the
typescriptpackage:Using npm:
npm i -D eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parserUsing yarn:
yarn add -D eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parserConfigure 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
javascriptpackageInstall peer dependencies of the
reactpackage:Using npm:
npm i -D eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooksUsing yarn:
yarn add -D eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooksAdd
"extends": "temoncher/react"to your.eslintrc{ "extends": [ "temoncher/react", ], };
React-Typescript extends javascript, react, typescript
Install peer dependencies of the
javascriptpackageInstall peer dependencies of the
reactpackageInstall peer dependencies of the
typescriptpackageAdd
"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
javascriptpackageInstall peer dependencies of the
vuepackage:Using npm:
npm i -D eslint-plugin-vue @vue/eslint-config-airbnbUsing yarn:
yarn add -D eslint-plugin-vue @vue/eslint-config-airbnbAdd
"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
javascriptpackageInstall peer dependencies of the
vue-clipackageInstall latest versions of
@typescript-eslintpackages, to gain access to it's rulesUsing npm:
npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescriptUsing yarn:
yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescriptAdd
"extends": "temoncher/vue-cli-typescript"to your.eslintrc{ "extends": [ "temoncher/vue-cli-typescript", ], };