Skip to content

Commit bfcc1c7

Browse files
committed
feat: add ESLint configuration and update Prettier settings for improved code quality
1 parent 4a5bb2e commit bfcc1c7

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

‎eslint.config.mjs‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommended,
7+
{
8+
ignores: ["dist/**", "node_modules/**", "bin/**"],
9+
},
10+
{
11+
files: ["src/**/*.ts", "tests/**/*.ts"],
12+
rules: {
13+
"no-var": "error",
14+
"prefer-const": "error",
15+
eqeqeq: "error",
16+
"no-eval": "error",
17+
"@typescript-eslint/no-require-imports": "off",
18+
"@typescript-eslint/no-explicit-any": "off",
19+
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
20+
},
21+
}
22+
);

‎prettier.config.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright (c) Microsoft Corporation.
2-
// Licensed under the MIT License.
3-
1+
/** @type {import("prettier").Config} */
42
module.exports = {
53
printWidth: 135,
64
endOfLine: "auto",
5+
semi: true,
6+
singleQuote: false,
7+
trailingComma: "es5",
78
};

0 commit comments

Comments
 (0)