@prowise/eslint-config-linting-rules 1.2.10 → 1.2.12

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.
@@ -10,9 +10,12 @@
10
10
  "files": [
11
11
  "index.js"
12
12
  ],
13
- "peerDependencies": {
13
+ "dependencies": {
14
14
  "eslint-module-utils": ">=2",
15
15
  "eslint-plugin-import": ">=2",
16
16
  "json5": ">=1"
17
+ },
18
+ "peerDependencies": {
19
+ "eslint": ">=8"
17
20
  }
18
21
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@prowise/eslint-config-linting-rules","version":"1.2.10","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.12","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.10.0","@typescript-eslint/parser":"^7.10.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.6","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.2","eslint-plugin-solid":"^0.14.0","eslint-plugin-vitest":"^0.5.4","object.assign":"^4.1.5"},"overrides":{"semver":"^7.5.3"}}
package/typescript.js CHANGED
@@ -13,6 +13,11 @@ module.exports = {
13
13
 
14
14
  settings: {
15
15
  "import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
16
- "import/resolver": { typescript: {} }, // this loads <rootdir>/tsconfig.json to eslint
16
+ "import/resolver": {
17
+ typescript: {
18
+ alwaysTryTypes: true,
19
+ project: __dirname, // use tsconfig.json of the root folder (where esLint is running from)
20
+ },
21
+ },
17
22
  },
18
23
  };