fronttigger / eslint-config-fronttigger

fronttigger의 커스텀 린트입니다.

Home Page:https://www.npmjs.com/package/eslint-config-fronttigger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-fronttigger

installation

$ npm i --save-dev eslint-config-fronttigger

usage

javascript or typescript

// .eslintrc or .eslintrc.json

{
    "root": true,
    "extends": ["eslint-config-fronttigger"],
}

react

// .eslintrc or .eslintrc.json

{
    "root": true,
    "extends": ["eslint-config-fronttigger/react"],
}

package.json에 다음 스크립트를 추가해주세요.

{
  "lint": "eslint './**/*.{js,ts,tsx}'",
  "lint:fix": "npm run lint -- --fix"
}

prettier

"eslint-config-fronttigger/prettierrc"

package.json에 다음 스크립트를 추가해주세요.

{
  "prettier": "prettier '**/*.{json,yaml,md}' --check",
  "prettier:fix": "prettier '**/*.{json,yaml,md}' --write"
}

stylelint

// .stylelintrc or .stylelintrc.json

{
    "root": true,
    "extends": ["eslint-config-fronttigger/stylelint"],
}

package.json에 다음 스크립트를 추가해주세요.

{
  "lint:style": "stylelint './**/*.{js,ts,tsx}'",
  "lint:style:fix": "stylelint './**/*.{js,ts,tsx}' --fix"
}

About

fronttigger의 커스텀 린트입니다.

https://www.npmjs.com/package/eslint-config-fronttigger


Languages

Language:JavaScript 96.8%Language:Shell 1.7%Language:TypeScript 1.5%