eslint-config-src

All centralized configurations for ESLint

Usage no npm install needed!

<script type="module">
  import eslintConfigSrc from 'https://cdn.skypack.dev/eslint-config-src';
</script>

README

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