UNPKG

@code-guideline/eslint

Version:
83 lines (56 loc) โ€ข 1.55 kB
## ๐Ÿš€ Installation ```bash # NPM npm install --save-dev @code-guideline/eslint # Yarn yarn add -D @code-guideline/eslint # PNPM pnpm add -D @code-guideline/eslint # Bun bun add -D @code-guideline/eslint ``` (Ensure you have Node.js installed.) ## ๐Ÿ“– Usage eslint.config.mjs ```js import eslintCodeGuideline from '@code-guideline/eslint'; export default eslintCodeGuideline(); ``` ### If you want to extend the configuration ```js import eslintCodeGuideline from '@code-guideline/eslint'; const extendConfigs = ['react']; export default eslintCodeGuideline(extendConfigs); ``` ### Available Extends - react (Published) - nest (Published) --- ### ๐Ÿ™ NestJS ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ•˜๊ธฐ #### 1. NestJS ๊ด€๋ จ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ ```bash pnpm add -D @darraghor/eslint-plugin-nestjs-typed ``` #### 2. eslint.config.mjs ์˜ˆ์‹œ ```js import eslintCodeGuideline from '@code-guideline/eslint'; export default eslintCodeGuideline(['nest']); ``` - NestJS ์ „์šฉ ๊ทœ์น™๊ณผ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ, import, ์Šคํƒ€์ผ ๊ทœ์น™์ด ํ•จ๊ป˜ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. - @darraghor/eslint-plugin-nestjs-typed์˜ flatRecommended preset์ด ์ž๋™ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. #### 3. tsconfig.json ์„ค์ • ๊ถŒ์žฅ ```json { "compilerOptions": { "experimentalDecorators": true, "emitDecoratorMetadata": true } } ``` ## ๐Ÿ›  Requirements - Node.js >= 16 - Internet access to install dependencies ## ๐Ÿค Contributing Contributions are welcome! Feel free to open an issue or submit a pull request. ## ๐Ÿ“„ License This project is licensed under the MIT License.