@prowise/eslint-config-linting-rules 1.2.8 → 1.2.9

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.
@@ -3,6 +3,7 @@ const { default: moduleVisitor } = require("eslint-module-utils/moduleVisitor");
3
3
  const { default: resolve } = require("eslint-module-utils/resolve");
4
4
  const { isBuiltIn } = require("eslint-plugin-import/lib/core/importType");
5
5
  const fs = require("fs");
6
+ const JSON5 = require("json5");
6
7
  const path = require("path");
7
8
 
8
9
  /**
@@ -38,7 +39,8 @@ function getRootCwd(context) {
38
39
  ) {
39
40
  return cwd;
40
41
  }
41
- const data = JSON.parse(fs.readFileSync(context.parserOptions.project));
42
+
43
+ const data = JSON5.parse(fs.readFileSync(context.parserOptions.project));
42
44
  if (!data?.compilerOptions?.baseUrl) {
43
45
  return cwd;
44
46
  }
@@ -9,9 +9,9 @@
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
11
  "eslint-module-utils": "^2.8.1",
12
- "eslint-plugin-import": "^2.29.1"
13
- },
14
- "devDependencies": {}
12
+ "eslint-plugin-import": "^2.29.1",
13
+ "json5": "^2.2.3"
14
+ }
15
15
  },
16
16
  "node_modules/@aashutoshrathi/word-wrap": {
17
17
  "version": "1.2.6",
@@ -1599,14 +1599,14 @@
1599
1599
  "peer": true
1600
1600
  },
1601
1601
  "node_modules/json5": {
1602
- "version": "1.0.2",
1603
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
1604
- "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
1605
- "dependencies": {
1606
- "minimist": "^1.2.0"
1607
- },
1602
+ "version": "2.2.3",
1603
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
1604
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
1608
1605
  "bin": {
1609
1606
  "json5": "lib/cli.js"
1607
+ },
1608
+ "engines": {
1609
+ "node": ">=6"
1610
1610
  }
1611
1611
  },
1612
1612
  "node_modules/keyv": {
@@ -2224,6 +2224,17 @@
2224
2224
  "strip-bom": "^3.0.0"
2225
2225
  }
2226
2226
  },
2227
+ "node_modules/tsconfig-paths/node_modules/json5": {
2228
+ "version": "1.0.2",
2229
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
2230
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
2231
+ "dependencies": {
2232
+ "minimist": "^1.2.0"
2233
+ },
2234
+ "bin": {
2235
+ "json5": "lib/cli.js"
2236
+ }
2237
+ },
2227
2238
  "node_modules/type-check": {
2228
2239
  "version": "0.4.0",
2229
2240
  "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-esm-extensions",
3
3
  "version": "1.0.0",
4
- "scripts": {
5
- },
4
+ "scripts": {},
6
5
  "main": "./index.js",
7
6
  "type": "commonjs",
8
7
  "exports": {
@@ -13,8 +12,7 @@
13
12
  ],
14
13
  "dependencies": {
15
14
  "eslint-module-utils": "^2.8.1",
16
- "eslint-plugin-import": "^2.29.1"
17
- },
18
- "devDependencies": {
15
+ "eslint-plugin-import": "^2.29.1",
16
+ "json5": "^2.2.3"
19
17
  }
20
18
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@prowise/eslint-config-linting-rules","version":"1.2.8","description":"Default Prowise linting rules for npm packages.","main":"index.js","exports":{"./default":"./index.js","./typescript":"./typescript.js","./backend":"./backend.js","./frontend-vite":"./frontend-vite.js","./frontend":"./frontend.js","./solid":"./solid.js"},"scripts":{"lint":"eslint **/*.js"},"repository":{"type":"git","url":"git+ssh://git@bitbucket.org/prowise/npm-linting-rules.git"},"author":"Prowise B.V.","license":"UNLICENSED","homepage":"https://bitbucket.org/prowise/npm-linting-rules#readme","dependencies":{"@typescript-eslint/eslint-plugin":"^7.7.0","@typescript-eslint/parser":"^7.7.0","confusing-browser-globals":"^1.0.11","eslint":"^8.57.0","eslint-import-resolver-typescript":"^3.6.1","eslint-plugin-esm-extensions":"file:./eslint-plugin-esm-extensions","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^27.9.0","eslint-plugin-jsdoc":"^48.2.3","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-react":"^7.34.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-solid":"^0.13.2","eslint-plugin-vitest":"^0.5.3","object.assign":"^4.1.5"},"overrides":{"semver":"^7.5.3"}}
1
+ {"name":"@prowise/eslint-config-linting-rules","version":"1.2.9","description":"Default Prowise linting rules for npm packages.","main":"index.js","exports":{"./default":"./index.js","./typescript":"./typescript.js","./backend":"./backend.js","./frontend-vite":"./frontend-vite.js","./frontend":"./frontend.js","./solid":"./solid.js"},"scripts":{"lint":"eslint **/*.js"},"repository":{"type":"git","url":"git+ssh://git@bitbucket.org/prowise/npm-linting-rules.git"},"author":"Prowise B.V.","license":"UNLICENSED","homepage":"https://bitbucket.org/prowise/npm-linting-rules#readme","dependencies":{"@typescript-eslint/eslint-plugin":"^7.7.0","@typescript-eslint/parser":"^7.7.0","confusing-browser-globals":"^1.0.11","eslint":"^8.57.0","eslint-import-resolver-typescript":"^3.6.1","eslint-plugin-esm-extensions":"file:./eslint-plugin-esm-extensions","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^27.9.0","eslint-plugin-jsdoc":"^48.2.3","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-react":"^7.34.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-solid":"^0.13.2","eslint-plugin-vitest":"^0.5.3","object.assign":"^4.1.5"},"overrides":{"semver":"^7.5.3"}}