Skip to content

tapie-kr/code-guideline

Repository files navigation

TAPIE Code Style Standards


Installation

npm

npm install --save-dev @tapie-kr/code-guideline

yarn

yarn add --dev @tapie-kr/code-guideline

pnpm

pnpm add -D @tapie-kr/code-guideline

How to use

  1. Create or update your eslint.config.mjs file to extend the TAPIE code style configuration:
import eslintConfig from '@tapie-kr/code-guideline/eslint';

export default eslintConfig;
  1. Create or update your prettier.config.mjs or .prettierrc.mjs file to extend the TAPIE Prettier configuration:
import prettierConfig from '@tapie-kr/code-guideline/prettier';

export default prettierConfig;
  1. Ensure your package.json includes the necessary scripts to run ESLint and Prettier:
{
  "scripts": {
    "format": "npm run lint && npm run prettier",
    "prettier": "prettier --write . --log-level warn",
    "lint": "eslint . --fix",
    "lint:dry": "eslint . --fix-dry-run"
  }
}

License

MIT

About

TAPIE Code Style Standards

Resources

License

Stars

Watchers

Forks