@tucchi-/eslint-config 1.1.1 → 1.3.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/index.js +6 -0
- package/package.json +2 -6
package/index.js
CHANGED
|
@@ -29,9 +29,15 @@ export default function modernConfig(options = {}) {
|
|
|
29
29
|
// TypeScript
|
|
30
30
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
31
31
|
"@typescript-eslint/consistent-type-definitions": ["error", "type"], // type > interface
|
|
32
|
+
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }], // no type assertions
|
|
33
|
+
|
|
34
|
+
// Variable declarations
|
|
35
|
+
"prefer-const": "error", // const > let
|
|
36
|
+
"no-var": "error", // no var
|
|
32
37
|
|
|
33
38
|
// Function style
|
|
34
39
|
"func-style": ["error", "expression"], // arrow function > function
|
|
40
|
+
"no-ternary": "error", // if/else > ternary
|
|
35
41
|
|
|
36
42
|
// Complexity
|
|
37
43
|
"max-depth": ["error", maxDepth],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tucchi-/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Modern ESLint config with TypeScript strict, unicorn, and complexity rules",
|
|
5
5
|
"author": "tucchi-",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,8 +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
|
-
"devDependencies": {
|
|
36
|
-
"@tucchi-/eslint-config": "file:tucchi--eslint-config-1.1.0.tgz"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
34
|
+
}}
|