@diplodoc/lint 1.0.2 → 1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.3](https://github.com/diplodoc-platform/lint/compare/v1.0.2...v1.0.3) (2024-08-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Force update prepare script ([67ee6d2](https://github.com/diplodoc-platform/lint/commit/67ee6d26718085e124b9feba50f2a04e685f7d17))
9
+ * Remove overrides for [@typescript-eslint](https://github.com/typescript-eslint) ([c1f017a](https://github.com/diplodoc-platform/lint/commit/c1f017a44a0fb82609b61b75eb50ef9154180d26))
10
+
3
11
  ## [1.0.2](https://github.com/diplodoc-platform/lint/compare/v1.0.1...v1.0.2) (2024-08-11)
4
12
 
5
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint",
@@ -29,8 +29,6 @@
29
29
  "@gravity-ui/eslint-config": "^3.2.0",
30
30
  "@gravity-ui/prettier-config": "^1.1.0",
31
31
  "@gravity-ui/stylelint-config": "^4.0.1",
32
- "@typescript-eslint/eslint-plugin": "^8.0.1",
33
- "@typescript-eslint/parser": "^8.0.1",
34
32
  "eslint": "^8.57.0",
35
33
  "eslint-config-prettier": "^9.1.0",
36
34
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -42,4 +40,4 @@
42
40
  "stylelint": "15",
43
41
  "svgo": "^3.3.2"
44
42
  }
45
- }
43
+ }
@@ -10,8 +10,8 @@ try {
10
10
  throw 'Unable to modify ' + filename;
11
11
  }
12
12
 
13
- function configure(command, impl, strict = true) {
14
- if (pkg.scripts[command]) {
13
+ function configure(command, impl, force = false) {
14
+ if (pkg.scripts[command] && !force) {
15
15
  if (pkg.scripts[command] !== impl && strict) {
16
16
  throw `Lint command '${command}' already configured with different program`;
17
17
  }
@@ -24,5 +24,6 @@ function configure(command, impl, strict = true) {
24
24
  configure('lint', 'lint update && lint');
25
25
  configure('lint:fix', 'lint update && lint fix');
26
26
  configure('pre-commit', 'lint update && lint-staged');
27
+ configure('prepare', 'husky || true', true);
27
28
 
28
29
  writeFileSync(filename, JSON.stringify(pkg, null, 2), 'utf8');