@lipemat/eslint-config 5.0.0 → 5.0.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/index.js CHANGED
@@ -108,12 +108,20 @@ const TS_CONFIG = {
108
108
  }],
109
109
  },
110
110
  };
111
+ const TESTS_CONFIG = {
112
+ files: ['**/*.test.ts', '**/*.test.tsx'],
113
+ rules: {
114
+ // Allow test mocking to use `var`.
115
+ 'no-var': 'off',
116
+ },
117
+ };
111
118
  /**
112
119
  * Merge in any extensions' config.
113
120
  */
114
121
  const defaultConfig = [
115
122
  BASE_CONFIG,
116
123
  TS_CONFIG,
124
+ TESTS_CONFIG,
117
125
  securityPlugin.configs.recommended,
118
126
  ];
119
127
  let mergedConfig = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lipemat/eslint-config",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Eslint configuration for all @lipemat packages",
6
6
  "engines": {
@@ -1,4 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export type ExtensionConfigs = {
3
+ configs: FlatConfig.Config[];
4
+ };
2
5
  /**
3
6
  * Get a config from our /index.js merged with any
4
7
  * matching configuration from the project directory.