1.0.10 • Published 1 year ago

eslint-config-huray v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eslint-config-huray

npm version

ESLint configurations based on huray style guide

Installation

yarn add --dev eslint-config-huray

Usage

.eslintrc.js

Javascript

module.exports = {
  extends: [
    'huray'
    'huray/prettier'
  ]
}

Javascript + React

module.exports = {
  extends: [
    'huray',
    'huray/react',
    'huray/prettier'
  ],
}

Typescript + React

module.exports = {
  extends: [
    'huray',
    'huray/typescript',
    'huray/react',
    'huray/prettier'
  ]
}

tsconfig.json

"include": [
    ".eslintrc.js",
    "src"
  ]

프로젝트에 .prettierrc 파일 추가해주세요

{
  "singleQuote": true,
  "semi": true,
  "useTabs": false,
  "tabWidth": 2,
  "trailingComma": "all",
  "printWidth": 80,
  "arrowParens": "always"
}