Shared ESLint configuration for Mainframe projects.
# eslint and prettier must be installed as well if not already
yarn add --dev eslint prettier
yarn add --dev eslint-config-mainframeIn 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.
MIT.
See LICENSE file.