@oncehub/eslint-config 3.0.3 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +9 -6
package/index.js CHANGED
@@ -1,4 +1,7 @@
1
1
  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
5
  import tseslint from "typescript-eslint";
3
6
  import sonarjs from "eslint-plugin-sonarjs";
4
7
  import prettierConfig from "eslint-config-prettier";
@@ -7,6 +10,10 @@ import globals from "globals";
7
10
  export default tseslint.config(
8
11
  eslint.configs.recommended,
9
12
  ...tseslint.configs.recommended,
13
+ importPlugin.flatConfigs.recommended,
14
+ react.configs.flat.recommended,
15
+ react.configs.flat["jsx-runtime"],
16
+ jsxA11y.flatConfigs.recommended,
10
17
  sonarjs.configs.recommended,
11
18
  prettierConfig,
12
19
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oncehub/eslint-config",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "ESLint configuration for micro-services built using Node.js and TypeScript",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,11 +13,14 @@
13
13
  "author": "Rajat Saxena <rajat.saxena@oncehub.com>",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@eslint/js": "^9.14.0",
17
- "eslint-config-prettier": "^9.1.0",
18
- "eslint-plugin-sonarjs": "^2.0.4",
19
- "globals": "^15.12.0",
20
- "typescript-eslint": "^8.13.0"
16
+ "@eslint/js": "9.16.0",
17
+ "eslint-config-prettier": "9.1.0",
18
+ "eslint-plugin-import": "2.31.0",
19
+ "eslint-plugin-jsx-a11y": "6.10.2",
20
+ "eslint-plugin-react": "7.37.2",
21
+ "eslint-plugin-sonarjs": "3.0.1",
22
+ "globals": "15.13.0",
23
+ "typescript-eslint": "8.18.0"
21
24
  },
22
25
  "peerDependencies": {
23
26
  "eslint": ">= 9"