@monymony/eslint-config
v0.6.2
Published
ESLint configuration for Monymony projects with TypeScript, React, and React Native support
Readme
Monymony ESLint Config
ESLint configuration for Monymony projects.
Features
- Common ESLint configuration
- Backend-specific configuration
- React-specific configuration
- React Native-specific configuration
- TypeScript support
- Prettier integration
Installation
npm install @monymony/eslint-configUsage
Common Configuration
// .eslintrc.js
module.exports = {
extends: ['@monymony/eslint-config/common']
};Backend Configuration
// .eslintrc.js
module.exports = {
extends: ['@monymony/eslint-config/backend']
};React Configuration
// .eslintrc.js
module.exports = {
extends: ['@monymony/eslint-config/react']
};React Native Configuration
// .eslintrc.js
module.exports = {
extends: ['@monymony/eslint-config/react-native']
};Version
Current version: 0.5.6
License
ISC
Install
Remove your prettier config or set as Prettier config.
Install this package.
yarn add -D @monymony/eslint-configSet your eslint config.
"extends": [
...,
"@monymony/eslint-config", // should be set.
"@monymony/eslint-config/backend" // optional for environment.
]Examples.
React
"extends": [
"react-app",
"react-app/jest",
"@monymony/eslint-config",
"@monymony/eslint-config/react"
]Backend
"extends": [
...,
"@monymony/eslint-config",
"@monymony/eslint-config/backend"
]React Native
"extends": [
"react-app",
"react-app/jest",
"@monymony/eslint-config",
"@monymony/eslint-config/react-native"
]Local Test
- Plugin root:
yarn link - In the example project:
yarn link @monymony/eslint-config - Run
yarn lint
Publish
- Bump version PR will be created when we push to
releasebranch. - Tagging and publishing to npm will be triggered by pushing
mainbranch.
Refer
Multiple configs: https://github.com/AlloyTeam/eslint-config-alloy
