@will-stone/eslint-config 0.1.0 → 0.2.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/CHANGELOG.md +12 -0
- package/eslint-config.js +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @will-stone/eslint-config
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5ee5299: Fixed support for Tailwind in Astro files.
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 9be0e9d: Added support for ignoring Next.Js build folder.
|
|
14
|
+
|
|
3
15
|
## 0.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/eslint-config.js
CHANGED
|
@@ -96,7 +96,7 @@ export default [
|
|
|
96
96
|
// Global ignore patterns
|
|
97
97
|
{
|
|
98
98
|
// Common build folders
|
|
99
|
-
ignores: ['**/.webpack', '**/dist', '**/.astro'],
|
|
99
|
+
ignores: ['**/.webpack', '**/dist', '**/.astro', '**/.next'],
|
|
100
100
|
},
|
|
101
101
|
|
|
102
102
|
// Base
|
|
@@ -153,15 +153,20 @@ export default [
|
|
|
153
153
|
'jsx-a11y': jsxA11yPlugin,
|
|
154
154
|
'react': reactPlugin,
|
|
155
155
|
'react-hooks': reactHooksPlugin,
|
|
156
|
-
...(isTailwind && { tailwindcss: tailwindPlugin }),
|
|
157
156
|
},
|
|
158
157
|
rules: {
|
|
159
158
|
...jsxA11yRules,
|
|
160
159
|
...reactRules,
|
|
161
|
-
...(isTailwind && tailwindRules),
|
|
162
160
|
},
|
|
163
161
|
},
|
|
164
162
|
|
|
163
|
+
// Tailwind
|
|
164
|
+
{
|
|
165
|
+
files: ['**/*.{jsx,tsx,astro}'],
|
|
166
|
+
plugins: isTailwind && { tailwindcss: tailwindPlugin },
|
|
167
|
+
rules: isTailwind && tailwindRules,
|
|
168
|
+
},
|
|
169
|
+
|
|
165
170
|
// Jest
|
|
166
171
|
...(testingFramework === 'jest'
|
|
167
172
|
? [
|