4.0.1 • Published 6 years ago
eslint-config-mainframe v4.0.1
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-mainframeUsage
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/avawhen using AVA for tests.mainframe/jestwhen using Jest for tests.mainframe/jest-puppeteerwhen using Jest with jest-puppeteer for tests (extendsmainframe/jest).mainframe/electronwhen using Electron.mainframe/flowwhen using Flow.mainframe/reactwhen using React.mainframe/react-nativewhen using React Native (extendsmainframe/react).mainframe/react-native-webwhen using React Native for Web (extendsmainframe/react-native).mainframe/typescriptwhen using TypeScript.
The Prettier configuration can be imported from the eslint-config-mainframe/prettier.config module.
License
MIT.\ See LICENSE file.