@tucchi-/eslint-config 1.1.0 → 1.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.
Files changed (2) hide show
  1. package/index.js +2 -8
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -3,14 +3,7 @@ import tseslint from "typescript-eslint";
3
3
  import unicorn from "eslint-plugin-unicorn";
4
4
  import globals from "globals";
5
5
 
6
- /**
7
- * Modern ESLint config with strict TypeScript and unicorn rules
8
- * @param {Object} options
9
- * @param {string[]} [options.files] - File patterns to lint (default: ["src/**/*.ts"])
10
- * @param {string[]} [options.ignores] - Patterns to ignore
11
- * @param {number} [options.maxDepth] - Maximum nesting depth (default: 1, no nesting allowed)
12
- * @param {Object} [options.rules] - Additional rules to override
13
- */
6
+ // Modern ESLint config with strict TypeScript and unicorn rules
14
7
  export default function modernConfig(options = {}) {
15
8
  const {
16
9
  files = ["src/**/*.ts", "**/*.ts"],
@@ -39,6 +32,7 @@ export default function modernConfig(options = {}) {
39
32
 
40
33
  // Function style
41
34
  "func-style": ["error", "expression"], // arrow function > function
35
+ "no-ternary": "error", // if/else > ternary
42
36
 
43
37
  // Complexity
44
38
  "max-depth": ["error", maxDepth],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tucchi-/eslint-config",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Modern ESLint config with TypeScript strict, unicorn, and complexity rules",
5
5
  "author": "tucchi-",
6
6
  "license": "MIT",
@@ -31,5 +31,4 @@
31
31
  "globals": "^15.0.0 || ^16.0.0 || ^17.0.0",
32
32
  "typescript": "^5.0.0",
33
33
  "typescript-eslint": "^8.0.0"
34
- }
35
- }
34
+ }}