eslint-config-mainframe
v4.0.1
Published
ESLint config for Mainframe projects
Downloads
31
Keywords
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 (extendsmainframe/jest
).mainframe/electron
when using Electron.mainframe/flow
when using Flow.mainframe/react
when using React.mainframe/react-native
when using React Native (extendsmainframe/react
).mainframe/react-native-web
when using React Native for Web (extendsmainframe/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.