@infernodesign/eslint-config 1.2.4 → 1.3.1
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/cli.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +51 -46
- package/package.json +2 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -17932,7 +17932,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
17932
17932
|
onlyEquality?: boolean;
|
|
17933
17933
|
}];
|
|
17934
17934
|
// Names of all the configs
|
|
17935
|
-
type ConfigNames = 'inferno/astro/setup' | 'inferno/astro/rules' | 'inferno/eslint-comments/rules' | 'inferno/formatter/setup' | 'inferno/imports/rules' | 'inferno/javascript/setup' | 'inferno/javascript/rules' | 'inferno/jsx/setup' | 'inferno/jsdoc/rules' | 'inferno/jsonc/setup' | 'inferno/jsonc/rules' | 'inferno/markdown/setup' | 'inferno/markdown/processor' | 'inferno/markdown/parser' | 'inferno/markdown/disables' | 'inferno/node/rules' | 'inferno/perfectionist/setup' | 'inferno/nextjs/setup' | 'inferno/nextjs/rules' | 'inferno/react/setup' | 'inferno/react/rules' | 'inferno/solid/setup' | 'inferno/solid/rules' | 'config/storybook/setup' | 'inferno/sort/package-json' | 'inferno/stylistic/rules' | 'inferno/svelte/setup' | 'inferno/svelte/rules' | 'inferno/test/setup' | 'inferno/test/rules' | 'inferno/toml/setup' | 'inferno/toml/rules' | 'inferno/regexp/rules' | 'inferno/typescript/setup' | 'inferno/typescript/parser' | 'inferno/typescript/rules' | 'inferno/unicorn/rules' | 'inferno/unocss' | 'inferno/vue/setup' | 'inferno/vue/rules' | 'inferno/yaml/setup' | 'inferno/yaml/rules' | 'inferno/yaml/pnpm-workspace';
|
|
17935
|
+
type ConfigNames = 'inferno/astro/setup' | 'inferno/astro/rules' | 'inferno/eslint-comments/rules' | 'inferno/formatter/setup' | 'inferno/imports/rules' | 'inferno/javascript/setup' | 'inferno/javascript/rules' | 'inferno/jsx/setup' | 'inferno/jsdoc/rules' | 'inferno/jsonc/setup' | 'inferno/jsonc/rules' | 'inferno/markdown/setup' | 'inferno/markdown/processor' | 'inferno/markdown/parser' | 'inferno/markdown/rules' | 'inferno/markdown/disables' | 'inferno/node/rules' | 'inferno/perfectionist/setup' | 'inferno/nextjs/setup' | 'inferno/nextjs/rules' | 'inferno/react/setup' | 'inferno/react/rules' | 'inferno/solid/setup' | 'inferno/solid/rules' | 'config/storybook/setup' | 'inferno/sort/package-json' | 'inferno/stylistic/rules' | 'inferno/svelte/setup' | 'inferno/svelte/rules' | 'inferno/test/setup' | 'inferno/test/rules' | 'inferno/toml/setup' | 'inferno/toml/rules' | 'inferno/regexp/rules' | 'inferno/typescript/setup' | 'inferno/typescript/parser' | 'inferno/typescript/rules' | 'inferno/unicorn/rules' | 'inferno/unocss' | 'inferno/vue/setup' | 'inferno/vue/rules' | 'inferno/yaml/setup' | 'inferno/yaml/rules' | 'inferno/yaml/pnpm-workspace';
|
|
17936
17936
|
//#endregion
|
|
17937
17937
|
//#region src/vendor/prettier-types.d.ts
|
|
17938
17938
|
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
package/dist/index.js
CHANGED
|
@@ -409,6 +409,7 @@ async function stylistic(options = {}) {
|
|
|
409
409
|
"style/multiline-ternary": "off",
|
|
410
410
|
"style/no-mixed-spaces-and-tabs": "error",
|
|
411
411
|
"style/no-multi-spaces": ["error", { ignoreEOLComments: true }],
|
|
412
|
+
"style/no-trailing-spaces": ["error", { skipBlankLines: true }],
|
|
412
413
|
"style/object-curly-spacing": ["error", "always"],
|
|
413
414
|
"style/quotes": [
|
|
414
415
|
"error",
|
|
@@ -1034,6 +1035,11 @@ async function markdown(options = {}) {
|
|
|
1034
1035
|
languageOptions: { parser: parserPlain },
|
|
1035
1036
|
name: "inferno/markdown/parser"
|
|
1036
1037
|
},
|
|
1038
|
+
{
|
|
1039
|
+
files,
|
|
1040
|
+
name: "inferno/markdown/rules",
|
|
1041
|
+
rules: { "style/no-trailing-spaces": "off" }
|
|
1042
|
+
},
|
|
1037
1043
|
{
|
|
1038
1044
|
files: [GLOB_MARKDOWN_CODE, ...componentExts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`)],
|
|
1039
1045
|
languageOptions: { parserOptions: { ecmaFeatures: { impliedStrict: true } } },
|
|
@@ -1052,7 +1058,6 @@ async function markdown(options = {}) {
|
|
|
1052
1058
|
"node/prefer-global/process": "off",
|
|
1053
1059
|
"style/comma-dangle": "off",
|
|
1054
1060
|
"style/eol-last": "off",
|
|
1055
|
-
"style/no-trailing-spaces": "off",
|
|
1056
1061
|
"style/padding-line-between-statements": "off",
|
|
1057
1062
|
"ts/consistent-type-imports": "off",
|
|
1058
1063
|
"ts/explicit-function-return-type": "off",
|
|
@@ -1285,46 +1290,6 @@ async function react(options = {}) {
|
|
|
1285
1290
|
},
|
|
1286
1291
|
name: "inferno/react/rules",
|
|
1287
1292
|
rules: {
|
|
1288
|
-
"react/jsx-no-comment-textnodes": "warn",
|
|
1289
|
-
"react/jsx-no-duplicate-props": "warn",
|
|
1290
|
-
"react/jsx-uses-vars": "warn",
|
|
1291
|
-
"react/no-access-state-in-setstate": "error",
|
|
1292
|
-
"react/no-array-index-key": "warn",
|
|
1293
|
-
"react/no-children-count": "warn",
|
|
1294
|
-
"react/no-children-for-each": "warn",
|
|
1295
|
-
"react/no-children-map": "warn",
|
|
1296
|
-
"react/no-children-only": "warn",
|
|
1297
|
-
"react/no-children-to-array": "warn",
|
|
1298
|
-
"react/no-clone-element": "warn",
|
|
1299
|
-
"react/no-component-will-mount": "error",
|
|
1300
|
-
"react/no-component-will-receive-props": "error",
|
|
1301
|
-
"react/no-component-will-update": "error",
|
|
1302
|
-
"react/no-context-provider": "warn",
|
|
1303
|
-
"react/no-create-ref": "error",
|
|
1304
|
-
"react/no-default-props": "error",
|
|
1305
|
-
"react/no-direct-mutation-state": "error",
|
|
1306
|
-
"react/no-duplicate-key": "warn",
|
|
1307
|
-
"react/no-forward-ref": "warn",
|
|
1308
|
-
"react/no-implicit-key": "warn",
|
|
1309
|
-
"react/no-missing-key": "error",
|
|
1310
|
-
"react/no-nested-component-definitions": "error",
|
|
1311
|
-
"react/no-prop-types": "error",
|
|
1312
|
-
"react/no-redundant-should-component-update": "error",
|
|
1313
|
-
"react/no-set-state-in-component-did-mount": "warn",
|
|
1314
|
-
"react/no-set-state-in-component-did-update": "warn",
|
|
1315
|
-
"react/no-set-state-in-component-will-update": "warn",
|
|
1316
|
-
"react/no-string-refs": "error",
|
|
1317
|
-
"react/no-unnecessary-use-prefix": "warn",
|
|
1318
|
-
"react/no-unsafe-component-will-mount": "warn",
|
|
1319
|
-
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1320
|
-
"react/no-unsafe-component-will-update": "warn",
|
|
1321
|
-
"react/no-unstable-context-value": "warn",
|
|
1322
|
-
"react/no-unstable-default-props": "warn",
|
|
1323
|
-
"react/no-unused-class-component-members": "warn",
|
|
1324
|
-
"react/no-unused-state": "warn",
|
|
1325
|
-
"react/no-use-context": "warn",
|
|
1326
|
-
"react/no-useless-forward-ref": "warn",
|
|
1327
|
-
"react/prefer-use-state-lazy-initialization": "warn",
|
|
1328
1293
|
"react-dom/no-dangerously-set-innerhtml": "warn",
|
|
1329
1294
|
"react-dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
1330
1295
|
"react-dom/no-find-dom-node": "error",
|
|
@@ -1340,13 +1305,9 @@ async function react(options = {}) {
|
|
|
1340
1305
|
"react-dom/no-unsafe-target-blank": "warn",
|
|
1341
1306
|
"react-dom/no-use-form-state": "error",
|
|
1342
1307
|
"react-dom/no-void-elements-with-children": "error",
|
|
1308
|
+
"react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
1343
1309
|
"react-hooks/exhaustive-deps": "warn",
|
|
1344
1310
|
"react-hooks/rules-of-hooks": "error",
|
|
1345
|
-
"react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
1346
|
-
"react-web-api/no-leaked-event-listener": "warn",
|
|
1347
|
-
"react-web-api/no-leaked-interval": "warn",
|
|
1348
|
-
"react-web-api/no-leaked-resize-observer": "warn",
|
|
1349
|
-
"react-web-api/no-leaked-timeout": "warn",
|
|
1350
1311
|
"react-refresh/only-export-components": ["warn", {
|
|
1351
1312
|
allowConstantExport: isAllowConstantExport,
|
|
1352
1313
|
allowExportNames: [...isUsingNext ? [
|
|
@@ -1375,6 +1336,50 @@ async function react(options = {}) {
|
|
|
1375
1336
|
"shouldRevalidate"
|
|
1376
1337
|
] : []]
|
|
1377
1338
|
}],
|
|
1339
|
+
"react-web-api/no-leaked-event-listener": "warn",
|
|
1340
|
+
"react-web-api/no-leaked-interval": "warn",
|
|
1341
|
+
"react-web-api/no-leaked-resize-observer": "warn",
|
|
1342
|
+
"react-web-api/no-leaked-timeout": "warn",
|
|
1343
|
+
"react/jsx-no-comment-textnodes": "warn",
|
|
1344
|
+
"react/jsx-no-duplicate-props": "warn",
|
|
1345
|
+
"react/jsx-uses-vars": "warn",
|
|
1346
|
+
"react/no-access-state-in-setstate": "error",
|
|
1347
|
+
"react/no-array-index-key": "warn",
|
|
1348
|
+
"react/no-children-count": "warn",
|
|
1349
|
+
"react/no-children-for-each": "warn",
|
|
1350
|
+
"react/no-children-map": "warn",
|
|
1351
|
+
"react/no-children-only": "warn",
|
|
1352
|
+
"react/no-children-to-array": "warn",
|
|
1353
|
+
"react/no-clone-element": "warn",
|
|
1354
|
+
"react/no-component-will-mount": "error",
|
|
1355
|
+
"react/no-component-will-receive-props": "error",
|
|
1356
|
+
"react/no-component-will-update": "error",
|
|
1357
|
+
"react/no-context-provider": "warn",
|
|
1358
|
+
"react/no-create-ref": "error",
|
|
1359
|
+
"react/no-default-props": "error",
|
|
1360
|
+
"react/no-direct-mutation-state": "error",
|
|
1361
|
+
"react/no-duplicate-key": "warn",
|
|
1362
|
+
"react/no-forward-ref": "warn",
|
|
1363
|
+
"react/no-implicit-key": "warn",
|
|
1364
|
+
"react/no-missing-key": "error",
|
|
1365
|
+
"react/no-nested-component-definitions": "error",
|
|
1366
|
+
"react/no-prop-types": "error",
|
|
1367
|
+
"react/no-redundant-should-component-update": "error",
|
|
1368
|
+
"react/no-set-state-in-component-did-mount": "warn",
|
|
1369
|
+
"react/no-set-state-in-component-did-update": "warn",
|
|
1370
|
+
"react/no-set-state-in-component-will-update": "warn",
|
|
1371
|
+
"react/no-string-refs": "error",
|
|
1372
|
+
"react/no-unnecessary-use-prefix": "warn",
|
|
1373
|
+
"react/no-unsafe-component-will-mount": "warn",
|
|
1374
|
+
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1375
|
+
"react/no-unsafe-component-will-update": "warn",
|
|
1376
|
+
"react/no-unstable-context-value": "warn",
|
|
1377
|
+
"react/no-unstable-default-props": "warn",
|
|
1378
|
+
"react/no-unused-class-component-members": "warn",
|
|
1379
|
+
"react/no-unused-state": "warn",
|
|
1380
|
+
"react/no-use-context": "warn",
|
|
1381
|
+
"react/no-useless-forward-ref": "warn",
|
|
1382
|
+
"react/prefer-use-state-lazy-initialization": "warn",
|
|
1378
1383
|
...overrides
|
|
1379
1384
|
}
|
|
1380
1385
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infernodesign/eslint-config",
|
|
3
3
|
"description": "ESLint config for Inferno Design.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -187,6 +187,7 @@
|
|
|
187
187
|
"build:inspect": "pnpm run build && pnpx @eslint/config-inspector build",
|
|
188
188
|
"dev": "tsdown --watch",
|
|
189
189
|
"gen": "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
190
|
+
"lint": "eslint . --cache --cache-location node_modules/.cache/.eslintcache",
|
|
190
191
|
"test": "vitest",
|
|
191
192
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
|
|
192
193
|
}
|