@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.
Files changed (3) hide show
  1. package/README.md +63 -39
  2. package/dist/index.js +1436 -561
  3. 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"
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
- This is how releases are managed in this repo.
112
-
113
- - We will create a branch with the next release version as its name (`1.X.Y`)
114
- from master branch.
115
- - Version in
116
- [README.md](https://github.com/bigbinary/eslint-plugin-neeto/blob/axios-autofixers/README.md#L11)
117
- and
118
- [package.json](https://github.com/bigbinary/eslint-plugin-neeto/blob/axios-autofixers/package.json#L3)
119
- will be updated to the current branch name.
120
- - From now on, we can install the plugin to neeto-applications using the version
121
- `1.X.Y`.
122
- - We will create a draft PR of this branch targeting master. This keeps the
123
- branch in sync with master branch (bot-bigbinary will auto-merge the changes).
124
- - When all features have been built, we will deploy it to all neeto-applications
125
- locally using `yalc` package manager. We won't raise PR until the deployment
126
- and verification is successfully done locally for all neeto-applications. The
127
- usage of yalc is explained in this video:
128
- https://vimeo.com/722958162/9e931b640c
129
- - In case if we notice any problem during verification, like any missed edge
130
- cases, we will fix the problem in this repo and re-run `yalc push` to install
131
- the latest changes.
132
- - Once everything is fine and the verification is complete, we will create a
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
- from `1.X.Y` branch with the exact same name for the tag (`1.X.Y`). The target
135
- branch will be kept as `1.X.Y`. This will create a tag from the latest `1.X.Y`
136
- branch and this ensures that the latest commit on that branch will remain
137
- intact even if that branch gets deleted.
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
- - Now we will squash and merge the PR `1.X.Y` to master and delete its source
141
- branch. This will delete all commits except the top one (since we have created
142
- a tag with it).
143
- - Immediately, we will open another branch with the next version (`1.X.Y`) and
144
- the cycle will continue.
145
- - Now we can run `yalc remove eslint-plugin-neeto` to remove yalc based package
146
- and run `yarn add eslint-plugin-neeto@1.X.Y` to fetch the latest changes from
147
- npm in all repos and raise PR. You might be able to slightly tweak this script
148
- to get the job done:
149
- https://gist.github.com/jagannathBhat/42a584748d97fe134f0abadb191ef29a
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.