@fullstacksjs/eslint-config 11.1.16 → 11.1.17
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 +2 -2
- package/package.json +1 -1
- package/src/modules/tailwind.js +6 -3
package/README.md
CHANGED
|
@@ -140,8 +140,8 @@ v10 drops support for ESLint v8 configuration and only ESLint v9 is supported, w
|
|
|
140
140
|
- // your configuration
|
|
141
141
|
-});
|
|
142
142
|
+export default init({
|
|
143
|
-
+
|
|
144
|
-
+
|
|
143
|
+
+ esm: true,
|
|
144
|
+
+ typescript: true,
|
|
145
145
|
+ },
|
|
146
146
|
+ // your configuration
|
|
147
147
|
+);
|
package/package.json
CHANGED
package/src/modules/tailwind.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/** @return { Promise<import('eslint').Linter.Config> } */
|
|
2
|
-
|
|
3
|
-
const plugin = await import('eslint-plugin-tailwindcss');
|
|
2
|
+
function tailwind() {
|
|
4
3
|
return {
|
|
5
|
-
plugins: {
|
|
4
|
+
plugins: {
|
|
5
|
+
get tailwindcss() {
|
|
6
|
+
return import('eslint-plugin-tailwindcss');
|
|
7
|
+
},
|
|
8
|
+
},
|
|
6
9
|
rules: {
|
|
7
10
|
'tailwindcss/classnames-order': 'warn',
|
|
8
11
|
'tailwindcss/enforces-negative-arbitrary-values': 'warn',
|