@handy-common-utils/dev-dependencies-common 1.7.0 → 1.9.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/.prettierignore CHANGED
@@ -16,3 +16,5 @@ reports/
16
16
 
17
17
  api-docs/
18
18
  **/api-docs/
19
+
20
+ # Feel free to add your own ignore patterns below and/or customize existing ones above
package/README.md CHANGED
@@ -1,13 +1,12 @@
1
1
  # @handy-common-utils/dev-dependencies-common
2
2
 
3
- This package contains dependencies that are common.
4
- It can be used to accelerate the scaffolding of Typescript projects.
3
+ This package provides recommended dev dependencies.
4
+ It can be used to accelerate the scaffolding of TypeScript projects.
5
5
 
6
6
  [![Version](https://img.shields.io/npm/v/@handy-common-utils/dev-dependencies-common.svg)](https://npmjs.org/package/@handy-common-utils/dev-dependencies-common)
7
7
  [![Downloads/week](https://img.shields.io/npm/dw/@handy-common-utils/dev-dependencies-common.svg)](https://npmjs.org/package/@handy-common-utils/dev-dependencies-common)
8
8
 
9
-
10
9
  Usually, you don't use this package directly, you use one of these instead:
11
10
 
12
- - [@handy-common-utils/dev-dependencies-mocha](../mocha) - Common dev dependencies, including @handy-common-utils/dev-dependencies-common, mocha, chai, nyc, etc.
13
- - [@handy-common-utils/dev-dependencies-jest](../jest) - Common dev dependencies, including @handy-common-utils/dev-dependencies-common, jest, etc.
11
+ - [@handy-common-utils/dev-dependencies-mocha](https://www.npmjs.com/package/@handy-common-utils/dev-dependencies-mocha) - Dev dependencies with `Mocha`, `Chai`, and `Istanbul`/`nyc` as the testing framework.
12
+ - [@handy-common-utils/dev-dependencies-jest](https://www.npmjs.com/package/@handy-common-utils/dev-dependencies-jest) - Dev dependencies with `Jest` as the testing framework.
@@ -0,0 +1,18 @@
1
+ const { buildESLintConfig } = require('eslint-config-sensible-prettier-typescript');
2
+ const { defineConfig } = require('eslint/config');
3
+
4
+ const config = buildESLintConfig({ defaultSourceType: 'commonjs' });
5
+
6
+ module.exports = defineConfig([
7
+ // These global ignore patterns are just examples, feel free to remove or modify
8
+ {
9
+ ignores: ['mocha/test/fixtures/**/*', 'jest/test/fixtures/**/*'],
10
+ },
11
+ ...config,
12
+ // Add your customizations here
13
+ {
14
+ rules: {
15
+ 'unicorn/prefer-module': 'off',
16
+ },
17
+ },
18
+ ]);
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@handy-common-utils/dev-dependencies-common",
3
- "version": "1.7.0",
3
+ "version": "1.9.1",
4
4
  "description": "This package contains dependencies that are common between @handy-common-utils/dev-dependencies-common-jest and @handy-common-utils/dev-dependencies-common-mocha",
5
5
  "bin": {},
6
6
  "scripts": {
7
- "test": "",
8
- "prepare": "shx cp ../LICENSE ../tsconfig.* ../.eslintrc.* ../.eslintignore ../.prettier* ."
7
+ "test": "eslint .",
8
+ "prepare": "shx cp ../LICENSE ../tsconfig.* ../eslint.config.* ../prettier.config.* ../.prettierignore . && replace-in-file .prettierignore '# These are just example[\\x00-\\x7F]*?\\n\\n' ''"
9
9
  },
10
10
  "files": [
11
11
  "tsconfig.*",
12
- ".eslintrc.*",
13
- ".eslintignore",
14
- ".prettier*"
12
+ "eslint.config.*",
13
+ ".prettierignore",
14
+ "prettier.config.*"
15
15
  ],
16
16
  "publishConfig": {
17
17
  "access": "public"
@@ -33,17 +33,16 @@
33
33
  "homepage": "https://github.com/handy-common-utils/dev-dependencies/common/tree/master/common#readme",
34
34
  "dependencies": {
35
35
  "@handy-common-utils/dev-utils": "^1.8.0",
36
- "es-check": "^9.1.4",
37
- "eslint": "^9.32.0",
38
- "eslint-config-sensible-prettier-typescript": "^1.3.0",
36
+ "es-check": "^9.3.1",
37
+ "eslint": "^9.34.0",
38
+ "eslint-config-sensible-prettier-typescript": "^1.7.1",
39
39
  "husky": "^9.1.7",
40
- "lint-staged": "^16.1.2",
40
+ "lint-staged": "^16.1.5",
41
41
  "npm-run-all": "^4.1.5",
42
- "prettier": "^3.6.2",
43
42
  "shx": "^0.4.0",
44
43
  "source-map-support": "^0.5.21",
45
44
  "ts-node": "^10.9.2",
46
- "typescript": "^5.8.3",
45
+ "typescript": "^5.9.2",
47
46
  "wait-on": "^8.0.4"
48
47
  }
49
48
  }
@@ -0,0 +1,6 @@
1
+ const { buildPrettierConfig } = require('eslint-config-sensible-prettier-typescript');
2
+
3
+ module.exports = {
4
+ ...buildPrettierConfig(),
5
+ // Override or extend the default config
6
+ };
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- /dist
2
- /package
package/.eslintrc.js DELETED
@@ -1,11 +0,0 @@
1
- /* eslint-disable unicorn/prefer-module, node/no-extraneous-require, unicorn/prefer-module */
2
-
3
- require('@rushstack/eslint-patch/modern-module-resolution');
4
-
5
- module.exports = {
6
- extends: [
7
- 'sensible-prettier-typescript',
8
- ],
9
- parserOptions: { tsconfigRootDir: __dirname },
10
- // place your customisation here
11
- };
package/.eslintrc.yml DELETED
@@ -1,4 +0,0 @@
1
- root: true
2
- extends:
3
- - sensible-prettier-typescript
4
- # place your customisation here
package/.prettierrc.js DELETED
@@ -1,5 +0,0 @@
1
- const config = require('eslint-config-sensible-prettier-typescript/prettier.config');
2
- module.exports = {
3
- ...config,
4
- // place your customisation here
5
- };