@saashub/qoq-knip 0.10.0 → 0.11.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 +32 -1
- package/package.json +8 -8
- package/.prettierrc +0 -1
- package/eslint.config.js +0 -1
package/README.md
CHANGED
@@ -1 +1,32 @@
|
|
1
|
-
# @saashub/qoq-knip
|
1
|
+
# @saashub/qoq-knip
|
2
|
+
|
3
|
+
 [](https://codecov.io/gh/saashub-it/qoq/flags/knip) 
|
4
|
+
  
|
5
|
+
|
6
|
+
## Rationale
|
7
|
+
|
8
|
+
Beign tired of setting up [Knip](https://www.npmjs.com/package/knip) all over again for new projects, we created some base template. Configs is opinionated, configured from years of development experience, can be used as full setup without any tweaks or as base to Your own configs.
|
9
|
+
|
10
|
+
## Install
|
11
|
+
|
12
|
+
npm install @saashub/qoq-knip
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
Package exports both CommonJS and ESM code just import it in Your knip config file.
|
17
|
+
|
18
|
+
### For CommonJS
|
19
|
+
|
20
|
+
```js
|
21
|
+
const { jsConfig, jsReactConfig, tsConfig, tsReactConfig } = require('@saashub/qoq-knip');
|
22
|
+
|
23
|
+
module.exports = jsConfig;
|
24
|
+
```
|
25
|
+
|
26
|
+
### For ESM
|
27
|
+
|
28
|
+
```js
|
29
|
+
import { jsConfig, jsReactConfig, tsConfig, tsReactConfig } from '@saashub/qoq-knip';
|
30
|
+
|
31
|
+
export default jsConfig;
|
32
|
+
```
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@saashub/qoq-knip",
|
3
3
|
"description": "Knip configs template",
|
4
4
|
"license": "MIT",
|
5
|
-
"version": "0.
|
5
|
+
"version": "0.11.1",
|
6
6
|
"main": "./lib/index.cjs",
|
7
7
|
"module": "./lib/index.mjs",
|
8
8
|
"types": "./lib/index.d.js",
|
@@ -28,19 +28,19 @@
|
|
28
28
|
"scripts": {
|
29
29
|
"build": "rimraf ./lib && rollup -c --silent",
|
30
30
|
"test": "vitest run --coverage",
|
31
|
-
"qoq:check": "qoq --check",
|
32
|
-
"qoq:fix": "qoq --fix"
|
31
|
+
"qoq:check": "qoq --check --skip-knip",
|
32
|
+
"qoq:fix": "qoq --fix --skip-knip"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"knip": "5.30.
|
35
|
+
"knip": "5.30.5",
|
36
36
|
"lodash": "4.17.21"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@saashub/qoq-cli": "^0.
|
40
|
-
"@types/lodash": "4.17.
|
39
|
+
"@saashub/qoq-cli": "^0.11.1",
|
40
|
+
"@types/lodash": "4.17.9",
|
41
41
|
"@vitest/coverage-v8": "2.1.1",
|
42
42
|
"rimraf": "6.0.1",
|
43
|
-
"rollup": "4.22.
|
43
|
+
"rollup": "4.22.4",
|
44
44
|
"typescript": "5.6.2",
|
45
45
|
"vitest": "2.1.1"
|
46
46
|
},
|
@@ -56,5 +56,5 @@
|
|
56
56
|
"directory": "packages/knip"
|
57
57
|
},
|
58
58
|
"homepage": "https://github.com/saashub-it/qoq/tree/master/packages/knip",
|
59
|
-
"gitHead": "
|
59
|
+
"gitHead": "c2a79738a205ffa7733f4e6575b7211e1ae79bff"
|
60
60
|
}
|
package/.prettierrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"@saashub/qoq-prettier"
|
package/eslint.config.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
const config = require('@saashub/qoq-cli/bin/eslint.config.js'); module.exports = config;
|