Skip to content

Features/setup ci - #3

Merged
Arrat3 merged 2 commits into
mainfrom
features/setup-ci
Mar 7, 2026
Merged

Arrat3 merged 2 commits into
mainfrom
features/setup-ci

Conversation

@Arrat3

@Arrat3 Arrat3 commented Mar 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

@Arrat3
Arrat3 requested a review from MahmoudH96 March 6, 2026 22:06
Comment thread src/index.ts

for (let char of input) {
let isAllowedChar: boolean =
for (const char of input) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one

Comment thread eslint.config.mjs
import { defineConfig } from "eslint/config";

export default defineConfig([
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why did you extends "js/recomended" while using tseslint.configs.recommended ?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I included "js/recomended" to provide the base linting rules for JS.
Since "tselint.configs.recomended" is designed to work alongside those base rules.

should i be satisfied with "tselint.configs.recomended" ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess for the future you can use the following code from their docs:

export default defineConfig(
.......
  eslint.configs.recommended,
  tseslint.configs.recommended,
);

instead of extends: ["js/recommened"]
Which is cleaner
but not sure if it's going to work or you need to update other parts as well

@Arrat3
Arrat3 merged commit b13c56a into main Mar 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants