@eigenspace/eslint-config-codestyle
v1.1.2
Published
Includes eslint shareable configs.
Downloads
12
Readme
Includes eslint shareable configs.
Installation
Create
.eslintrc.js
in project root or choose already existing.Add
@eigenspace/codestyle
as dev dependency.Then add this below (1):
"@eigenspace/eslint-config-codestyle": "file:node_modules/@eigenspace/codestyle/packages/eslint"
yarn install
Extends configurations on
.eslintrc
file:extends: [ '@eigenspace/codestyle/base', '@eigenspace/codestyle/react' ]
Note:
react
is optional. Use it only if your project usesReact
.In IDE settings turn on
eslint
and specifyeslint
path.
(1) We are forced to load it from codestyle project as subpackage because of satisfaction of requirement for naming shareable configs.
Project structure
base.js - Base configuration and rules for eslint
react.js - Configuration includes codestyle React rules
redux.js - Configuration includes codestyle Redux rules
Environmental requirements
react
:16.x
Why do we have that dependencies?
eslint-plugin-prettier
- plugin for linting styles.eslint-plugin-react
- React plugin for ESLint.eslint-plugin-react-redux
- Redux plugin for ESLint.