@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 +2 -0
- package/README.md +4 -5
- package/eslint.config.cjs +18 -0
- package/package.json +11 -12
- package/prettier.config.cjs +6 -0
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -11
- package/.eslintrc.yml +0 -4
- package/.prettierrc.js +0 -5
package/.prettierignore
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# @handy-common-utils/dev-dependencies-common
|
|
2
2
|
|
|
3
|
-
This package
|
|
4
|
-
It can be used to accelerate the scaffolding of
|
|
3
|
+
This package provides recommended dev dependencies.
|
|
4
|
+
It can be used to accelerate the scaffolding of TypeScript projects.
|
|
5
5
|
|
|
6
6
|
[](https://npmjs.org/package/@handy-common-utils/dev-dependencies-common)
|
|
7
7
|
[](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](
|
|
13
|
-
- [@handy-common-utils/dev-dependencies-jest](
|
|
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.
|
|
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.*
|
|
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
|
-
".
|
|
13
|
-
".
|
|
14
|
-
".
|
|
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
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"eslint-config-sensible-prettier-typescript": "^1.
|
|
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.
|
|
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.
|
|
45
|
+
"typescript": "^5.9.2",
|
|
47
46
|
"wait-on": "^8.0.4"
|
|
48
47
|
}
|
|
49
48
|
}
|
package/.eslintignore
DELETED
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