Skip to content

Commit 5c55229

Browse files
committed
chore: update dependencies and adjust ESLint rules
- Updated dependencies in package.json: - "@eslint/js" from "^9.14.0" to "^9.25.1" - "@types/eslint__js" from "^8.42.3" to "^9.14.0" - "eslint-config-prettier" from "^9.1.0" to "^10.1.2" - "eslint-plugin-sonarjs" from "^2.0.4" to "^3.0.2" - "typescript-eslint" from "^8.13.0" to "^8.31.1" - Modified ESLint rules in rules-snapshot.json: - Changed "no-unused-vars" from [2] to [0] - Added and adjusted various SonarJS and TypeScript ESLint rules, enabling or disabling them as necessary
1 parent 4df3268 commit 5c55229

File tree

5 files changed

+1766
-4725
lines changed

5 files changed

+1766
-4725
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
2-
3-
.npmrc
2+
.npmrc
3+
output.json

index.js

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,19 @@
1-
import js from "@eslint/js";
2-
import prettierConfig from "eslint-config-prettier";
3-
import * as typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
1+
import eslint from "@eslint/js";
2+
import eslintConfigPrettier from "eslint-config-prettier/flat";
3+
import tseslint from "typescript-eslint";
44
import sonarjs from "eslint-plugin-sonarjs";
55

6-
export default [
7-
js.configs.recommended,
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
89
sonarjs.configs.recommended,
9-
prettierConfig,
10+
eslintConfigPrettier,
1011
{
1112
files: ["**/*.{js,ts,jsx,tsx}"],
12-
languageOptions: {
13-
globals: {
14-
Atomics: "readonly",
15-
SharedArrayBuffer: "readonly",
16-
es6: true,
17-
node: true,
18-
},
19-
parser: typescriptEslintPlugin.parser,
20-
parserOptions: {
21-
ecmaVersion: 2018,
22-
sourceType: "module",
23-
},
24-
},
25-
plugins: {
26-
"@typescript-eslint": typescriptEslintPlugin,
27-
},
2813
rules: {
2914
"@typescript-eslint/no-use-before-define": "off",
3015
"@typescript-eslint/no-inferrable-types": "off",
16+
"no-unused-vars": "off",
3117
"@typescript-eslint/no-unused-vars": "error",
3218
"@typescript-eslint/interface-name-prefix": "off",
3319
"@typescript-eslint/consistent-type-assertions": [
@@ -43,5 +29,5 @@ export default [
4329
rules: {
4430
"@typescript-eslint/no-empty-function": "off",
4531
},
46-
},
47-
];
32+
}
33+
);

0 commit comments

Comments
 (0)