Skip to content

segandiaye/eslint-config-src

Repository files navigation

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