@lichthagel/eslint-config 1.0.0 → 1.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/README.md CHANGED
@@ -4,7 +4,9 @@ Collection of eslint configs I use for my projects.
4
4
 
5
5
  ## Installation
6
6
 
7
- `npm|yarn|pnpm i -D eslint @lichthagel/eslint-config`
7
+ `npm|yarn|pnpm|bun install -D eslint @lichthagel/eslint-config`
8
+
9
+ `npx|yarn dlx|pnpm dlx|bunx jsr add @licht/eslint-config` or `deno add jsr:@licht/eslint-config`
8
10
 
9
11
  ## Configuration
10
12
 
package/dist/index.cjs CHANGED
@@ -426,6 +426,8 @@ var svelte = async (options = {}) => {
426
426
  ...disableStylistic ? {
427
427
  "@stylistic/indent": "off",
428
428
  // superseded by svelte/indent
429
+ "@stylistic/indent-binary-ops": "off",
430
+ // superseded by svelte/indent
429
431
  "@stylistic/no-trailing-spaces": "off"
430
432
  // superseded by svelte/no-trailing-spaces
431
433
  } : {}
package/dist/index.d.cts CHANGED
@@ -4,12 +4,6 @@ import { Linter } from 'eslint';
4
4
  /* prettier-ignore */
5
5
 
6
6
 
7
- declare module 'eslint' {
8
- namespace Linter {
9
- interface RulesRecord extends RuleOptions {}
10
- }
11
- }
12
-
13
7
  interface RuleOptions {
14
8
  /**
15
9
  * Enforce linebreaks after opening and before closing array brackets
@@ -623,7 +617,7 @@ interface RuleOptions {
623
617
  */
624
618
  '@typescript-eslint/no-array-delete'?: Linter.RuleEntry<[]>
625
619
  /**
626
- * Require `.toString()` to only be called on objects which provide useful information when stringified
620
+ * Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified
627
621
  * @see https://typescript-eslint.io/rules/no-base-to-string
628
622
  */
629
623
  '@typescript-eslint/no-base-to-string'?: Linter.RuleEntry<TypescriptEslintNoBaseToString>
@@ -6342,6 +6336,8 @@ type TypescriptEslintSwitchExhaustivenessCheck = []|[{
6342
6336
 
6343
6337
  allowDefaultCaseForExhaustiveSwitch?: boolean
6344
6338
 
6339
+ considerDefaultExhaustiveForUnions?: boolean
6340
+
6345
6341
  requireDefaultForNonUnion?: boolean
6346
6342
  }]
6347
6343
  // ----- @typescript-eslint/triple-slash-reference -----
package/dist/index.d.ts CHANGED
@@ -4,12 +4,6 @@ import { Linter } from 'eslint';
4
4
  /* prettier-ignore */
5
5
 
6
6
 
7
- declare module 'eslint' {
8
- namespace Linter {
9
- interface RulesRecord extends RuleOptions {}
10
- }
11
- }
12
-
13
7
  interface RuleOptions {
14
8
  /**
15
9
  * Enforce linebreaks after opening and before closing array brackets
@@ -623,7 +617,7 @@ interface RuleOptions {
623
617
  */
624
618
  '@typescript-eslint/no-array-delete'?: Linter.RuleEntry<[]>
625
619
  /**
626
- * Require `.toString()` to only be called on objects which provide useful information when stringified
620
+ * Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified
627
621
  * @see https://typescript-eslint.io/rules/no-base-to-string
628
622
  */
629
623
  '@typescript-eslint/no-base-to-string'?: Linter.RuleEntry<TypescriptEslintNoBaseToString>
@@ -6342,6 +6336,8 @@ type TypescriptEslintSwitchExhaustivenessCheck = []|[{
6342
6336
 
6343
6337
  allowDefaultCaseForExhaustiveSwitch?: boolean
6344
6338
 
6339
+ considerDefaultExhaustiveForUnions?: boolean
6340
+
6345
6341
  requireDefaultForNonUnion?: boolean
6346
6342
  }]
6347
6343
  // ----- @typescript-eslint/triple-slash-reference -----
package/dist/index.js CHANGED
@@ -380,6 +380,8 @@ var svelte = async (options = {}) => {
380
380
  ...disableStylistic ? {
381
381
  "@stylistic/indent": "off",
382
382
  // superseded by svelte/indent
383
+ "@stylistic/indent-binary-ops": "off",
384
+ // superseded by svelte/indent
383
385
  "@stylistic/no-trailing-spaces": "off"
384
386
  // superseded by svelte/no-trailing-spaces
385
387
  } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichthagel/eslint-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Licht's ESLint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -49,6 +49,9 @@
49
49
  "typescript-eslint": "^8.7.0"
50
50
  },
51
51
  "devDependencies": {
52
+ "@commitlint/cli": "^19.5.0",
53
+ "@commitlint/config-conventional": "^19.5.0",
54
+ "@commitlint/types": "^19.5.0",
52
55
  "@types/eslint": "^9.6.1",
53
56
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
54
57
  "@types/eslint__js": "^8.42.3",
@@ -59,6 +62,8 @@
59
62
  "eslint-plugin-svelte": "^2.44.1",
60
63
  "eslint-plugin-tailwindcss": "^3.17.4",
61
64
  "eslint-typegen": "^0.3.2",
65
+ "husky": "^9.1.6",
66
+ "lint-staged": "^15.2.10",
62
67
  "tsup": "^8.3.0",
63
68
  "tsx": "^4.19.1",
64
69
  "typescript": "^5.6.2",