Detalhes do pacote

@sullenor/eslint-config

sullenor5MIT2.0.0

the eslint preset of mine

eslint, eslintconfig

readme (leia-me)

eslint-config

The set of configuration files for ESLint.

Installation

yarn add @sullenor/eslint-config --dev

Usage

Create the .eslintrc.js file with the following content:

'use strict';

module.exports = {
  extends: '@sullenor/eslint-config',
};

or add eslintConfig field to the package.json:

{
  "name": "<your project>",
  "eslintConfig": {
    "extends": "@sullenor/eslint-config"
  }
}

In case you use es6 imports, add the following parser options:

{
  "parserOptions": {
    "sourceType": "module"
  }
}

so it will be:

'use strict';

module.exports = {
  parserOptions: {
    sourceType: 'module',
  },

  extends: '@sullenor/eslint-config',
};

License

The MIT License