mj-studio-library / eslint-config

ESLint config for Node.js, React Native and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MJ Studio ESLint Config

ogimage-1260-630

This project is forked from @dooboo/eslint-config

Usage

These packages include internal eslint config/plugins with dependencies not peerDependencies.

So user can just declare their eslintrc.js like that.

extends: ['@mj-studio/eslint-config-(node|react|react-native)']

On the other hand, User should install eslint, prettier, typescript in their devDependencies.

Feature

  • TypeScript
  • Prettier
  • Import Sort/Assertion
  • React(only in react/react-native)
  • Useful Rules

Node.js

Npm Version

React

depends on Node config

Npm Version

React Native

depends on React config

Npm Version

Recommendation

.prettierrc.json

{
  "trailingComma": "all",
  "arrowParens": "always",
  "singleQuote": true,
  "jsxSingleQuote": false,
  "printWidth": 100,
  "quoteProps": "consistent",
  "tabWidth": 2
}

About

ESLint config for Node.js, React Native and React


Languages

Language:JavaScript 100.0%