@dr.edisn/eslint-plugin 1.0.1 → 1.1.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/.github/workflows/publish.yml +27 -0
- package/README.md +4 -4
- package/index.d.ts +4 -0
- package/package.json +4 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Publish Packages
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build-and-publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Check out repository
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Node.js
|
|
15
|
+
uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: 20
|
|
18
|
+
scope: '@dr.edisn'
|
|
19
|
+
registry-url: https://registry.npmjs.org
|
|
20
|
+
env:
|
|
21
|
+
NODE_AUTH_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: npm ci
|
|
25
|
+
|
|
26
|
+
- name: Publish
|
|
27
|
+
run: npm publish --access public
|
package/README.md
CHANGED
|
@@ -52,12 +52,12 @@ Require your class members to be divided with an empty line by this scheme:
|
|
|
52
52
|
|
|
53
53
|
**Example:**
|
|
54
54
|
```typescript
|
|
55
|
-
Invalid:
|
|
55
|
+
// Invalid:
|
|
56
56
|
private readonly first = 0;
|
|
57
57
|
private readonly second = 1;
|
|
58
58
|
private third = 2
|
|
59
59
|
|
|
60
|
-
Valid:
|
|
60
|
+
// Valid:
|
|
61
61
|
private readonly first = 0;
|
|
62
62
|
|
|
63
63
|
private second = 1;
|
|
@@ -76,12 +76,12 @@ Require your class members to be **readonly** ANYWAY if it isn't used:
|
|
|
76
76
|
|
|
77
77
|
**Example:**
|
|
78
78
|
```typescript
|
|
79
|
-
Invalid:
|
|
79
|
+
// Invalid:
|
|
80
80
|
private first = 0;
|
|
81
81
|
protected second = 1;
|
|
82
82
|
public third = 2
|
|
83
83
|
|
|
84
|
-
Valid:
|
|
84
|
+
// Valid:
|
|
85
85
|
private readonly first = 0;
|
|
86
86
|
protected readonly third = 2
|
|
87
87
|
public readonly fifth = 1;
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dr.edisn/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/drEdisn/eslint-plugin#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -16,5 +16,8 @@
|
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/eslint": "^9.6.1"
|
|
19
22
|
}
|
|
20
23
|
}
|