@lichthagel/eslint-config 1.0.14 → 1.0.16

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/README.md CHANGED
@@ -10,6 +10,8 @@ Collection of eslint configs I use for my projects.
10
10
 
11
11
  ## Configuration
12
12
 
13
+ Using `eslint.config.js`:
14
+
13
15
  ```js
14
16
  // @ts-check
15
17
 
@@ -20,6 +22,19 @@ export default [
20
22
  ...await lichthagel({
21
23
  ...options
22
24
  }),
23
- ...otherSettings
25
+ ...otherConfigs
24
26
  ];
25
27
  ```
28
+
29
+ Or using `eslint.config.ts` (see <https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files>):
30
+
31
+ ```ts
32
+ import lichthagel, { FlatConfigItem } from "./dist/index.js";
33
+
34
+ export default [
35
+ ...(await lichthagel({
36
+ ...options
37
+ })),
38
+ ...otherConfigs
39
+ ] satisfies FlatConfigItem[];
40
+ ```
package/dist/index.d.cts CHANGED
@@ -6097,6 +6097,8 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = []|[{
6097
6097
  allowComparingNullableBooleansToFalse?: boolean
6098
6098
 
6099
6099
  allowComparingNullableBooleansToTrue?: boolean
6100
+
6101
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
6100
6102
  }]
6101
6103
  // ----- @typescript-eslint/no-unnecessary-condition -----
6102
6104
  type TypescriptEslintNoUnnecessaryCondition = []|[{
@@ -8196,6 +8198,37 @@ type PerfectionistSortEnums = []|[{
8196
8198
  order?: ("asc" | "desc")
8197
8199
 
8198
8200
  forceNumericSort?: boolean
8201
+ customGroups?: ({
8202
+ [k: string]: (string | string[]) | undefined
8203
+ } | ({
8204
+
8205
+ groupName?: string
8206
+
8207
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8208
+
8209
+ order?: ("desc" | "asc")
8210
+
8211
+ newlinesInside?: ("always" | "never")
8212
+ anyOf?: {
8213
+
8214
+ elementValuePattern?: string
8215
+
8216
+ elementNamePattern?: string
8217
+ }[]
8218
+ } | {
8219
+
8220
+ groupName?: string
8221
+
8222
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8223
+
8224
+ order?: ("desc" | "asc")
8225
+
8226
+ newlinesInside?: ("always" | "never")
8227
+
8228
+ elementValuePattern?: string
8229
+
8230
+ elementNamePattern?: string
8231
+ })[])
8199
8232
 
8200
8233
  sortByValue?: boolean
8201
8234
 
@@ -8207,7 +8240,15 @@ type PerfectionistSortEnums = []|[{
8207
8240
 
8208
8241
  partitionByNewLine?: boolean
8209
8242
 
8243
+ newlinesBetween?: ("ignore" | "always" | "never")
8244
+
8210
8245
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
8246
+
8247
+ groups?: (string | string[] | {
8248
+
8249
+ newlinesBetween?: ("ignore" | "always" | "never")
8250
+ [k: string]: unknown | undefined
8251
+ })[]
8211
8252
  }]
8212
8253
  // ----- perfectionist/sort-exports -----
8213
8254
  type PerfectionistSortExports = []|[{
@@ -8599,6 +8640,8 @@ type PerfectionistSortNamedExports = []|[{
8599
8640
 
8600
8641
  groupKind?: ("mixed" | "values-first" | "types-first")
8601
8642
 
8643
+ ignoreAlias?: boolean
8644
+
8602
8645
  partitionByComment?: (string[] | boolean | string | {
8603
8646
  block?: (string[] | boolean | string)
8604
8647
  line?: (string[] | boolean | string)
package/dist/index.d.ts CHANGED
@@ -6097,6 +6097,8 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = []|[{
6097
6097
  allowComparingNullableBooleansToFalse?: boolean
6098
6098
 
6099
6099
  allowComparingNullableBooleansToTrue?: boolean
6100
+
6101
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
6100
6102
  }]
6101
6103
  // ----- @typescript-eslint/no-unnecessary-condition -----
6102
6104
  type TypescriptEslintNoUnnecessaryCondition = []|[{
@@ -8196,6 +8198,37 @@ type PerfectionistSortEnums = []|[{
8196
8198
  order?: ("asc" | "desc")
8197
8199
 
8198
8200
  forceNumericSort?: boolean
8201
+ customGroups?: ({
8202
+ [k: string]: (string | string[]) | undefined
8203
+ } | ({
8204
+
8205
+ groupName?: string
8206
+
8207
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8208
+
8209
+ order?: ("desc" | "asc")
8210
+
8211
+ newlinesInside?: ("always" | "never")
8212
+ anyOf?: {
8213
+
8214
+ elementValuePattern?: string
8215
+
8216
+ elementNamePattern?: string
8217
+ }[]
8218
+ } | {
8219
+
8220
+ groupName?: string
8221
+
8222
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8223
+
8224
+ order?: ("desc" | "asc")
8225
+
8226
+ newlinesInside?: ("always" | "never")
8227
+
8228
+ elementValuePattern?: string
8229
+
8230
+ elementNamePattern?: string
8231
+ })[])
8199
8232
 
8200
8233
  sortByValue?: boolean
8201
8234
 
@@ -8207,7 +8240,15 @@ type PerfectionistSortEnums = []|[{
8207
8240
 
8208
8241
  partitionByNewLine?: boolean
8209
8242
 
8243
+ newlinesBetween?: ("ignore" | "always" | "never")
8244
+
8210
8245
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
8246
+
8247
+ groups?: (string | string[] | {
8248
+
8249
+ newlinesBetween?: ("ignore" | "always" | "never")
8250
+ [k: string]: unknown | undefined
8251
+ })[]
8211
8252
  }]
8212
8253
  // ----- perfectionist/sort-exports -----
8213
8254
  type PerfectionistSortExports = []|[{
@@ -8599,6 +8640,8 @@ type PerfectionistSortNamedExports = []|[{
8599
8640
 
8600
8641
  groupKind?: ("mixed" | "values-first" | "types-first")
8601
8642
 
8643
+ ignoreAlias?: boolean
8644
+
8602
8645
  partitionByComment?: (string[] | boolean | string | {
8603
8646
  block?: (string[] | boolean | string)
8604
8647
  line?: (string[] | boolean | string)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichthagel/eslint-config",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Licht's ESLint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -63,6 +63,7 @@
63
63
  "eslint-plugin-tailwindcss": "^3.17.4",
64
64
  "eslint-typegen": "^1.0.0",
65
65
  "husky": "^9.1.6",
66
+ "jiti": "^2.4.2",
66
67
  "lint-staged": "^15.2.10",
67
68
  "svelte": "^5.12.0",
68
69
  "tsup": "^8.3.0",