This package provides Recodive's .eslintrc as an extensible shared config.
npm install --save-dev eslint @rushstack/eslint-patch @recodive/eslint-config
We use @rushstack/eslint-patch to patch ESLint's module resolution so that we don't have to install all of the plugins.
This package provides multiple configs for different projects. As of now, there are configs for:
- JavaScript/TypeScript projects (default)
- JavaScript/TypeScript projects with strict type checking (
@recodive/eslint-config/strict
) - Vue projects (
@recodive/eslint-config/vue
) - Vue projects strict (
@recodive/eslint-config/vue-strict
)
Create a .eslintrc file in the root of your project with the following contents:
//* Patches eslint's module resolution
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: "@recodive/eslint-config",
};