@maneko/eslint-config 1.0.0 → 1.1.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.cjs +0 -4
- package/dist/index.mjs +0 -4
- package/package.json +15 -6
package/dist/index.cjs
CHANGED
|
@@ -86,10 +86,6 @@ const eslint = (inputOptions = {}, ...configs) => {
|
|
|
86
86
|
if (inputOptions.react) configs.unshift({
|
|
87
87
|
name: "maneko-group/react",
|
|
88
88
|
rules: {
|
|
89
|
-
"react/function-component-definition": ["error", {
|
|
90
|
-
namedComponents: ["arrow-function"],
|
|
91
|
-
unnamedComponents: "arrow-function"
|
|
92
|
-
}],
|
|
93
89
|
"react/prop-types": "off",
|
|
94
90
|
"react/react-in-jsx-scope": "off"
|
|
95
91
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -57,10 +57,6 @@ const eslint = (inputOptions = {}, ...configs) => {
|
|
|
57
57
|
if (inputOptions.react) configs.unshift({
|
|
58
58
|
name: "maneko-group/react",
|
|
59
59
|
rules: {
|
|
60
|
-
"react/function-component-definition": ["error", {
|
|
61
|
-
namedComponents: ["arrow-function"],
|
|
62
|
-
unnamedComponents: "arrow-function"
|
|
63
|
-
}],
|
|
64
60
|
"react/prop-types": "off",
|
|
65
61
|
"react/react-in-jsx-scope": "off"
|
|
66
62
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maneko/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "Maneko Group's ESLint config",
|
|
6
6
|
"author": "Maneko Group",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,18 +38,23 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@antfu/eslint-config": "^7.6.1",
|
|
41
|
-
"eslint-flat-config-utils": "^3.0.1"
|
|
41
|
+
"eslint-flat-config-utils": "^3.0.1",
|
|
42
|
+
"jiti": "^2.6.1"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
45
|
+
"@eslint/config-inspector": "^1.4.2",
|
|
44
46
|
"@maneko/prettier-config": "^1.0.0",
|
|
45
47
|
"bumpp": "^10.3.1",
|
|
46
48
|
"eslint": "^10.0.2",
|
|
47
|
-
"husky": "^9.1.7",
|
|
48
49
|
"lint-staged": "^16.2.4",
|
|
49
50
|
"prettier": "^3.8.1",
|
|
51
|
+
"simple-git-hooks": "^2.13.1",
|
|
50
52
|
"tsdown": "0.21.0-beta.2",
|
|
51
53
|
"typescript": "^5.9.3"
|
|
52
54
|
},
|
|
55
|
+
"simple-git-hooks": {
|
|
56
|
+
"pre-commit": "pnpm lint-staged"
|
|
57
|
+
},
|
|
53
58
|
"lint-staged": {
|
|
54
59
|
"*.{js,ts}": [
|
|
55
60
|
"prettier --write",
|
|
@@ -58,8 +63,12 @@
|
|
|
58
63
|
},
|
|
59
64
|
"scripts": {
|
|
60
65
|
"build": "tsdown",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"lint
|
|
66
|
+
"watch": "tsdown --watch",
|
|
67
|
+
"dev": "eslint-config-inspector --config eslint.config.ts",
|
|
68
|
+
"lint": "eslint .",
|
|
69
|
+
"lint:fix": "eslint . --fix",
|
|
70
|
+
"format": "prettier --write .",
|
|
71
|
+
"typecheck": "tsc --noEmit",
|
|
72
|
+
"release": "bumpp"
|
|
64
73
|
}
|
|
65
74
|
}
|