eslint-config-huray

1.0.10 • Public • Published

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"
}

Package Sidebar

Install

npm i eslint-config-huray

Weekly Downloads

6

Version

1.0.10

License

MIT

Unpacked Size

5.66 kB

Total Files

6

Last publish

Collaborators

  • yoonyounghoon
  • jina04