@will-stone/eslint-config 0.2.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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/eslint-config.js CHANGED
@@ -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
  ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/eslint-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Will Stone's ESLint config, using the Flat Config style.",
5
5
  "keywords": [
6
6
  "ESLint"