@sullenor/eslint-config

2.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @sullenor/eslint-config

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

6.46 kB

Total Files

4

Last publish

Collaborators

  • sullenor