eslint-config-linkcs-react

0.3.1 • Public • Published

LinkCS's react eslint config

How to Use

Install

With yarn:

yarn add -D eslint-config-linkcs-react

or with npm:

npm install --save-dev eslint-config-linkcs-react

And then add in a .eslintrc file:

{
  "extends": ["linkcs-react"]
}

Dependencies

imports:
  - eslint: 5.6.0
  - eslint-config-airbnb: 17.1.0
  - eslint-plugin-import: 2.14.0
  - eslint-plugin-jsx-a11y: 6.1.1
  - eslint-plugin-react: 7.11.1

Rules

Use airbnb's config and changes some rules:

  • Disable PropTypes
  • Disable/change some rules about a11y
  • Change some rules regarding the formating of the code that works better with prettier and long lines
  • Change order of the methods in the definition of a react component:
order:
  - static methods
  - lifecycle methods
  - on<Keyword> attributes
  - handle<Keyword> attributes
  - everything-else
  - _<Keyword> attributes
  - render()

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-linkcs-react

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

4.54 kB

Total Files

7

Last publish

Collaborators

  • ayc0
  • ogdentrod