@ririd/eslint-config 1.2.0 → 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/index.cjs CHANGED
@@ -63,7 +63,38 @@ async function all() {
63
63
  args: "after-used",
64
64
  argsIgnorePattern: "^_"
65
65
  }
66
- ]
66
+ ],
67
+ "@stylistic/indent": ["error", 2, {
68
+ ArrayExpression: 1,
69
+ CallExpression: {
70
+ arguments: 1
71
+ },
72
+ flatTernaryExpressions: false,
73
+ FunctionDeclaration: {
74
+ body: 1,
75
+ parameters: 1
76
+ },
77
+ FunctionExpression: {
78
+ body: 1,
79
+ parameters: 1
80
+ },
81
+ ignoreComments: false,
82
+ ignoredNodes: [
83
+ "TemplateLiteral *",
84
+ "TSIntersectionType",
85
+ "TSTypeParameterInstantiation",
86
+ "FunctionExpression > .params[decorators.length > 0]",
87
+ "FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
88
+ "ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
89
+ ],
90
+ ImportDeclaration: 1,
91
+ MemberExpression: 1,
92
+ ObjectExpression: 1,
93
+ offsetTernaryExpressions: true,
94
+ outerIIFEBody: 1,
95
+ SwitchCase: 1,
96
+ VariableDeclarator: 1
97
+ }]
67
98
  }
68
99
  }
69
100
  ];
@@ -77,12 +108,9 @@ async function react() {
77
108
  files: [import_eslint_config.GLOB_JSX, import_eslint_config.GLOB_TSX],
78
109
  name: "ririd:react",
79
110
  rules: {
80
- "react/prop-types": "warn",
81
- "react/jsx-no-leaked-render": "error",
82
- "react/jsx-props-no-multi-spaces": "error",
83
- "react/no-unknown-property": "off",
84
- "react/display-name": "off",
85
- "react-refresh/only-export-components": "off"
111
+ "react-refresh/only-export-components": "off",
112
+ "react/no-clone-element": "off",
113
+ "react/no-missing-component-display-name": "off"
86
114
  }
87
115
  }
88
116
  ];
package/dist/index.js CHANGED
@@ -25,7 +25,38 @@ async function all() {
25
25
  args: "after-used",
26
26
  argsIgnorePattern: "^_"
27
27
  }
28
- ]
28
+ ],
29
+ "@stylistic/indent": ["error", 2, {
30
+ ArrayExpression: 1,
31
+ CallExpression: {
32
+ arguments: 1
33
+ },
34
+ flatTernaryExpressions: false,
35
+ FunctionDeclaration: {
36
+ body: 1,
37
+ parameters: 1
38
+ },
39
+ FunctionExpression: {
40
+ body: 1,
41
+ parameters: 1
42
+ },
43
+ ignoreComments: false,
44
+ ignoredNodes: [
45
+ "TemplateLiteral *",
46
+ "TSIntersectionType",
47
+ "TSTypeParameterInstantiation",
48
+ "FunctionExpression > .params[decorators.length > 0]",
49
+ "FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
50
+ "ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
51
+ ],
52
+ ImportDeclaration: 1,
53
+ MemberExpression: 1,
54
+ ObjectExpression: 1,
55
+ offsetTernaryExpressions: true,
56
+ outerIIFEBody: 1,
57
+ SwitchCase: 1,
58
+ VariableDeclarator: 1
59
+ }]
29
60
  }
30
61
  }
31
62
  ];
@@ -39,12 +70,9 @@ async function react() {
39
70
  files: [GLOB_JSX, GLOB_TSX],
40
71
  name: "ririd:react",
41
72
  rules: {
42
- "react/prop-types": "warn",
43
- "react/jsx-no-leaked-render": "error",
44
- "react/jsx-props-no-multi-spaces": "error",
45
- "react/no-unknown-property": "off",
46
- "react/display-name": "off",
47
- "react-refresh/only-export-components": "off"
73
+ "react-refresh/only-export-components": "off",
74
+ "react/no-clone-element": "off",
75
+ "react/no-missing-component-display-name": "off"
48
76
  }
49
77
  }
50
78
  ];
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@ririd/eslint-config",
3
3
  "type": "module",
4
- "version": "1.2.0",
5
- "packageManager": "pnpm@8.12.1",
4
+ "version": "1.3.1",
6
5
  "author": "Daydreamer Riri <Daydreamerriri@outloot.com> (https://github.com/Daydreamer-riri/)",
7
6
  "license": "MIT",
8
7
  "homepage": "https://github.com/daydreamer-riri/eslint-config",
@@ -25,28 +24,29 @@
25
24
  "eslint": ">=8.0.0"
26
25
  },
27
26
  "dependencies": {
28
- "@antfu/eslint-config": "^2.12.2",
27
+ "@antfu/eslint-config": "^2.15.0",
28
+ "@eslint-react/eslint-plugin": "^1.5.9",
29
29
  "@next/eslint-plugin-next": "^14.1.4",
30
30
  "eslint-plugin-format": "^0.1.0",
31
- "eslint-plugin-react": "^7.34.1",
32
31
  "eslint-plugin-react-hooks": "^4.6.0",
33
32
  "eslint-plugin-react-refresh": "^0.4.6"
34
33
  },
35
34
  "devDependencies": {
36
- "@types/eslint": "^8.56.6",
35
+ "@types/eslint": "^8.56.9",
37
36
  "@types/node": "20.10.4",
38
37
  "bumpp": "^9.4.0",
39
- "eslint": "^8.57.0",
38
+ "eslint": "^9.1.0",
40
39
  "rimraf": "^5.0.5",
41
40
  "tsup": "^8.0.2",
42
41
  "typescript": "^5.3.3",
43
- "@ririd/eslint-config": "1.2.0"
42
+ "@ririd/eslint-config": "1.3.1"
44
43
  },
45
44
  "scripts": {
46
45
  "build": "tsup src/index.ts --format esm,cjs --clean --dts",
47
46
  "stub": "tsup src/index.ts --format esm",
48
47
  "lint": "eslint .",
49
48
  "test": "pnpm -r run test",
50
- "release": "bumpp && pnpm publish"
49
+ "release": "bumpp && pnpm publish",
50
+ "typecheck": "tsc --noEmit"
51
51
  }
52
52
  }