@shi-corp/development-utilities 2.0.3 → 2.1.0
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 +8 -9
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -39,23 +39,22 @@ In `eslint.config.(m)js` make these changes:
|
|
|
39
39
|
### Normal (Non-UI)
|
|
40
40
|
|
|
41
41
|
```TypeScript
|
|
42
|
-
import {
|
|
42
|
+
import { eslintConfig } from '@shi-corp/development-utilities/optimized/lint/base.js'
|
|
43
|
+
import { defineConfig } from 'eslint/config'
|
|
43
44
|
|
|
44
|
-
export default
|
|
45
|
-
...baseLintConfig,
|
|
46
|
-
// Add project-specific rules, ignores, or plugins here
|
|
47
|
-
];
|
|
45
|
+
export default defineConfig(eslintConfig)
|
|
48
46
|
```
|
|
49
47
|
|
|
50
48
|
### User Interface (Next.JS)
|
|
51
49
|
|
|
52
50
|
```TypeScript
|
|
53
|
-
import {
|
|
51
|
+
import { eslintConfig } from '@shi-corp/development-utilities/optimized/lint/next.js'
|
|
52
|
+
import { defineConfig } from 'eslint/config'
|
|
54
53
|
|
|
55
|
-
export default [
|
|
56
|
-
...
|
|
54
|
+
export default defineConfig([
|
|
55
|
+
...eslintConfig,
|
|
57
56
|
// Add project-specific rules, ignores, or plugins here
|
|
58
|
-
]
|
|
57
|
+
])
|
|
59
58
|
```
|
|
60
59
|
|
|
61
60
|
## Next.js configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shi-corp/development-utilities",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Collection of configurations, settings and packages to be common across multiple products/repositories.",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
"lint": "eslint --max-warnings 0",
|
|
12
12
|
"test:Unit": "mocha"
|
|
13
13
|
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./bin/src/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./optimized/lint/*.js": {
|
|
19
|
+
"import": "./bin/config/linter/*.js"
|
|
20
|
+
},
|
|
21
|
+
"./config/typescript/*.json": "./config/typescript/*.json"
|
|
22
|
+
},
|
|
14
23
|
"packageManager": "npm@11.6.2",
|
|
15
24
|
"devEngines": {
|
|
16
25
|
"runtime": {
|