@bigbinary/eslint-plugin-neeto 1.0.11 → 1.0.12
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/README.md +63 -39
- package/dist/index.js +1436 -561
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ neeto.
|
|
|
8
8
|
Install the plugin from npm:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
yarn add -D "@bigbinary/eslint-plugin-neeto@1.0.
|
|
11
|
+
yarn add -D "@bigbinary/eslint-plugin-neeto@1.0.12"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
In your eslintrc.js file, add `neeto` in the `plugins` list and add the required
|
|
@@ -30,6 +30,7 @@ module.exports = {
|
|
|
30
30
|
|
|
31
31
|
## Exported rules
|
|
32
32
|
|
|
33
|
+
- [neetocommons-tips](./docs/src/rules/neetocommons-tips.md)
|
|
33
34
|
- [api-connector-name-should-match-filename](./docs/src/rules/api-connector-name-should-match-filename.md)
|
|
34
35
|
- [api-connector-should-use-default-export](./docs/src/rules/api-connector-should-use-default-export.md)
|
|
35
36
|
- [combine-multiple-independent-awaits](./docs/src/rules/combine-multiple-independent-awaits.md)
|
|
@@ -106,44 +107,67 @@ yarn test
|
|
|
106
107
|
To run a specific test and for TDD, follow this video:
|
|
107
108
|
https://vimeo.com/723326900/785d6fe167
|
|
108
109
|
|
|
109
|
-
## Building and releasing
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
114
|
-
from master branch.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
and
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
110
|
+
## Building and releasing
|
|
111
|
+
|
|
112
|
+
Follow these steps to create a new release:
|
|
113
|
+
|
|
114
|
+
- Before starting work on the new release, create a branch with the next release
|
|
115
|
+
version as its name (`1.X.Y`) from master branch.
|
|
116
|
+
|
|
117
|
+
- Update the version of the package in [README.md](README.md) and
|
|
118
|
+
[package.json](package.json), and commit the changes in the branch that was
|
|
119
|
+
created in the previous step.
|
|
120
|
+
|
|
121
|
+
- Create a draft PR of this branch targeting `master` and start working on the
|
|
122
|
+
new release.
|
|
123
|
+
|
|
124
|
+
Whenever a PR is merged to `master`, `bot-bigbinary` will auto-merge those
|
|
125
|
+
changes to this PR as well. This way the branch will stay in sync with
|
|
126
|
+
`master`.
|
|
127
|
+
|
|
128
|
+
- Add a checklist to the PR `1.X.Y` whenever a new change is auto-added to it
|
|
129
|
+
(when another feature PR is merged). The checklist will be helpful during
|
|
130
|
+
deployment and while writing migration guides.
|
|
131
|
+
|
|
132
|
+
- Test the new release using in all the repos using `yalc`. The usage of `yalc`
|
|
133
|
+
is explained in [this video](https://vimeo.com/722958162/9e931b640c).
|
|
134
|
+
|
|
135
|
+
- In case there is any problem during the test, like any missed edge cases, fix
|
|
136
|
+
the problem and run the following to install the latest changes:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
yalc push
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
- Once all the PRs are created and all issues are rectified, mark the draft PR
|
|
143
|
+
we created for the release as ready and get it merged.
|
|
144
|
+
|
|
145
|
+
- Create a
|
|
133
146
|
[new github release](https://github.com/bigbinary/eslint-plugin-neeto/releases/new)
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
with the following details:
|
|
148
|
+
|
|
149
|
+
Tag name: `1.X.Y` (use `Create new tag on publish` option)
|
|
150
|
+
|
|
151
|
+
Target: `master`
|
|
152
|
+
|
|
153
|
+
Release Title: `v1.X.Y`
|
|
154
|
+
|
|
155
|
+
Click on `Generate release notes` for filling in the description.
|
|
156
|
+
|
|
138
157
|
- Whenever a new release is created with a new version number, the github
|
|
139
158
|
actions will automatically publish the built package to npm.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
159
|
+
|
|
160
|
+
- Immediately open another branch with the next version (`1.X.Y`) so that the
|
|
161
|
+
cycle can continue.
|
|
162
|
+
|
|
163
|
+
- Now run the following commands to replace the `yalc` based package with our
|
|
164
|
+
new release from npm:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
yalc remove @bigbinary/eslint-plugin-neeto
|
|
168
|
+
yarn add -D @bigbinary/eslint-plugin-neeto@1.X.Y
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
You might be able to slightly tweak
|
|
172
|
+
[this script](https://gist.github.com/jagannathBhat/42a584748d97fe134f0abadb191ef29a)
|
|
173
|
+
to get the job done.
|