Skip to content

Commit a4c9ccb

Browse files
committed
Merge branch 'qa'
2 parents a57cb12 + ef6a583 commit a4c9ccb

File tree

7 files changed

+915
-3177
lines changed

7 files changed

+915
-3177
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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Oncehub LTD
3+
Copyright (c) 2025 Oncehub LTD
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To generate a new rules snapshot file:
4949
$ npx eslint --print-config index.js -c index.js > output.json
5050
```
5151

52-
Copy the rules from the output file into `test/rules-snapshot.js`
52+
Copy the rules from the output file into `test/rules-snapshot.json`
5353

5454
### Deployment
5555

index.js

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,33 @@
11
import eslint from "@eslint/js";
2-
import react from "eslint-plugin-react";
3-
import jsxA11y from "eslint-plugin-jsx-a11y";
4-
import importPlugin from "eslint-plugin-import";
2+
import eslintConfigPrettier from "eslint-config-prettier/flat";
53
import tseslint from "typescript-eslint";
64
import sonarjs from "eslint-plugin-sonarjs";
7-
import prettierConfig from "eslint-config-prettier";
8-
import globals from "globals";
95

106
export default tseslint.config(
117
eslint.configs.recommended,
12-
...tseslint.configs.recommended,
13-
importPlugin.flatConfigs.recommended,
14-
react.configs.flat.recommended,
15-
react.configs.flat["jsx-runtime"],
16-
jsxA11y.flatConfigs.recommended,
8+
tseslint.configs.recommended,
179
sonarjs.configs.recommended,
18-
prettierConfig,
10+
eslintConfigPrettier,
1911
{
2012
files: ["**/*.{js,ts,jsx,tsx}"],
21-
languageOptions: {
22-
globals: {
23-
...globals.browser,
24-
...globals.node,
25-
Atomics: "readonly",
26-
SharedArrayBuffer: "readonly",
27-
},
28-
parserOptions: {
29-
ecmaVersion: 2018,
30-
sourceType: "module",
31-
},
32-
},
3313
rules: {
34-
// base rule needs to be disabled to prevent errors with the ts version
35-
// see https://typescript-eslint.io/rules/#extension-rules
14+
"@typescript-eslint/no-use-before-define": "off",
15+
"@typescript-eslint/no-inferrable-types": "off",
3616
"no-unused-vars": "off",
3717
"@typescript-eslint/no-unused-vars": "error",
38-
"@typescript-eslint/no-explicit-any": "off",
18+
"@typescript-eslint/interface-name-prefix": "off",
3919
"@typescript-eslint/consistent-type-assertions": [
4020
"error",
4121
{ assertionStyle: "angle-bracket" },
4222
],
43-
"import/no-unresolved": "off",
23+
"@typescript-eslint/no-explicit-any": "off",
24+
"@typescript-eslint/explicit-function-return-type": "off",
4425
},
4526
},
46-
// overriding rules specifically for test files
4727
{
4828
files: ["**/*(specs|tests)/**", "**/*.spec.ts"],
4929
rules: {
5030
"@typescript-eslint/no-empty-function": "off",
51-
"sonarjs/no-identical-functions": "off",
52-
"sonarjs/no-duplicate-string": "off",
5331
},
5432
}
5533
);

0 commit comments

Comments
 (0)