@21torr/janus 1.0.5 → 1.0.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ 1.0.6
2
+ =====
3
+
4
+ * (improvement) Disable eslint rule `@typescript-eslint/no-namespace` only for files in `src/@types`.
5
+ * (improvement) Add to `lint:eslint` and `fix-lint:eslint` in both init `package.json` the `--no-error-on-unmatched-pattern` flag.
6
+
7
+
1
8
  1.0.5
2
9
  =====
3
10
 
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "scripts": {
3
3
  "fix-lint": "pnpm run /^fix-lint:.*/",
4
+ "fix-lint:eslint": "eslint --fix --no-error-on-unmatched-pattern src || true",
4
5
  "fix-lint:format": "dprint fmt",
5
6
  "fix-lint:stylelint": "stylelint 'assets/**/*.{scss,css}' 'src/**/*.{scss,css}' --color --fix",
6
7
  "fix-lint:package.json": "prettier-package-json --use-tabs --write",
7
8
  "lint": "pnpm run /^lint:.*/",
9
+ "lint:eslint": "eslint --no-error-on-unmatched-pattern src",
8
10
  "lint:format": "dprint check",
9
- "lint:eslint": "eslint src",
10
11
  "lint:stylelint": "stylelint 'assets/**/*.{scss,css}' 'src/**/*.{scss,css}' --color",
11
12
  "lint:package.json": "prettier-package-json --use-tabs --list-different",
12
13
  "test": "pnpm run /^test:.*/",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "scripts": {
3
3
  "fix-lint": "pnpm run /^fix-lint:.*/",
4
- "fix-lint:eslint": "eslint --fix src stories || true",
4
+ "fix-lint:eslint": "eslint --fix --no-error-on-unmatched-pattern src stories || true",
5
5
  "fix-lint:format": "dprint fmt",
6
6
  "fix-lint:stylelint": "stylelint 'assets/**/*.{scss,css}' 'src/**/*.{scss,css}' --color --fix",
7
7
  "fix-lint:package.json": "prettier-package-json --use-tabs --write",
8
8
  "lint": "pnpm run /^lint:.*/",
9
- "lint:eslint": "eslint src stories",
9
+ "lint:eslint": "eslint --no-error-on-unmatched-pattern src stories",
10
10
  "lint:format": "dprint check",
11
11
  "lint:stylelint": "stylelint 'assets/**/*.{scss,css}' 'src/**/*.{scss,css}' --color",
12
12
  "lint:package.json": "prettier-package-json --use-tabs --list-different",
package/eslint/base.mjs CHANGED
@@ -174,5 +174,14 @@ export default [
174
174
  "@typescript-eslint/no-duplicate-type-constituents": "off",
175
175
  // endregion
176
176
  }
177
- }
177
+ },
178
+ {
179
+ name: "Allow namespace in @types",
180
+ rules: {
181
+ "@typescript-eslint/no-namespace": "off",
182
+ },
183
+ files: [
184
+ "src/@types/*",
185
+ ],
186
+ },
178
187
  ];
package/package.json CHANGED
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "version": "1.0.5"
56
+ "version": "1.0.6"
57
57
  }