Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.72 KB

README.md

File metadata and controls

64 lines (46 loc) · 1.72 KB

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'
}