Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-nikita-react

nikita-kit50CC0-1.05.0.0

ESLint config following the nikita JavaScript coding guidelines

nikita, js, eslint, eslintconfig, config, react, jsx, javascript, guidelines, styleguide

readme

eslint-config-nikita-react

This package provides nikitas .eslintrc as an extensible shared config.

Our default export contains all of our ESLint rules, including React. It requires eslint, eslint-plugin-import, eslint-plugin-promise, eslint-plugin-react, eslint-plugin-react-hooks and eslint-plugin-jsx-a11y.

Usage

  1. Just install the correct versions of each package, which are listed by the command:
npm info "eslint-config-nikita-react@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev eslint-config-nikita-react
  1. Add "extends": "nikita" to your .eslintrc or reference index.js as config in your Grunt eslint task.

Version

The version of this package equals the nikita-js version.

more

You can make sure this module lints with itself using npm run lint.

See Nikita JavaScript Styleguide React for more information.

changelog

5.0.0 (2020/09/26)

  • dropped node 8 support
  • updated all dependencies

4.1.1 (2020/04/12)

  • relaxed rule object-curly-newline

4.1.0 (2019/12/13)

  • moved static member declaration to class definition
  • added static variables to config of rule react/sort-comp
  • updated all dependencies

4.0.1 (2019/09/19)

  • set severity for rule import/order from warn to error because of autofixing

4.0.0 (2019/09/16)

  • dropped node 6 support
  • updated all dependencies
  • updated style guides and eslint rules according to airbnb
  • relaxed rules array-bracket-newline and array-element-newline
  • enabled warnings for rule react/sort-comp

3.1.0 (2019/04/30)

  • disabled rule react/jsx-one-expression-per-line
  • relaxed rule object-curly-newline
  • updated all dependencies

3.0.0 (2019/02/06)

  • added react style guide
  • added eslint-config-nikita-react package
  • packages now depend on node.js >= 6
  • updated style guide and eslint rules according to airbnb
  • updated eslint to 5.10.0
  • updated eslint-plugin-import to 2.14.0
  • updated eslint-plugin-promise to 4.0.1
  • relaxed rules prefer-const, no-plusplus and class-methods-use-this
  • relaxed react rules react/prop-types, react/jsx-filename-extension, react/prefer-stateless-function, react/forbid-prop-types, react/no-array-index-key, react/sort-comp and react/destructuring-assignment

2.0.0 (2017/10/02)

  • updated eslint to 4.3.0
  • updated eslint-plugin-import to 2.7.0
  • removed rules padded-blocks and import/no-unresolved
  • relax rules no-unused-vars, import/prefer-default-export, import/extensions and import/first
  • added rules template-tag-spacing, switch-colon-spacing, semi-style, array-bracket-newline and for-direction

1.0.0 (2017/04/01)

  • replaced content by airbnb style guide with modifications
  • added eslint-config-nikita package

0.0.1 (2014/10/20)

  • added info why we use that and why we don't use .bind(this)
  • added info about modular js
  • added info about prototypes and functions
  • added basic structure