@remcohaszing/eslint 11.1.0 → 11.2.0
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/lib/config.js +15 -1
- package/package.json +1 -1
- package/types/config.d.ts +10 -1
- package/types/config.d.ts.map +1 -1
package/lib/config.js
CHANGED
|
@@ -601,11 +601,12 @@ const config = defineConfig([
|
|
|
601
601
|
{
|
|
602
602
|
type: 'custom',
|
|
603
603
|
alphabet,
|
|
604
|
-
internalPattern: [
|
|
604
|
+
internalPattern: [],
|
|
605
605
|
groups: [
|
|
606
606
|
'side-effect',
|
|
607
607
|
'builtin',
|
|
608
608
|
'external',
|
|
609
|
+
'subpath',
|
|
609
610
|
'internal',
|
|
610
611
|
'parent',
|
|
611
612
|
{ newlinesBetween: 'never' },
|
|
@@ -1049,6 +1050,7 @@ export const typechecking = defineConfig([
|
|
|
1049
1050
|
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
|
1050
1051
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
1051
1052
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
1053
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
|
1052
1054
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
1053
1055
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
1054
1056
|
'@typescript-eslint/no-unsafe-call': 'error',
|
|
@@ -1091,3 +1093,15 @@ export const typechecking = defineConfig([
|
|
|
1091
1093
|
}
|
|
1092
1094
|
}
|
|
1093
1095
|
])
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Define an ESLint configuration that extends the default export.
|
|
1099
|
+
*
|
|
1100
|
+
* @param {Linter.Config | Linter.Config[]} overrides
|
|
1101
|
+
* ESLint configuration overrides.
|
|
1102
|
+
* @returns {Linter.Config[]}
|
|
1103
|
+
* The full ESLint configuration.
|
|
1104
|
+
*/
|
|
1105
|
+
export function define(overrides) {
|
|
1106
|
+
return [...config, ...defineConfig(overrides)]
|
|
1107
|
+
}
|
package/package.json
CHANGED
package/types/config.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define an ESLint configuration that extends the default export.
|
|
3
|
+
*
|
|
4
|
+
* @param {Linter.Config | Linter.Config[]} overrides
|
|
5
|
+
* ESLint configuration overrides.
|
|
6
|
+
* @returns {Linter.Config[]}
|
|
7
|
+
* The full ESLint configuration.
|
|
8
|
+
*/
|
|
9
|
+
export function define(overrides: Linter.Config | Linter.Config[]): Linter.Config[];
|
|
1
10
|
export default config;
|
|
2
11
|
export const typechecking: Linter.Config<Linter.RulesRecord>[];
|
|
3
|
-
declare const config: Linter.Config<Linter.RulesRecord>[];
|
|
4
12
|
import type { Linter } from 'eslint';
|
|
13
|
+
declare const config: Linter.Config<Linter.RulesRecord>[];
|
|
5
14
|
//# sourceMappingURL=config.d.ts.map
|
package/types/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../lib/config.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../lib/config.js"],"names":[],"mappings":"AAwkCA;;;;;;;GAOG;AACH,kCALW,aAAa,GAAG,aAAa,EAAE,GAE7B,aAAa,EAAE,CAK3B;;AAvFD,+DA2EE;4BArkCuB,QAAQ;AAmEjC,0DAm7BE"}
|