@dineroregnskab/eslint-plugin-custom-rules 2.1.0 → 2.1.1

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 CHANGED
@@ -68,14 +68,12 @@ module.exports = {
68
68
 
69
69
  ### Publish & install new rule locally
70
70
 
71
- Run:
71
+ 1. Log in to npm using `npm login`
72
+ 2. run:
72
73
 
73
74
  ```bash
74
- npm patch
75
- ```
76
-
77
- ```bash
78
- npm publish
75
+ # {version_type}: The type of version increment (patch, minor, major)
76
+ npm version {version_type} && npm publish
79
77
  ```
80
78
 
81
79
  - In dinero.Frontend and/or dinero.Admin, update the root `package.json` file with the newly published version number.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dineroregnskab/eslint-plugin-custom-rules",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "ESLint plugin with custom rules for Dinero Regnskab",
5
5
  "main": "eslint-plugin-custom-rules.js",
6
6
  "scripts": {},
@@ -13,7 +13,7 @@ module.exports = {
13
13
  return {
14
14
  Program(node) {
15
15
  const templateContent = node.value;
16
- const currencyPipeRegex = /\|\s*currency/g;
16
+ const currencyPipeRegex = /\|\s*currency\b/g;
17
17
 
18
18
  let match;
19
19
  while (