@vinicunca/eslint-config 3.7.3 → 3.8.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/dist/index.js +38 -17
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
1
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.4.0/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
|
|
2
2
|
function r(o) {
|
|
3
3
|
if (typeof o != "object" || o === null) return false;
|
|
4
4
|
let e3 = Object.getPrototypeOf(o);
|
|
5
5
|
return e3 === null || e3 === Object.prototype;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
8
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.4.0/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
|
|
9
9
|
function e(r2) {
|
|
10
10
|
return typeof r2 == "number" && !Number.isNaN(r2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
13
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.4.0/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
|
|
14
14
|
function e2(o) {
|
|
15
15
|
return typeof o == "boolean";
|
|
16
16
|
}
|
|
@@ -827,7 +827,7 @@ async function javascript(options = {}) {
|
|
|
827
827
|
"no-nested-ternary": ERROR,
|
|
828
828
|
"no-new": ERROR,
|
|
829
829
|
"no-new-func": ERROR,
|
|
830
|
-
"no-new-
|
|
830
|
+
"no-new-native-nonconstructor": ERROR,
|
|
831
831
|
"no-new-wrappers": ERROR,
|
|
832
832
|
"no-obj-calls": ERROR,
|
|
833
833
|
"no-object-constructor": ERROR,
|
|
@@ -1179,7 +1179,6 @@ async function markdown(options = {}) {
|
|
|
1179
1179
|
"ts/no-require-imports": OFF,
|
|
1180
1180
|
"ts/no-unused-vars": OFF,
|
|
1181
1181
|
"ts/no-use-before-define": OFF,
|
|
1182
|
-
"ts/no-var-requires": OFF,
|
|
1183
1182
|
"unicode-bom": OFF,
|
|
1184
1183
|
"unused-imports/no-unused-imports": OFF,
|
|
1185
1184
|
"unused-imports/no-unused-vars": OFF,
|
|
@@ -1259,6 +1258,15 @@ async function perfectionist() {
|
|
|
1259
1258
|
|
|
1260
1259
|
// src/configs/pnpm.ts
|
|
1261
1260
|
async function pnpm() {
|
|
1261
|
+
const [
|
|
1262
|
+
pluginPnpm,
|
|
1263
|
+
yamlParser,
|
|
1264
|
+
jsoncParser
|
|
1265
|
+
] = await Promise.all([
|
|
1266
|
+
interopDefault(import("eslint-plugin-pnpm")),
|
|
1267
|
+
interopDefault(import("yaml-eslint-parser")),
|
|
1268
|
+
interopDefault(import("jsonc-eslint-parser"))
|
|
1269
|
+
]);
|
|
1262
1270
|
return [
|
|
1263
1271
|
{
|
|
1264
1272
|
files: [
|
|
@@ -1266,16 +1274,30 @@ async function pnpm() {
|
|
|
1266
1274
|
"**/package.json"
|
|
1267
1275
|
],
|
|
1268
1276
|
languageOptions: {
|
|
1269
|
-
parser:
|
|
1277
|
+
parser: jsoncParser
|
|
1270
1278
|
},
|
|
1271
|
-
name: "vinicunca/pnpm/
|
|
1279
|
+
name: "vinicunca/pnpm/package.json",
|
|
1272
1280
|
plugins: {
|
|
1273
|
-
pnpm:
|
|
1281
|
+
pnpm: pluginPnpm
|
|
1274
1282
|
},
|
|
1275
1283
|
rules: {
|
|
1276
|
-
"pnpm/enforce-catalog": ERROR,
|
|
1277
|
-
"pnpm/prefer-workspace-settings": ERROR,
|
|
1278
|
-
"pnpm/valid-catalog": ERROR
|
|
1284
|
+
"pnpm/json-enforce-catalog": ERROR,
|
|
1285
|
+
"pnpm/json-prefer-workspace-settings": ERROR,
|
|
1286
|
+
"pnpm/json-valid-catalog": ERROR
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
files: ["pnpm-workspace.yaml"],
|
|
1291
|
+
languageOptions: {
|
|
1292
|
+
parser: yamlParser
|
|
1293
|
+
},
|
|
1294
|
+
name: "vinicunca/pnpm/pnpm-workspace-yaml",
|
|
1295
|
+
plugins: {
|
|
1296
|
+
pnpm: pluginPnpm
|
|
1297
|
+
},
|
|
1298
|
+
rules: {
|
|
1299
|
+
"pnpm/yaml-no-duplicate-catalog-item": ERROR,
|
|
1300
|
+
"pnpm/yaml-no-unused-catalog-item": ERROR
|
|
1279
1301
|
}
|
|
1280
1302
|
}
|
|
1281
1303
|
];
|
|
@@ -2099,7 +2121,6 @@ async function typescript(options = {}) {
|
|
|
2099
2121
|
),
|
|
2100
2122
|
"no-dupe-class-members": OFF,
|
|
2101
2123
|
"no-invalid-this": OFF,
|
|
2102
|
-
"no-loss-of-precision": OFF,
|
|
2103
2124
|
"no-redeclare": OFF,
|
|
2104
2125
|
"no-unused-vars": OFF,
|
|
2105
2126
|
"no-use-before-define": OFF,
|
|
@@ -2119,13 +2140,11 @@ async function typescript(options = {}) {
|
|
|
2119
2140
|
"ts/naming-convention": OFF,
|
|
2120
2141
|
"ts/no-dupe-class-members": ERROR,
|
|
2121
2142
|
"ts/no-empty-function": OFF,
|
|
2122
|
-
"ts/no-empty-interface": OFF,
|
|
2123
2143
|
"ts/no-empty-object-type": [ERROR, { allowInterfaces: "always" }],
|
|
2124
2144
|
"ts/no-explicit-any": OFF,
|
|
2125
2145
|
"ts/no-import-type-side-effects": ERROR,
|
|
2126
2146
|
"ts/no-invalid-this": ERROR,
|
|
2127
2147
|
"ts/no-invalid-void-type": OFF,
|
|
2128
|
-
"ts/no-loss-of-precision": ERROR,
|
|
2129
2148
|
"ts/no-non-null-assertion": OFF,
|
|
2130
2149
|
"ts/no-redeclare": ERROR,
|
|
2131
2150
|
"ts/no-require-imports": ERROR,
|
|
@@ -2137,7 +2156,6 @@ async function typescript(options = {}) {
|
|
|
2137
2156
|
}],
|
|
2138
2157
|
"ts/no-use-before-define": [ERROR, { classes: false, functions: false, variables: true }],
|
|
2139
2158
|
"ts/parameter-properties": OFF,
|
|
2140
|
-
"ts/prefer-ts-expect-error": ERROR,
|
|
2141
2159
|
"ts/triple-slash-reference": OFF,
|
|
2142
2160
|
...type === "lib" ? {
|
|
2143
2161
|
"ts/explicit-function-return-type": [ERROR, {
|
|
@@ -2179,8 +2197,7 @@ async function typescript(options = {}) {
|
|
|
2179
2197
|
files: ["**/*.js", "**/*.cjs"],
|
|
2180
2198
|
name: "vinicunca/typescript/disables/javascript",
|
|
2181
2199
|
rules: {
|
|
2182
|
-
"ts/no-require-imports": OFF
|
|
2183
|
-
"ts/no-var-requires": OFF
|
|
2200
|
+
"ts/no-require-imports": OFF
|
|
2184
2201
|
}
|
|
2185
2202
|
}
|
|
2186
2203
|
];
|
|
@@ -2500,6 +2517,10 @@ async function yaml(options = {}) {
|
|
|
2500
2517
|
"supportedArchitectures"
|
|
2501
2518
|
],
|
|
2502
2519
|
pathPattern: "^$"
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
order: { type: "asc" },
|
|
2523
|
+
pathPattern: ".*"
|
|
2503
2524
|
}
|
|
2504
2525
|
]
|
|
2505
2526
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
111
111
|
"@eslint/markdown": "^6.3.0",
|
|
112
112
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
113
|
-
"@typescript-eslint/eslint-plugin": "^8.26.
|
|
114
|
-
"@typescript-eslint/parser": "^8.26.
|
|
113
|
+
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
114
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
115
115
|
"@unocss/eslint-plugin": "^66.0.0",
|
|
116
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
116
|
+
"@vitest/eslint-plugin": "^1.1.37",
|
|
117
117
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
118
118
|
"eslint-flat-config-utils": "^2.0.1",
|
|
119
119
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -121,12 +121,12 @@
|
|
|
121
121
|
"eslint-plugin-command": "^3.1.0",
|
|
122
122
|
"eslint-plugin-format": "^1.0.1",
|
|
123
123
|
"eslint-plugin-import-x": "^4.6.1",
|
|
124
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
124
|
+
"eslint-plugin-jsdoc": "^50.6.6",
|
|
125
125
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
126
126
|
"eslint-plugin-n": "^17.16.2",
|
|
127
127
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
128
128
|
"eslint-plugin-perfectionist": "^4.10.1",
|
|
129
|
-
"eslint-plugin-pnpm": "^0.1
|
|
129
|
+
"eslint-plugin-pnpm": "^0.3.1",
|
|
130
130
|
"eslint-plugin-regexp": "^2.7.0",
|
|
131
131
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
132
132
|
"eslint-plugin-toml": "^0.12.0",
|