eslint-config-mainframe

ESLint config for Mainframe projects

Usage no npm install needed!

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

README

eslint-config-mainframe

Shared ESLint configuration for Mainframe projects.

Installation

# eslint and prettier must be installed as well if not already
yarn add --dev eslint prettier
yarn add --dev eslint-config-mainframe

Usage

In your project's .eslintrc.js file (or alternative configuration), add to the extends array:

module.exports = {
  extends: ['mainframe'],
}

Additional configurations are also available:

  • mainframe/ava when using AVA for tests.
  • mainframe/jest when using Jest for tests.
  • mainframe/jest-puppeteer when using Jest with jest-puppeteer for tests (extends mainframe/jest).
  • mainframe/electron when using Electron.
  • mainframe/flow when using Flow.
  • mainframe/react when using React.
  • mainframe/react-native when using React Native (extends mainframe/react).
  • mainframe/react-native-web when using React Native for Web (extends mainframe/react-native).
  • mainframe/typescript when using TypeScript.

The Prettier configuration can be imported from the eslint-config-mainframe/prettier.config module.

License

MIT.
See LICENSE file.