From d75f03c500e60c5cdbfc88e8cc93b0da41935d34 Mon Sep 17 00:00:00 2001 From: a-rudak-EIS Date: Fri, 15 Aug 2025 16:55:35 +0500 Subject: [PATCH 1/2] docs: update async-race lint rules --- epam/async-race.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/epam/async-race.md b/epam/async-race.md index 4ddd3c31d..da7cb97bc 100644 --- a/epam/async-race.md +++ b/epam/async-race.md @@ -90,7 +90,7 @@ What are you waiting for? Let's start coding! - **TypeScript Mandatory**: Strong typing enforced throughout. TypeScript `strict` mode must be enabled, and the `noImplicitAny` flag set to `true` to ensure no implicit `any` types are used. - **Modular Architecture**: Clear separation of concerns between API interaction, UI rendering, and state management. - **SPA Implementation**: All content must be generated using TypeScript with strict type checking. -- **Code Quality**: Adherence to Airbnb's ESLint configuration, with functions limited to 40 lines and avoidance of magic numbers/strings. The `tsconfig.json` must be configured to enforce strict typing principles. +- **Code Quality**: Adherence to ESLint configuration based on recommended rules for TypeScript and React (`eslint:recommended`, `plugin:@typescript-eslint/recommended`, `plugin:react/recommended`, `plugin:react-hooks/recommended`). Avoid magic numbers and magic strings. The `tsconfig.json` must be configured to enforce strict typing principles (`strict: true`, `noImplicitAny: true`). - **UI Design**: The design is completely up to you. In this project, we care about the quality of the code and the fulfillment of other functional and non-functional requirements. - These criteria emphasize the importance of clean code, proper architecture, and adherence to modern development practices. Intreviewers will use these guidelines to assess the technical execution and overall quality of the project. @@ -186,7 +186,15 @@ Also, please deploy the UI to GitHub Pages, Netlify, Vercel, Cloudflare Pages, o ## 🎨 Prettier and ESLint Configuration (10 points) - [ ] **Prettier Setup (5 points):** Prettier is correctly set up with two scripts in `package.json`: `format` for auto-formatting and `ci:format` for checking issues. -- [ ] **ESLint Configuration (5 points):** ESLint is configured with the [Airbnb style guide](https://www.npmjs.com/package/eslint-config-airbnb). A `lint` script in `package.json` runs ESLint checks. Configuration files should reflect strict TypeScript settings as per `tsconfig.json`. +- [ ] **ESLint Configuration (5 points):** ESLint is configured using the recommended rulesets: + - `eslint:recommended` + - `plugin:@typescript-eslint/recommended` + - `plugin:react/recommended` + - `plugin:react-hooks/recommended` + Configuration must reflect strict TypeScript settings as per `tsconfig.json` (with `strict` and `noImplicitAny` enabled). + A `lint` script in `package.json` must run ESLint checks for `.ts` and `.tsx` files. + + ## 🌟 Overall Code Quality. (100 points) _Skip during self-check_ From 33a29a6c6240f20e4c4d9c6235f2a61f4661f9ff Mon Sep 17 00:00:00 2001 From: a-rudak-EIS Date: Fri, 15 Aug 2025 17:11:17 +0500 Subject: [PATCH 2/2] docs: format changes --- epam/async-race.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/epam/async-race.md b/epam/async-race.md index da7cb97bc..ee9595455 100644 --- a/epam/async-race.md +++ b/epam/async-race.md @@ -191,10 +191,8 @@ Also, please deploy the UI to GitHub Pages, Netlify, Vercel, Cloudflare Pages, o - `plugin:@typescript-eslint/recommended` - `plugin:react/recommended` - `plugin:react-hooks/recommended` - Configuration must reflect strict TypeScript settings as per `tsconfig.json` (with `strict` and `noImplicitAny` enabled). - A `lint` script in `package.json` must run ESLint checks for `.ts` and `.tsx` files. - - + Configuration must reflect strict TypeScript settings as per `tsconfig.json` (with `strict` and `noImplicitAny` enabled). + A `lint` script in `package.json` must run ESLint checks for `.ts` and `.tsx` files. ## 🌟 Overall Code Quality. (100 points) _Skip during self-check_