@will-stone/eslint-config 0.0.5 → 0.0.7

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,17 @@
1
1
  # @will-stone/eslint-config
2
2
 
3
+ ## 0.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 3882d03: Fixed not finding mock files.
8
+
9
+ ## 0.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - 1ab951c: Fixed `jest` global not available in mocks.
14
+
3
15
  ## 0.0.5
4
16
 
5
17
  ### Patch Changes
package/eslint-config.js CHANGED
@@ -142,18 +142,28 @@ export default [
142
142
  },
143
143
 
144
144
  // Jest
145
- {
146
- files: ['**/*.{spec,test}.{js,cjs,mjs,jsx,ts,tsx}'],
147
- languageOptions: {
148
- globals: testingFramework === 'jest' && globals.jest,
149
- },
150
- plugins: testingFramework === 'jest' && {
151
- jest: jestPlugin,
152
- },
153
- rules: testingFramework === 'jest' && jestRules,
154
- },
155
- {
156
- files: ['**/*.{spec,test}.{ts,tsx}'],
157
- rules: testingFramework === 'jest' && jestTsRules,
158
- },
145
+ ...(testingFramework === 'jest'
146
+ ? [
147
+ {
148
+ files: [
149
+ '**/__mocks__/**/*',
150
+ '**/*.{spec,test}.{js,cjs,mjs,jsx,ts,tsx}',
151
+ ],
152
+ languageOptions: {
153
+ globals: globals.jest,
154
+ },
155
+ },
156
+ {
157
+ files: ['**/*.{spec,test}.{js,cjs,mjs,jsx,ts,tsx}'],
158
+ plugins: {
159
+ jest: jestPlugin,
160
+ },
161
+ rules: jestRules,
162
+ },
163
+ {
164
+ files: ['**/*.{spec,test}.{ts,tsx}'],
165
+ rules: jestTsRules,
166
+ },
167
+ ]
168
+ : []),
159
169
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/eslint-config",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Will Stone's ESLint config, using the Flat Config style.",
5
5
  "keywords": [
6
6
  "ESLint"