@kristijorgji/eslint-config-typescript 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@ export default createTypescriptConfig({
36
36
  | `importOrder` | Options for `import-x/order`, shallow-merged over package defaults; `false` disables the rule |
37
37
  | `sortImports` | Options for `sort-imports`, shallow-merged over package defaults; `false` disables the rule |
38
38
  | `codeQuality` | Opt-in (`true` or `{ duplication?, unusedSymbols? }`). Enables the sonarjs in-file duplication subset, `unused-imports/no-unused-imports`, and `@typescript-eslint/no-unused-private-class-members`. Default off. |
39
- | `explicitTypes` | Opt-in (`true` or per-rule toggles). Enables `consistent-type-assertions`, `consistent-type-imports`, `explicit-module-boundary-types`, and `explicit-function-return-type`. Default off. For React apps, prefer `@kristijorgji/eslint-config-react-typescript`, which turns `explicit-function-return-type` off for `.tsx`/`.jsx` when that rule is enabled (JSX return types are inferred). For non-React presets, pass `functionReturnType: false` or add a file-scoped override if you want the same relaxation. |
39
+ | `explicitTypes` | Opt-in (`true` or per-rule toggles). Enables `consistent-type-assertions`, `consistent-type-imports`, `explicit-module-boundary-types`, and `explicit-function-return-type`. Default off. For React apps, prefer `@kristijorgji/eslint-config-react-typescript`, which by default turns `explicit-function-return-type` off for `.tsx`/`.jsx` when that rule is enabled (`jsxExplicitFunctionReturnType: true` keeps it on). For non-React presets, pass `functionReturnType: false` or add a file-scoped override if you want the same relaxation. |
40
40
 
41
41
  ### Migration from hand-rolled configs
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kristijorgji/eslint-config-typescript",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Flat ESLint TypeScript config factory built on @kristijorgji/eslint-plugin",
5
5
  "type": "module",
6
6
  "license": "MIT",