eslint-config-opuscapita

2.0.10 • Public • Published

badge-npm-version NPM Downloads badge-license

OpusCapita ESLint config

Synopsis

This package provides OpusCapita's base .eslintrc as an extensible shared config.

Motivation

ESLint is a tool for guarantee a code style consistency across developers team. It helps to take a code more clear and readable. For example it detects an unused variables. Also with linting you automatically avoid common pit-falls

Usage

Our default export contains all of our ESLint rules, including ECMAScript 2015+ and React.

It requires:

  1. npm install --save-dev -E eslint-config-opuscapita eslint-plugin-react@7.5.1 babel-eslint@8.1.2 eslint@4.14.0
  2. add "extends": "opuscapita" to your .eslintrc

.eslintrc example:

{
  "extends": "opuscapita",
  "env": {
    "jasmine": true,
    "browser": true,
    "node": true,
    "es6": true
  }
}

Tips

Rules reference

Editor configuration

It unnecessary to run npm run eslint every time for error checking. Your editor able to highlight an errors on fly. Some users prefer this way.

How to enable ESLint in your editor

Automatically fixing can be applied to some rules

npm run lint -- --fix

Contributors

License

OpusCapita ESLint config is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-opuscapita

Weekly Downloads

41

Version

2.0.10

License

Apache-2.0

Unpacked Size

39.5 kB

Total Files

12

Last publish

Collaborators

  • alexeysergeev
  • amourzenkov-sc
  • dmitrydivin
  • dzhitomirsky
  • egor.stambakio
  • kirillvolkovich