Skip to content

Commit 3a2b6ea

Browse files
Update Import Examples
Add New Optimized Import examples.
1 parent 9ecf027 commit 3a2b6ea

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,22 @@ In `eslint.config.(m)js` make these changes:
3939
### Normal (Non-UI)
4040

4141
```TypeScript
42-
import { baseLintConfig } from '@shi-corp/development-utilities';
42+
import { eslintConfig } from '@shi-corp/development-utilities/optimized/lint/base.js'
43+
import { defineConfig } from 'eslint/config'
4344

44-
export default [
45-
...baseLintConfig,
46-
// Add project-specific rules, ignores, or plugins here
47-
];
45+
export default defineConfig(eslintConfig)
4846
```
4947

5048
### User Interface (Next.JS)
5149

5250
```TypeScript
53-
import { baseLintConfig } from '@shi-corp/development-utilities';
51+
import { eslintConfig } from '@shi-corp/development-utilities/optimized/lint/next.js'
52+
import { defineConfig } from 'eslint/config'
5453

55-
export default [
56-
...nextLintConfig,
54+
export default defineConfig([
55+
...eslintConfig,
5756
// Add project-specific rules, ignores, or plugins here
58-
];
57+
])
5958
```
6059

6160
## Next.js configuration

0 commit comments

Comments
 (0)