@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 +8 -0
- package/package.json +1 -1
- package/types/helpers/config.d.ts +3 -0
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