@prowise/eslint-config-linting-rules 1.2.12 → 2.0.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/README.md +13 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,11 +7,11 @@ Rules are based on:
7
7
  * The recommended rules of Eslint and the different plugins
8
8
  * Prowise Style Guide
9
9
 
10
- ### What is this repository for?
10
+ ## What is this repository for?
11
11
 
12
12
  * Easy setup to all linting rules on a code repository
13
13
 
14
- ### How to use
14
+ ## How to use
15
15
 
16
16
  * Install this package with `npm install @prowise/eslint-config-linting-rules -D`
17
17
  * Depending on the type of project, add the following line to your `eslintrc` file:
@@ -31,4 +31,14 @@ module.exports = {
31
31
  },
32
32
  };
33
33
 
34
- ```
34
+ ```
35
+ ## Know issues
36
+
37
+ #### ESM extension rules
38
+ The `esm-extensions/force-extensions` rule might not work correctly when you use the `path` option in `tsconfig.json`. This has to do with the fact that the rule determines external packages by looking at the `node_modules` folder which cannot be found.
39
+
40
+ It is best NOT to use paths redirects.
41
+
42
+ #### Installing a new version
43
+ When trying to update the installed lining version by `npm i -D "@prowise/eslint-config-linting-rules@latest` you might get an error on a peer dependency.
44
+ In this case you can uninstall the linter by `npm uninstall "@prowise/eslint-config-linting-rules` and reinstall it again with `npm i -D "@prowise/eslint-config-linting-rules@latest`
package/package.json CHANGED
@@ -1 +1 @@
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"}}
1
+ {"name":"@prowise/eslint-config-linting-rules","version":"2.0.0","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.13.0","@typescript-eslint/parser":"^7.13.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.9","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-react":"^7.34.2","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"}}