eslint-config-mainframe

4.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-mainframe

Weekly Downloads

37

Version

4.0.1

License

MIT

Unpacked Size

8.19 kB

Total Files

15

Last publish

Collaborators

  • aclarke
  • diogoperillo
  • howleysv
  • mosic
  • paul_lecam
  • sarahwiley