@pawover/eslint-rules 0.0.0-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 pawover
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # pawover-eslint-rules
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@pawover/eslint-rules",
3
+ "author": "pawover<pawover@outlook.com>",
4
+ "description": "pawover's esLint rules",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "version": "0.0.0-alpha.1",
8
+ "engines": {
9
+ "node": ">=22.20.0"
10
+ },
11
+ "keywords": [
12
+ "pawover",
13
+ "pawover-eslint",
14
+ "pawover-eslint-rules"
15
+ ],
16
+ "main": "./src/index.js",
17
+ "module": "./src/index.js",
18
+ "files": [
19
+ "./src/preset.js"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "import": "./src/index.js",
24
+ "default": "./src/index.js"
25
+ },
26
+ "./src/*": {
27
+ "import": "./src/*.js",
28
+ "default": "./src/*.js"
29
+ }
30
+ },
31
+ "scripts": {
32
+ "check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
33
+ "check:types": "tsc --noEmit",
34
+ "check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=eslint.cache.json --cache",
35
+ "check:format": "prettier --write \"**/*.{html,json}\" !.vscode/settings.json --cache-location=prettier.cache.json --cache",
36
+ "clean": "pnpm clean:cache & pnpm clean:lib",
37
+ "clean:cache": "rimraf -g **/*.cache.json **/auto-*.json **/auto-*.d.ts",
38
+ "clean:lib": "rimraf -g **/node_modules",
39
+ "lib:up": "taze -I -r --exclude pnpm"
40
+ },
41
+ "devDependencies": {
42
+ "@eslint-react/eslint-plugin": "^2.3.5",
43
+ "@stylistic/eslint-plugin": "^5.5.0",
44
+ "eslint": "^9.39.1",
45
+ "eslint-plugin-antfu": "^3.1.1",
46
+ "eslint-plugin-react-hooks": "^7.0.1",
47
+ "eslint-plugin-vue": "^10.5.1",
48
+ "globals": "^16.5.0",
49
+ "prettier": "^3.6.2",
50
+ "rimraf": "^6.1.0",
51
+ "taze": "^19.9.0",
52
+ "typescript": "^5.9.3",
53
+ "typescript-eslint": "^8.46.4"
54
+ },
55
+ "peerDependencies": {
56
+ "@eslint-react/eslint-plugin": "^2.3.5",
57
+ "@stylistic/eslint-plugin": "^5.5.0",
58
+ "eslint": "^9.39.1",
59
+ "eslint-plugin-antfu": "^3.1.1",
60
+ "eslint-plugin-react-hooks": "^7.0.1",
61
+ "eslint-plugin-vue": "^10.5.1",
62
+ "globals": "^16.5.0",
63
+ "typescript": "^5.9.3",
64
+ "typescript-eslint": "^8.46.4"
65
+ },
66
+ "peerDependenciesMeta": {
67
+ "@eslint-react/eslint-plugin": {
68
+ "optional": true
69
+ },
70
+ "@stylistic/eslint-plugin": {
71
+ "optional": true
72
+ },
73
+ "eslint-plugin-antfu": {
74
+ "optional": true
75
+ },
76
+ "eslint-plugin-react-hooks": {
77
+ "optional": true
78
+ },
79
+ "eslint-plugin-vue": {
80
+ "optional": true
81
+ },
82
+ "globals": {
83
+ "optional": true
84
+ },
85
+ "typescript": {
86
+ "optional": true
87
+ },
88
+ "typescript-eslint": {
89
+ "optional": true
90
+ }
91
+ }
92
+ }
package/src/preset.js ADDED
@@ -0,0 +1,86 @@
1
+ export default {
2
+ indent: 2,
3
+ tsMemberOrder: [
4
+ "signature",
5
+ "call-signature",
6
+ "public-static-get",
7
+ "public-static-set",
8
+ "protected-static-get",
9
+ "protected-static-set",
10
+ "private-static-get",
11
+ "private-static-set",
12
+ "#private-static-get",
13
+ "#private-static-set",
14
+ "static-get",
15
+ "static-set",
16
+ "public-static-field",
17
+ "protected-static-field",
18
+ "private-static-field",
19
+ "#private-static-field",
20
+ "static-field",
21
+ "public-static-method",
22
+ "protected-static-method",
23
+ "private-static-method",
24
+ "#private-static-method",
25
+ "static-method",
26
+ "static-initialization",
27
+ "public-constructor",
28
+ "protected-constructor",
29
+ "private-constructor",
30
+ "constructor",
31
+ "public-decorated-get",
32
+ "public-decorated-set",
33
+ "protected-decorated-get",
34
+ "protected-decorated-set",
35
+ "private-decorated-get",
36
+ "private-decorated-set",
37
+ "public-instance-get",
38
+ "public-instance-set",
39
+ "protected-instance-get",
40
+ "protected-instance-set",
41
+ "private-instance-get",
42
+ "private-instance-set",
43
+ "#private-instance-get",
44
+ "#private-instance-set",
45
+ "public-abstract-get",
46
+ "public-abstract-set",
47
+ "protected-abstract-get",
48
+ "protected-abstract-set",
49
+ "public-get",
50
+ "public-set",
51
+ "protected-get",
52
+ "protected-set",
53
+ "private-get",
54
+ "private-set",
55
+ "#private-get",
56
+ "#private-set",
57
+ "instance-get",
58
+ "instance-set",
59
+ "abstract-get",
60
+ "abstract-set",
61
+ "decorated-get",
62
+ "decorated-set",
63
+ "get",
64
+ "set",
65
+ "public-instance-field",
66
+ "protected-instance-field",
67
+ "private-instance-field",
68
+ "#private-instance-field",
69
+ "instance-field",
70
+ "public-field",
71
+ "protected-field",
72
+ "private-field",
73
+ "#private-field",
74
+ "field",
75
+ "public-instance-method",
76
+ "protected-instance-method",
77
+ "private-instance-method",
78
+ "#private-instance-method",
79
+ "instance-method",
80
+ "public-method",
81
+ "protected-method",
82
+ "private-method",
83
+ "#private-method",
84
+ "method",
85
+ ],
86
+ };