@prowise/eslint-config-linting-rules 0.0.1 → 0.0.3
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.
- package/README.md +18 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,21 @@ Rules are based on:
|
|
|
13
13
|
|
|
14
14
|
* Install this package with `npm install @prowise/eslint-config-linting-rules -D`
|
|
15
15
|
* Depending on the type of project, add the following line to your `eslintrc` file:
|
|
16
|
-
* Plain javascript project:
|
|
17
|
-
* Typescript project:
|
|
18
|
-
* Node-typescript backend project:
|
|
19
|
-
* React-typescript frontend project:
|
|
16
|
+
* Plain javascript project: `"extends": ["@prowise/eslint-config-linting-rules"],`
|
|
17
|
+
* Typescript project: `"extends": ["@prowise/eslint-config-linting-rules/typescript"],`
|
|
18
|
+
* Node-typescript backend project: `"extends": ["@prowise/eslint-config-linting-rules/backend"],`
|
|
19
|
+
* React-typescript frontend project: `"extends": ["@prowise/eslint-config-linting-rules/frontend"],`
|
|
20
|
+
|
|
21
|
+
Note: Don't forget to add the project to your `parserOptions` in the `.eslintrc.js` file for typescript projects!
|
|
22
|
+
|
|
23
|
+
Sample of a `.eslintrc.js` file:
|
|
24
|
+
```
|
|
25
|
+
module.exports = {
|
|
26
|
+
extends: ["@prowise/eslint-config-linting-rules/frontend"],
|
|
27
|
+
parserOptions: {
|
|
28
|
+
project: "./tsconfig.json",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@prowise/eslint-config-linting-rules","version":"0.0.
|
|
1
|
+
{"name":"@prowise/eslint-config-linting-rules","version":"0.0.3","description":"Default Prowise linting rules for npm packages.","main":"index.js","exports":{"./typescript":"./typescript.js","./backend":"./backend.js","./frontend":"./frontend.js"},"scripts":{"lint":"eslint ."},"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":"^5.36.2","@typescript-eslint/parser":"^5.36.2","confusing-browser-globals":"^1.0.11","eslint":"^8.23.0","eslint-import-resolver-typescript":"^3.5.1","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^27.0.1","eslint-plugin-jsdoc":"^39.3.6","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.31.7","eslint-plugin-react-hooks":"^4.6.0","object.assign":"^4.1.4","prettier":"^2.7.1","semver":"^7.3.7"}}
|