ESLint config for Mainframe projects
npm install eslint-config-mainframeShared ESLint configuration for Mainframe projects.
``sh`eslint and prettier must be installed as well if not already
yarn add --dev eslint prettier
yarn add --dev eslint-config-mainframe
In your project's .eslintrc.js file (or alternative configuration), add to the extends array:
`js`
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.
MIT.\
See LICENSE file.