@vinicunca/eslint-config 2.6.0 → 2.6.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.
- package/dist/index.cjs +11 -2
- package/dist/index.d.cts +253 -189
- package/dist/index.d.ts +253 -189
- package/dist/index.js +11 -2
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -968,6 +968,8 @@ async function stylistic(options = {}) {
|
|
|
968
968
|
},
|
|
969
969
|
rules: {
|
|
970
970
|
...config.rules,
|
|
971
|
+
"antfu/consistent-list-newline": "error",
|
|
972
|
+
"antfu/top-level-function": "error",
|
|
971
973
|
"curly": [ERROR, "all"],
|
|
972
974
|
"style/array-bracket-newline": [ERROR, CONSISTENT],
|
|
973
975
|
"style/array-bracket-spacing": [ERROR, NEVER],
|
|
@@ -2186,9 +2188,16 @@ async function typescript(options = {}) {
|
|
|
2186
2188
|
// Temporary turning it off due to performance
|
|
2187
2189
|
"ts/no-misused-promises": OFF,
|
|
2188
2190
|
"ts/no-throw-literal": ERROR,
|
|
2191
|
+
"ts/no-unnecessary-type-assertion": ERROR,
|
|
2192
|
+
"ts/no-unsafe-argument": ERROR,
|
|
2193
|
+
"ts/no-unsafe-assignment": ERROR,
|
|
2194
|
+
"ts/no-unsafe-call": ERROR,
|
|
2195
|
+
"ts/no-unsafe-member-access": ERROR,
|
|
2196
|
+
"ts/no-unsafe-return": ERROR,
|
|
2189
2197
|
"ts/restrict-plus-operands": ERROR,
|
|
2190
2198
|
"ts/restrict-template-expressions": ERROR,
|
|
2191
|
-
"ts/strict-boolean-expressions":
|
|
2199
|
+
"ts/strict-boolean-expressions": ERROR,
|
|
2200
|
+
"ts/unbound-method": ERROR
|
|
2192
2201
|
};
|
|
2193
2202
|
const [
|
|
2194
2203
|
pluginTs,
|
|
@@ -2258,7 +2267,7 @@ async function typescript(options = {}) {
|
|
|
2258
2267
|
"ts/explicit-member-accessibility": OFF,
|
|
2259
2268
|
"ts/explicit-module-boundary-types": OFF,
|
|
2260
2269
|
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
|
|
2261
|
-
"ts/method-signature-style": [
|
|
2270
|
+
"ts/method-signature-style": [ERROR, "property"],
|
|
2262
2271
|
"ts/naming-convention": OFF,
|
|
2263
2272
|
"ts/no-dupe-class-members": ERROR,
|
|
2264
2273
|
"ts/no-empty-function": OFF,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.2",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -58,34 +58,34 @@
|
|
|
58
58
|
"eslint": ">=8.57.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@stylistic/eslint-plugin": "^2.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
63
|
-
"@typescript-eslint/parser": "^7.
|
|
64
|
-
"@unocss/eslint-plugin": "^0.
|
|
61
|
+
"@stylistic/eslint-plugin": "^2.3.0",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
63
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
64
|
+
"@unocss/eslint-plugin": "^0.61.2",
|
|
65
65
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
66
66
|
"eslint-flat-config-utils": "^0.2.5",
|
|
67
67
|
"eslint-merge-processors": "^0.1.0",
|
|
68
|
-
"eslint-plugin-antfu": "^2.3.
|
|
68
|
+
"eslint-plugin-antfu": "^2.3.4",
|
|
69
69
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
70
|
-
"eslint-plugin-format": "^0.1.
|
|
71
|
-
"eslint-plugin-import-x": "^0.5.
|
|
72
|
-
"eslint-plugin-jsdoc": "^48.2
|
|
70
|
+
"eslint-plugin-format": "^0.1.2",
|
|
71
|
+
"eslint-plugin-import-x": "^0.5.3",
|
|
72
|
+
"eslint-plugin-jsdoc": "^48.5.2",
|
|
73
73
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
74
74
|
"eslint-plugin-markdown": "^5.0.0",
|
|
75
|
-
"eslint-plugin-n": "^17.
|
|
75
|
+
"eslint-plugin-n": "^17.9.0",
|
|
76
76
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
77
|
-
"eslint-plugin-perfectionist": "^2.
|
|
78
|
-
"eslint-plugin-react": "^7.34.
|
|
77
|
+
"eslint-plugin-perfectionist": "^2.11.0",
|
|
78
|
+
"eslint-plugin-react": "^7.34.3",
|
|
79
79
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
80
80
|
"eslint-plugin-regexp": "^2.6.0",
|
|
81
81
|
"eslint-plugin-sonarjs": "^1.0.3",
|
|
82
|
-
"eslint-plugin-unicorn": "^
|
|
82
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
83
83
|
"eslint-plugin-unused-imports": "^4.0.0",
|
|
84
84
|
"eslint-plugin-vitest": "^0.5.4",
|
|
85
|
-
"eslint-plugin-vue": "^9.
|
|
85
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
86
86
|
"eslint-plugin-yml": "^1.14.0",
|
|
87
87
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
88
|
-
"globals": "^15.
|
|
88
|
+
"globals": "^15.8.0",
|
|
89
89
|
"jsonc-eslint-parser": "^2.4.0",
|
|
90
90
|
"local-pkg": "^0.5.0",
|
|
91
91
|
"vue-eslint-parser": "^9.4.3",
|
|
@@ -95,12 +95,12 @@
|
|
|
95
95
|
"@types/eslint": "^8.56.10",
|
|
96
96
|
"@types/fs-extra": "^11.0.4",
|
|
97
97
|
"eslint-typegen": "^0.2.4",
|
|
98
|
-
"execa": "^9.
|
|
98
|
+
"execa": "^9.3.0",
|
|
99
99
|
"fast-glob": "^3.3.2",
|
|
100
100
|
"fs-extra": "^11.2.0",
|
|
101
101
|
"react": "^18.3.1",
|
|
102
|
-
"tsup": "^8.0
|
|
103
|
-
"vue": "^3.4.
|
|
102
|
+
"tsup": "^8.1.0",
|
|
103
|
+
"vue": "^3.4.31"
|
|
104
104
|
},
|
|
105
105
|
"scripts": {
|
|
106
106
|
"lint": "eslint -v",
|