0.5.0 • Published 4 years ago

@lunit/eslint-config v0.5.0

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

ESLint config

Basic Usage

Install dependencies.

npm install eslint @lunit/eslint-config eslint-config-prettier --save-dev

Add this config into package.json if the project is a React application.

{
  "eslintConfig": {
    "extends": [
      "@lunit",
      "prettier",
      "prettier/react",
      "prettier/@typescript-eslint"
    ]
  }
}

Or add this config into package.json if the project is not a React application. (like a Node.js application)

{
  "eslintConfig": {
    "extends": [
      "@lunit/eslint-config/without-react",
      "prettier",
      "prettier/@typescript-eslint"
    ]
  }
}