@orcinuss/eslint-config-eslint
Eslint Configuration for Orcinuss's NPM packages for code consistency and structure.
Last updated a year ago by orcinuss .
MIT · Original npm · Tarball · package.json
$ cnpm install @orcinuss/eslint-config-eslint 
SYNC missed versions from official npm registry.

Orcinuss's Eslint Config

Eslint Configuration for Orcinuss's NPM packages for code consistency and structure.

Installation

  1. Add eslint and this package to your repository yarn add eslint @orcinuss/eslint-config-eslint -D.
  2. Create an .eslintrc.js file at the root of your project.
  3. Add this package to the extends section of your .eslintrc.js file as show in the example below.
  4. Add the executable script: "lint": "eslint --config ./.eslintrc.js --fix index.js lib/**/*.js" to your package.json scripts section.

Example Eslintrc

extends: [
    '@orcinuss/eslint',
]

Included Options

This config already has the following keys present, so you don't need to repeat them:

parserOptions: {
    ecmaVersion: 2018,
    ecmaFeatures: {
        experimentalObjectRestSpread: true,
    },
},

env: {
    es6: true,
    node: true,
},

Caveats

Here are some common rules in specific locations that you may need to add:

  1. Disable global requires for index.js and *.spec.js files: 'global-require': 'off'
  2. Disable invalid this when using class transform properties: 'no-invalid-this': 'off' and 'babel/no-invalid-this': 'off'

Current Tags

  • 1.0.1                                ...           latest (a year ago)

2 Versions

  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |