@miskamyasa/eslint-config 1.0.2 → 1.0.4

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.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
+ export { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
2
3
 
3
4
  type ConfigItem = Linter.Config;
4
5
  type OptionsFormatters = {
package/dist/index.js CHANGED
@@ -385,13 +385,38 @@ function react() {
385
385
 
386
386
  // src/configs/stylistic.ts
387
387
  import stylisticPlugin from "@stylistic/eslint-plugin";
388
+ var JSX_SORT_PROPS_DEPRECATION_WARNING = '[@stylistic/eslint-plugin]: You are using deprecated rule("jsx-sort-props")';
389
+ var jsxSortPropsRule = stylisticPlugin.rules["jsx-sort-props"];
390
+ var patchedStylisticPlugin = {
391
+ ...stylisticPlugin,
392
+ rules: {
393
+ ...stylisticPlugin.rules,
394
+ "jsx-sort-props": {
395
+ ...jsxSortPropsRule,
396
+ create(context) {
397
+ const warn = console.warn;
398
+ console.warn = (...args) => {
399
+ if (typeof args[0] === "string" && args[0].startsWith(JSX_SORT_PROPS_DEPRECATION_WARNING)) {
400
+ return;
401
+ }
402
+ warn(...args);
403
+ };
404
+ try {
405
+ return jsxSortPropsRule.create(context);
406
+ } finally {
407
+ console.warn = warn;
408
+ }
409
+ }
410
+ }
411
+ }
412
+ };
388
413
  function stylistic() {
389
414
  return [
390
415
  // Plugin setup (global - registers the @stylistic plugin)
391
416
  {
392
417
  name: "miskamyasa/stylistic/setup",
393
418
  plugins: {
394
- "@stylistic": stylisticPlugin
419
+ "@stylistic": patchedStylisticPlugin
395
420
  }
396
421
  },
397
422
  // Disable legacy ESLint formatting rules - scoped to source files
@@ -555,7 +580,14 @@ function stylistic() {
555
580
  "comma-spacing": ["error", { "before": false, "after": true }],
556
581
  "no-console": ["warn", { allow: ["warn", "error"] }],
557
582
  "brace-style": ["error", "stroustrup"],
558
- "no-use-before-define": "error"
583
+ "no-use-before-define": "error",
584
+ "no-restricted-syntax": ["error", {
585
+ "selector": [
586
+ "SwitchStatement:has(SwitchCase > BlockStatement.consequent)",
587
+ "> SwitchCase:has(> *.consequent[type!='BlockStatement'])"
588
+ ].join(" "),
589
+ "message": "Switch cases must consistently use braces when any case uses braces"
590
+ }]
559
591
  }
560
592
  }
561
593
  ];
@@ -671,6 +703,10 @@ function typescript(options) {
671
703
  "@typescript-eslint/no-misused-promises": [
672
704
  "error",
673
705
  { checksVoidReturn: { attributes: false } }
706
+ ],
707
+ "@typescript-eslint/switch-exhaustiveness-check": [
708
+ "error",
709
+ { allowDefaultCaseForExhaustiveSwitch: false }
674
710
  ]
675
711
  }
676
712
  }
@@ -769,6 +805,9 @@ function createConfig(options = {}, ...userConfigs) {
769
805
  ...userConfigs
770
806
  ];
771
807
  }
808
+
809
+ // src/index.ts
810
+ import { createTypeScriptImportResolver as createTypeScriptImportResolver2 } from "eslint-import-resolver-typescript";
772
811
  export {
773
812
  GLOB_CJS,
774
813
  GLOB_CSS,
@@ -792,6 +831,7 @@ export {
792
831
  GLOB_XML,
793
832
  GLOB_YAML,
794
833
  createConfig,
834
+ createTypeScriptImportResolver2 as createTypeScriptImportResolver,
795
835
  createConfig as default,
796
836
  formatters,
797
837
  createImportsConfig as imports,
package/package.json CHANGED
@@ -1,30 +1,7 @@
1
1
  {
2
- "name": "@miskamyasa/eslint-config",
3
- "type": "module",
4
- "version": "1.0.2",
5
- "description": "Opinionated ESLint config for React + TypeScript projects",
6
- "exports": {
7
- ".": {
8
- "types": "./dist/index.d.ts",
9
- "import": "./dist/index.js"
10
- }
11
- },
12
- "types": "./dist/index.d.ts",
13
- "files": [
14
- "dist"
15
- ],
16
- "sideEffects": false,
17
- "keywords": [
18
- "eslint",
19
- "eslint-config",
20
- "typescript",
21
- "react",
22
- "stylistic"
23
- ],
24
2
  "author": "Denis <MiskaMyasa> Zaitsev",
25
- "license": "MIT",
26
- "engines": {
27
- "node": ">=22.0.0"
3
+ "bugs": {
4
+ "url": "https://github.com/Miskamyasa/eslint-config/issues"
28
5
  },
29
6
  "dependencies": {
30
7
  "@eslint-react/eslint-plugin": "2.13.0",
@@ -35,26 +12,56 @@
35
12
  "eslint-plugin-format": "2.0.1",
36
13
  "eslint-plugin-import-x": "4.16.2",
37
14
  "eslint-plugin-jsonc": "3.1.2",
38
- "eslint-plugin-react-hooks": "7.0.1",
15
+ "eslint-plugin-react-hooks": "7.1.1",
39
16
  "eslint-plugin-toml": "1.3.1",
40
17
  "eslint-plugin-unused-imports": "4.4.1",
41
- "eslint-plugin-yml": "3.3.1",
18
+ "eslint-plugin-yml": "3.3.2",
42
19
  "jsonc-eslint-parser": "3.1.0",
43
20
  "toml-eslint-parser": "1.0.3",
44
- "typescript-eslint": "8.57.0",
21
+ "typescript-eslint": "8.59.4",
45
22
  "yaml-eslint-parser": "2.0.0"
46
23
  },
24
+ "description": "Opinionated ESLint config for React + TypeScript projects",
25
+ "devDependencies": {
26
+ "@types/node": "24.12.4",
27
+ "eslint": "10.4.0",
28
+ "jiti": "2.7.0",
29
+ "tsup": "8.5.1",
30
+ "typescript": "5.9.3"
31
+ },
32
+ "exports": {
33
+ ".": {
34
+ "import": "./dist/index.js",
35
+ "types": "./dist/index.d.ts"
36
+ }
37
+ },
38
+ "files": [
39
+ "dist"
40
+ ],
41
+ "homepage": "https://github.com/Miskamyasa/eslint-config",
42
+ "keywords": [
43
+ "eslint",
44
+ "eslint-config",
45
+ "typescript",
46
+ "react",
47
+ "stylistic"
48
+ ],
49
+ "license": "MIT",
50
+ "main": "./dist/index.cjs",
51
+ "module": "./dist/index.js",
52
+ "name": "@miskamyasa/eslint-config",
47
53
  "peerDependencies": {
48
54
  "eslint": ">=9.0.0",
49
55
  "typescript": ">=5.0.0"
50
56
  },
51
- "devDependencies": {
52
- "@types/node": "25.5.0",
53
- "eslint": "10.0.3",
54
- "jiti": "2.6.1",
55
- "tsup": "8.5.1",
56
- "typescript": "5.9.3"
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+ssh://github.com/Miskamyasa/eslint-config.git"
57
60
  },
61
+ "sideEffects": false,
62
+ "type": "module",
63
+ "types": "./dist/index.d.ts",
64
+ "version": "1.0.4",
58
65
  "scripts": {
59
66
  "build": "tsup",
60
67
  "lint": "eslint .",