@napopravku/eslint-config-napopravku

0.0.6 • Public • Published

eslint-config

Installation

$ npm install --save-dev @napopravku/eslint-config-napopravku

Usage

Once the eslint-config-napopravku package is installed, you can use it by specifying napopravku in the extends section of your ESLint configuration.

For validating ECMAScript 5 project use es5 version:

{
  "extends": "@napopravku/eslint-config-napopravku/es5.js",
  "rules": {
    // Additional rules...
  }
}

For validating ECMAScript 2015 (ES6) project use es6 version:

{
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module"
  },
  "env": {
    "es6": true
  },
  "extends": "@napopravku/eslint-config-napopravku/es6.js",
  "rules": {
    // Additional rules...
  }
}

For validating ECMAScript 2015 (ES6) in Node.js environment project use es6 version:

{
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module"
  },
  "env": {
    "es6": true,
    "browser": false,
    "node": true
  },
  "extends": "@napopravku/eslint-config-napopravku/node.js",
  "rules": {
    // Additional rules...
  }
}

Package Sidebar

Install

npm i @napopravku/eslint-config-napopravku

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

9.45 kB

Total Files

6

Last publish

Collaborators

  • kartearis-np
  • datsvetkov
  • np-root
  • deil92
  • anosovm
  • nemphis
  • matdia