eslint-config-src

1.0.2 • Public • Published

eslint-config-src

NPM version Build Status

All centralized configurations for ESLint.

The configurations are organized around the following use cases from JavaScript at src :

Installation

# Using npm
npm install eslint-config-src --save-dev

Example

You have to add an .eslintrc.js file at the root of your project with the following content:

module.exports = {
    extends: 'src/usecase/nodejs'
}

If you want to use it in Jest tests replace the .eslintrc.js file content with :

module.exports = {
    extends: 'src/usecase/test-jest'
}

If you want to use it in Mocha tests replace .eslintrc.js file content with :

module.exports = {
    extends: 'src/usecase/test-mocha'
}

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-src

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

13.2 kB

Total Files

19

Last publish

Collaborators

  • segandiaye