immosquare-cleaner 0.1.34 → 0.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +2 -2
  4. data/linters/eslint.config.mjs +30 -0
  5. data/linters/rubocop-3.2.2.yml +2 -0
  6. data/node_modules/function-bind/README.md +27 -25
  7. data/node_modules/function-bind/implementation.js +12 -44
  8. data/node_modules/function-bind/package.json +14 -38
  9. data/node_modules/is-core-module/CHANGELOG.md +0 -7
  10. data/node_modules/is-core-module/index.js +2 -2
  11. data/node_modules/is-core-module/package.json +4 -4
  12. data/package.json +2 -4
  13. metadata +3 -180
  14. data/linters/eslintrc.json +0 -57
  15. data/node_modules/.bin/rimraf +0 -1
  16. data/node_modules/eslint-config-airbnb-base/CHANGELOG.md +0 -374
  17. data/node_modules/eslint-config-airbnb-base/LICENSE.md +0 -21
  18. data/node_modules/eslint-config-airbnb-base/README.md +0 -112
  19. data/node_modules/eslint-config-airbnb-base/index.js +0 -17
  20. data/node_modules/eslint-config-airbnb-base/legacy.js +0 -34
  21. data/node_modules/eslint-config-airbnb-base/node_modules/semver/LICENSE +0 -15
  22. data/node_modules/eslint-config-airbnb-base/node_modules/semver/README.md +0 -443
  23. data/node_modules/eslint-config-airbnb-base/node_modules/semver/bin/semver.js +0 -174
  24. data/node_modules/eslint-config-airbnb-base/node_modules/semver/package.json +0 -38
  25. data/node_modules/eslint-config-airbnb-base/node_modules/semver/range.bnf +0 -16
  26. data/node_modules/eslint-config-airbnb-base/node_modules/semver/semver.js +0 -1643
  27. data/node_modules/eslint-config-airbnb-base/package.json +0 -95
  28. data/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0 -408
  29. data/node_modules/eslint-config-airbnb-base/rules/errors.js +0 -179
  30. data/node_modules/eslint-config-airbnb-base/rules/es6.js +0 -185
  31. data/node_modules/eslint-config-airbnb-base/rules/imports.js +0 -273
  32. data/node_modules/eslint-config-airbnb-base/rules/node.js +0 -43
  33. data/node_modules/eslint-config-airbnb-base/rules/strict.js +0 -6
  34. data/node_modules/eslint-config-airbnb-base/rules/style.js +0 -529
  35. data/node_modules/eslint-config-airbnb-base/rules/variables.js +0 -56
  36. data/node_modules/eslint-config-airbnb-base/test/requires.js +0 -13
  37. data/node_modules/eslint-config-airbnb-base/test/test-base.js +0 -32
  38. data/node_modules/eslint-config-airbnb-base/whitespace-async.js +0 -96
  39. data/node_modules/eslint-config-airbnb-base/whitespace.js +0 -102
  40. data/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
  41. data/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
  42. data/node_modules/eslint-plugin-import/LICENSE +0 -22
  43. data/node_modules/eslint-plugin-import/README.md +0 -500
  44. data/node_modules/eslint-plugin-import/RELEASE.md +0 -54
  45. data/node_modules/eslint-plugin-import/SECURITY.md +0 -11
  46. data/node_modules/eslint-plugin-import/config/electron.js +0 -8
  47. data/node_modules/eslint-plugin-import/config/errors.js +0 -14
  48. data/node_modules/eslint-plugin-import/config/react-native.js +0 -13
  49. data/node_modules/eslint-plugin-import/config/react.js +0 -18
  50. data/node_modules/eslint-plugin-import/config/recommended.js +0 -28
  51. data/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
  52. data/node_modules/eslint-plugin-import/config/typescript.js +0 -34
  53. data/node_modules/eslint-plugin-import/config/warnings.js +0 -12
  54. data/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
  55. data/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
  56. data/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
  57. data/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
  58. data/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
  59. data/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
  60. data/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
  61. data/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
  62. data/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
  63. data/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
  64. data/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
  65. data/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
  66. data/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
  67. data/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
  68. data/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
  69. data/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
  70. data/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
  71. data/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
  72. data/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
  73. data/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
  74. data/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
  75. data/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
  76. data/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
  77. data/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
  78. data/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
  79. data/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
  80. data/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
  81. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
  82. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
  83. data/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
  84. data/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
  85. data/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
  86. data/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
  87. data/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
  88. data/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
  89. data/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
  90. data/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
  91. data/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
  92. data/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
  93. data/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
  94. data/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
  95. data/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
  96. data/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
  97. data/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
  98. data/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
  99. data/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
  100. data/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
  101. data/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
  102. data/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
  103. data/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
  104. data/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
  105. data/node_modules/eslint-plugin-import/lib/index.js +0 -71
  106. data/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
  107. data/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
  108. data/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
  109. data/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
  110. data/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
  111. data/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
  112. data/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
  113. data/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
  114. data/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
  115. data/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
  116. data/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
  117. data/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
  118. data/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
  119. data/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
  120. data/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
  121. data/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
  122. data/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
  123. data/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
  124. data/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
  125. data/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
  126. data/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
  127. data/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
  128. data/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
  129. data/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
  130. data/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
  131. data/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
  132. data/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
  133. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
  134. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
  135. data/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
  136. data/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
  137. data/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
  138. data/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
  139. data/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
  140. data/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
  141. data/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
  142. data/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
  143. data/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
  144. data/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
  145. data/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
  146. data/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
  147. data/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
  148. data/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
  149. data/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
  150. data/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
  151. data/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
  152. data/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
  153. data/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
  154. data/node_modules/eslint-plugin-import/node_modules/debug/CHANGELOG.md +0 -395
  155. data/node_modules/eslint-plugin-import/node_modules/debug/LICENSE +0 -19
  156. data/node_modules/eslint-plugin-import/node_modules/debug/README.md +0 -437
  157. data/node_modules/eslint-plugin-import/node_modules/debug/node.js +0 -1
  158. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/index.js +0 -162
  159. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/license.md +0 -21
  160. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/package.json +0 -38
  161. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/readme.md +0 -59
  162. data/node_modules/eslint-plugin-import/node_modules/debug/package.json +0 -51
  163. data/node_modules/eslint-plugin-import/node_modules/debug/src/browser.js +0 -180
  164. data/node_modules/eslint-plugin-import/node_modules/debug/src/common.js +0 -249
  165. data/node_modules/eslint-plugin-import/node_modules/debug/src/index.js +0 -12
  166. data/node_modules/eslint-plugin-import/node_modules/debug/src/node.js +0 -177
  167. data/node_modules/eslint-plugin-import/node_modules/doctrine/CHANGELOG.md +0 -94
  168. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE +0 -177
  169. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.closure-compiler +0 -202
  170. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.esprima +0 -19
  171. data/node_modules/eslint-plugin-import/node_modules/doctrine/README.md +0 -165
  172. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/doctrine.js +0 -899
  173. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/typed.js +0 -1305
  174. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/utility.js +0 -35
  175. data/node_modules/eslint-plugin-import/node_modules/doctrine/package.json +0 -57
  176. data/node_modules/eslint-plugin-import/node_modules/minimatch/LICENSE +0 -15
  177. data/node_modules/eslint-plugin-import/node_modules/minimatch/README.md +0 -230
  178. data/node_modules/eslint-plugin-import/node_modules/minimatch/minimatch.js +0 -947
  179. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  180. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  181. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  182. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  183. data/node_modules/eslint-plugin-import/node_modules/minimatch/package.json +0 -33
  184. data/node_modules/eslint-plugin-import/node_modules/semver/LICENSE +0 -15
  185. data/node_modules/eslint-plugin-import/node_modules/semver/README.md +0 -443
  186. data/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js +0 -174
  187. data/node_modules/eslint-plugin-import/node_modules/semver/package.json +0 -38
  188. data/node_modules/eslint-plugin-import/node_modules/semver/range.bnf +0 -16
  189. data/node_modules/eslint-plugin-import/node_modules/semver/semver.js +0 -1643
  190. data/node_modules/eslint-plugin-import/package.json +0 -124
  191. data/node_modules/function-bind/CHANGELOG.md +0 -136
@@ -1,84 +0,0 @@
1
- # Contributing
2
-
3
- Thanks for your interest in helping out! Here are a **few** _weird_ tricks to ~~cut your mortgage in half~~ maximize the global net efficiency of your efforts!
4
-
5
- ## TL;DR: Checklist
6
-
7
- When opening an [issue](#issues):
8
-
9
- - [ ] search open/closed issues
10
- - [ ] discuss bug/enhancement in new or old issue
11
-
12
- [PR](#prs) time:
13
-
14
- - [ ] write tests
15
- - [ ] implement feature/fix bug
16
- - [ ] update docs
17
- - [ ] make a note in change log
18
-
19
- Remember, you don't need to do it all yourself; any of these are helpful! 😎
20
-
21
- ## How to get started
22
-
23
- If you are new to `eslint`, below are a few resources that will help you to familiarize yourself with the project.
24
-
25
- - Watch [this presentation](https://www.youtube.com/watch?v=2W9tUnALrLg) to learn the fundamental concept of Abstract Syntax Trees (AST) and the way `eslint` works under the hood.
26
- - Familiarize yourself with the [AST explorer](https://astexplorer.net/) tool. Look into rules in `docs/rules`, create patterns in the rules, then analyze its AST.
27
- - Explore the blog posts on how to create a custom rule. [One blog post](https://blog.yonatan.dev/writing-a-custom-eslint-rule-to-spot-undeclared-props/). [Second blog post](https://betterprogramming.pub/creating-custom-eslint-rules-cdc579694608).
28
- - Read the official `eslint` [developer guide](https://eslint.org/docs/latest/developer-guide/architecture/).
29
-
30
- ## Issues
31
-
32
- ### Search open + closed issues for similar cases
33
-
34
- You may find an open issue that closely matches what you are thinking. You may also find a closed issue with discussion that either solves your problem or explains why we are unlikely to solve it in the near future.
35
-
36
- If you find a matching issue that is open, and marked `accepted` and/or `help wanted`, you might want to [open a PR](#prs).
37
-
38
- ### Open an issue
39
-
40
- Let's discuss your issue. Could be as simple as unclear documentation or a wonky config file.
41
- If you're suggesting a feature, it might exist and need better documentation, or it might be in process. Even given those, some discussion might be warranted to ensure the enhancement is clear.
42
-
43
- You're welcome to jump right to a PR, but without a discussion, can't make any guarantees about merging.
44
-
45
- That said: sometimes seeing the code makes the discussion clearer.😄
46
-
47
- This is a helpful contribution all by itself. Thanks!
48
-
49
- ## PRs
50
-
51
- If you would like to implement something, firstly: thanks! Community contributions are a magical thing. Like Redux or [the flux capacitor](https://youtu.be/SR5BfQ4rEqQ?t=2m25s), they make open source possible.
52
-
53
- **Working on your first Pull Request?**
54
- You can learn how from this _free_ series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
55
-
56
- Here are some things to keep in mind when working on a PR:
57
-
58
- **Trying to update an inactive Pull Request?**
59
- If a PR is open, but unfortunately the author is, for any reason, not available to apply code review fixes or rebase the source branch, then please **do not open a new PR**.
60
- Instead, paste a link to your own branch in the PR, and the maintainers can pull in your changes and update the existing PR in-place.
61
-
62
- ### Tests
63
-
64
- A PR that is just failing test cases for an existing issue is very helpful, as this can take as much time (if not more) as it takes to implement a new feature or fix a bug.
65
-
66
- If you only have enough time to write tests, fantastic! Submit away. This is a great jumping-off point for a core contributor or even another PR to continue what you've started.
67
-
68
- ### Docs
69
-
70
- For enhancements to rules, please update the docs in `docs/rules` matching the rule filename from `src/rules` or the rule description in `meta.docs.description`. Running `npm run update:eslint-docs` will update the [README.md] and rule doc header.
71
-
72
- Bugfixes may not warrant docs changes, though it's worth skimming the existing docs to see if there are any relevant caveats that need to be removed.
73
-
74
- ### Changelog
75
-
76
- Please add a quick blurb to the [**Unreleased**](./CHANGELOG.md#unreleased) section of the change log. Give yourself some credit, and please link back to the PR for future reference. This is especially helpful for resolver changes, as the resolvers are less frequently modified and published.
77
-
78
- Note also that the change log can't magically link back to Github entities (i.e. PRs, issues, users) or rules; there are a handful of footnote URL definitions at the bottom. You may need to add one or more URL if you've square-bracketed any such items.
79
-
80
- ## Code of Conduct
81
-
82
- Please familiarize yourself with the [Code of Conduct](https://github.com/import-js/.github/blob/main/CODE_OF_CONDUCT.md).
83
-
84
- [README.md]: ./README.md
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Ben Mosher
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.
22
-
@@ -1,500 +0,0 @@
1
- # eslint-plugin-import
2
-
3
- [![github actions][actions-image]][actions-url]
4
- [![travis-ci](https://travis-ci.org/import-js/eslint-plugin-import.svg?branch=main)](https://travis-ci.org/import-js/eslint-plugin-import)
5
- [![coverage][codecov-image]][codecov-url]
6
- [![win32 build status](https://ci.appveyor.com/api/projects/status/3mw2fifalmjlqf56/branch/main?svg=true)](https://ci.appveyor.com/project/import-js/eslint-plugin-import/branch/main)
7
- [![npm](https://img.shields.io/npm/v/eslint-plugin-import.svg)](https://www.npmjs.com/package/eslint-plugin-import)
8
- [![npm downloads](https://img.shields.io/npm/dt/eslint-plugin-import.svg?maxAge=2592000)](https://www.npmtrends.com/eslint-plugin-import)
9
-
10
- This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import names. All the goodness that the ES2015+ static module syntax intends to provide, marked up in your editor.
11
-
12
- **IF YOU ARE USING THIS WITH SUBLIME**: see the [bottom section](#sublimelinter-eslint) for important info.
13
-
14
- ## Rules
15
-
16
- <!-- begin auto-generated rules list -->
17
-
18
- 💼 Configurations enabled in.\
19
- ⚠️ Configurations set to warn in.\
20
- 🚫 Configurations disabled in.\
21
- ❗ Set in the `errors` configuration.\
22
- ☑️ Set in the `recommended` configuration.\
23
- ⌨️ Set in the `typescript` configuration.\
24
- 🚸 Set in the `warnings` configuration.\
25
- 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
26
- 💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
27
- ❌ Deprecated.
28
-
29
- ### Helpful warnings
30
-
31
- | Name                       | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
32
- | :--------------------------------------------------------------------- | :------------------------------------------------------------------------------------ | :--- | :---- | :- | :- | :- | :- |
33
- | [export](docs/rules/export.md) | Forbid any invalid exports, i.e. re-export of the same name. | ❗ ☑️ | | | | | |
34
- | [no-deprecated](docs/rules/no-deprecated.md) | Forbid imported names marked with `@deprecated` documentation tag. | | | | | | |
35
- | [no-empty-named-blocks](docs/rules/no-empty-named-blocks.md) | Forbid empty named import blocks. | | | | 🔧 | 💡 | |
36
- | [no-extraneous-dependencies](docs/rules/no-extraneous-dependencies.md) | Forbid the use of extraneous packages. | | | | | | |
37
- | [no-mutable-exports](docs/rules/no-mutable-exports.md) | Forbid the use of mutable exports with `var` or `let`. | | | | | | |
38
- | [no-named-as-default](docs/rules/no-named-as-default.md) | Forbid use of exported name as identifier of default export. | | ☑️ 🚸 | | | | |
39
- | [no-named-as-default-member](docs/rules/no-named-as-default-member.md) | Forbid use of exported name as property of default export. | | ☑️ 🚸 | | | | |
40
- | [no-unused-modules](docs/rules/no-unused-modules.md) | Forbid modules without exports, or exports without matching import in another module. | | | | | | |
41
-
42
- ### Module systems
43
-
44
- | Name                     | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
45
- | :----------------------------------------------------------------- | :------------------------------------------------------------------- | :- | :- | :- | :- | :- | :- |
46
- | [no-amd](docs/rules/no-amd.md) | Forbid AMD `require` and `define` calls. | | | | | | |
47
- | [no-commonjs](docs/rules/no-commonjs.md) | Forbid CommonJS `require` calls and `module.exports` or `exports.*`. | | | | | | |
48
- | [no-import-module-exports](docs/rules/no-import-module-exports.md) | Forbid import statements with CommonJS module.exports. | | | | 🔧 | | |
49
- | [no-nodejs-modules](docs/rules/no-nodejs-modules.md) | Forbid Node.js builtin modules. | | | | | | |
50
- | [unambiguous](docs/rules/unambiguous.md) | Forbid potentially ambiguous parse goal (`script` vs. `module`). | | | | | | |
51
-
52
- ### Static analysis
53
-
54
- | Name                       | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
55
- | :--------------------------------------------------------------------- | :----------------------------------------------------------------------------------- | :--- | :- | :- | :- | :- | :- |
56
- | [default](docs/rules/default.md) | Ensure a default export is present, given a default import. | ❗ ☑️ | | | | | |
57
- | [named](docs/rules/named.md) | Ensure named imports correspond to a named export in the remote file. | ❗ ☑️ | | ⌨️ | | | |
58
- | [namespace](docs/rules/namespace.md) | Ensure imported namespaces contain dereferenced properties as they are dereferenced. | ❗ ☑️ | | | | | |
59
- | [no-absolute-path](docs/rules/no-absolute-path.md) | Forbid import of modules using absolute paths. | | | | 🔧 | | |
60
- | [no-cycle](docs/rules/no-cycle.md) | Forbid a module from importing a module with a dependency path back to itself. | | | | | | |
61
- | [no-dynamic-require](docs/rules/no-dynamic-require.md) | Forbid `require()` calls with expressions. | | | | | | |
62
- | [no-internal-modules](docs/rules/no-internal-modules.md) | Forbid importing the submodules of other modules. | | | | | | |
63
- | [no-relative-packages](docs/rules/no-relative-packages.md) | Forbid importing packages through relative paths. | | | | 🔧 | | |
64
- | [no-relative-parent-imports](docs/rules/no-relative-parent-imports.md) | Forbid importing modules from parent directories. | | | | | | |
65
- | [no-restricted-paths](docs/rules/no-restricted-paths.md) | Enforce which files can be imported in a given folder. | | | | | | |
66
- | [no-self-import](docs/rules/no-self-import.md) | Forbid a module from importing itself. | | | | | | |
67
- | [no-unresolved](docs/rules/no-unresolved.md) | Ensure imports point to a file/module that can be resolved. | ❗ ☑️ | | | | | |
68
- | [no-useless-path-segments](docs/rules/no-useless-path-segments.md) | Forbid unnecessary path segments in import and require statements. | | | | 🔧 | | |
69
- | [no-webpack-loader-syntax](docs/rules/no-webpack-loader-syntax.md) | Forbid webpack loader syntax in imports. | | | | | | |
70
-
71
- ### Style guide
72
-
73
- | Name                            | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
74
- | :------------------------------------------------------------------------------- | :------------------------------------------------------------------------- | :- | :---- | :- | :- | :- | :- |
75
- | [consistent-type-specifier-style](docs/rules/consistent-type-specifier-style.md) | Enforce or ban the use of inline type-only markers for named imports. | | | | 🔧 | | |
76
- | [dynamic-import-chunkname](docs/rules/dynamic-import-chunkname.md) | Enforce a leading comment with the webpackChunkName for dynamic imports. | | | | | | |
77
- | [exports-last](docs/rules/exports-last.md) | Ensure all exports appear after other statements. | | | | | | |
78
- | [extensions](docs/rules/extensions.md) | Ensure consistent use of file extension within the import path. | | | | | | |
79
- | [first](docs/rules/first.md) | Ensure all imports appear before other statements. | | | | 🔧 | | |
80
- | [group-exports](docs/rules/group-exports.md) | Prefer named exports to be grouped together in a single export declaration | | | | | | |
81
- | [imports-first](docs/rules/imports-first.md) | Replaced by `import/first`. | | | | 🔧 | | ❌ |
82
- | [max-dependencies](docs/rules/max-dependencies.md) | Enforce the maximum number of dependencies a module can have. | | | | | | |
83
- | [newline-after-import](docs/rules/newline-after-import.md) | Enforce a newline after import statements. | | | | 🔧 | | |
84
- | [no-anonymous-default-export](docs/rules/no-anonymous-default-export.md) | Forbid anonymous values as default exports. | | | | | | |
85
- | [no-default-export](docs/rules/no-default-export.md) | Forbid default exports. | | | | | | |
86
- | [no-duplicates](docs/rules/no-duplicates.md) | Forbid repeated import of the same module in multiple places. | | ☑️ 🚸 | | 🔧 | | |
87
- | [no-named-default](docs/rules/no-named-default.md) | Forbid named default exports. | | | | | | |
88
- | [no-named-export](docs/rules/no-named-export.md) | Forbid named exports. | | | | | | |
89
- | [no-namespace](docs/rules/no-namespace.md) | Forbid namespace (a.k.a. "wildcard" `*`) imports. | | | | 🔧 | | |
90
- | [no-unassigned-import](docs/rules/no-unassigned-import.md) | Forbid unassigned imports | | | | | | |
91
- | [order](docs/rules/order.md) | Enforce a convention in module import order. | | | | 🔧 | | |
92
- | [prefer-default-export](docs/rules/prefer-default-export.md) | Prefer a default export if module exports a single name or multiple names. | | | | | | |
93
-
94
- <!-- end auto-generated rules list -->
95
-
96
- ## `eslint-plugin-import` for enterprise
97
-
98
- Available as part of the Tidelift Subscription.
99
-
100
- The maintainers of `eslint-plugin-import` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-eslint-plugin-import?utm_source=npm-eslint-plugin-import&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
101
-
102
- ## Installation
103
-
104
- ```sh
105
- # inside your project's working tree
106
- npm install eslint-plugin-import --save-dev
107
- ```
108
-
109
- All rules are off by default. However, you may configure them manually
110
- in your `.eslintrc.(yml|json|js)`, or extend one of the canned configs:
111
-
112
- ```yaml
113
- ---
114
- extends:
115
- - eslint:recommended
116
- - plugin:import/recommended
117
- # alternatively, 'recommended' is the combination of these two rule sets:
118
- - plugin:import/errors
119
- - plugin:import/warnings
120
-
121
- # or configure manually:
122
- plugins:
123
- - import
124
-
125
- rules:
126
- import/no-unresolved: [2, {commonjs: true, amd: true}]
127
- import/named: 2
128
- import/namespace: 2
129
- import/default: 2
130
- import/export: 2
131
- # etc...
132
- ```
133
-
134
- ## TypeScript
135
-
136
- You may use the following snippet or assemble your own config using the granular settings described below it.
137
-
138
- Make sure you have installed [`@typescript-eslint/parser`] and [`eslint-import-resolver-typescript`] which are used in the following configuration.
139
-
140
- ```yaml
141
- extends:
142
- - eslint:recommended
143
- - plugin:import/recommended
144
- # the following lines do the trick
145
- - plugin:import/typescript
146
- settings:
147
- import/resolver:
148
- # You will also need to install and configure the TypeScript resolver
149
- # See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
150
- typescript: true
151
- node: true
152
- ```
153
-
154
- [`@typescript-eslint/parser`]: https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser
155
- [`eslint-import-resolver-typescript`]: https://github.com/import-js/eslint-import-resolver-typescript
156
-
157
- ## Resolvers
158
-
159
- With the advent of module bundlers and the current state of modules and module
160
- syntax specs, it's not always obvious where `import x from 'module'` should look
161
- to find the file behind `module`.
162
-
163
- Up through v0.10ish, this plugin has directly used substack's [`resolve`] plugin,
164
- which implements Node's import behavior. This works pretty well in most cases.
165
-
166
- However, webpack allows a number of things in import module source strings that
167
- Node does not, such as loaders (`import 'file!./whatever'`) and a number of
168
- aliasing schemes, such as [`externals`]: mapping a module id to a global name at
169
- runtime (allowing some modules to be included more traditionally via script tags).
170
-
171
- In the interest of supporting both of these, v0.11 introduces resolvers.
172
-
173
- Currently [Node] and [webpack] resolution have been implemented, but the
174
- resolvers are just npm packages, so [third party packages are supported](https://github.com/import-js/eslint-plugin-import/wiki/Resolvers) (and encouraged!).
175
-
176
- You can reference resolvers in several ways (in order of precedence):
177
-
178
- - as a conventional `eslint-import-resolver` name, like `eslint-import-resolver-foo`:
179
-
180
- ```yaml
181
- # .eslintrc.yml
182
- settings:
183
- # uses 'eslint-import-resolver-foo':
184
- import/resolver: foo
185
- ```
186
-
187
- ```js
188
- // .eslintrc.js
189
- module.exports = {
190
- settings: {
191
- 'import/resolver': {
192
- foo: { someConfig: value }
193
- }
194
- }
195
- }
196
- ```
197
-
198
- - with a full npm module name, like `my-awesome-npm-module`:
199
-
200
- ```yaml
201
- # .eslintrc.yml
202
- settings:
203
- import/resolver: 'my-awesome-npm-module'
204
- ```
205
-
206
- ```js
207
- // .eslintrc.js
208
- module.exports = {
209
- settings: {
210
- 'import/resolver': {
211
- 'my-awesome-npm-module': { someConfig: value }
212
- }
213
- }
214
- }
215
- ```
216
-
217
- - with a filesystem path to resolver, defined in this example as a `computed property` name:
218
-
219
- ```js
220
- // .eslintrc.js
221
- module.exports = {
222
- settings: {
223
- 'import/resolver': {
224
- [path.resolve('../../../my-resolver')]: { someConfig: value }
225
- }
226
- }
227
- }
228
- ```
229
-
230
- Relative paths will be resolved relative to the source's nearest `package.json` or
231
- the process's current working directory if no `package.json` is found.
232
-
233
- If you are interesting in writing a resolver, see the [spec](./resolvers/README.md) for more details.
234
-
235
- [`resolve`]: https://www.npmjs.com/package/resolve
236
- [`externals`]: https://webpack.github.io/docs/library-and-externals.html
237
-
238
- [Node]: https://www.npmjs.com/package/eslint-import-resolver-node
239
- [webpack]: https://www.npmjs.com/package/eslint-import-resolver-webpack
240
-
241
- ## Settings
242
-
243
- You may set the following settings in your `.eslintrc`:
244
-
245
- ### `import/extensions`
246
-
247
- A list of file extensions that will be parsed as modules and inspected for
248
- `export`s.
249
-
250
- This defaults to `['.js']`, unless you are using the `react` shared config,
251
- in which case it is specified as `['.js', '.jsx']`. Despite the default,
252
- if you are using TypeScript (without the `plugin:import/typescript` config
253
- described above) you must specify the new extensions (`.ts`, and also `.tsx`
254
- if using React).
255
-
256
- ```js
257
- "settings": {
258
- "import/extensions": [
259
- ".js",
260
- ".jsx"
261
- ]
262
- }
263
- ```
264
-
265
- If you require more granular extension definitions, you can use:
266
-
267
- ```js
268
- "settings": {
269
- "import/resolver": {
270
- "node": {
271
- "extensions": [
272
- ".js",
273
- ".jsx"
274
- ]
275
- }
276
- }
277
- }
278
- ```
279
-
280
- Note that this is different from (and likely a subset of) any `import/resolver`
281
- extensions settings, which may include `.json`, `.coffee`, etc. which will still
282
- factor into the `no-unresolved` rule.
283
-
284
- Also, the following `import/ignore` patterns will overrule this list.
285
-
286
- ### `import/ignore`
287
-
288
- A list of regex strings that, if matched by a path, will
289
- not report the matching module if no `export`s are found.
290
- In practice, this means rules other than [`no-unresolved`](./docs/rules/no-unresolved.md#ignore) will not report on any
291
- `import`s with (absolute filesystem) paths matching this pattern.
292
-
293
- `no-unresolved` has its own [`ignore`](./docs/rules/no-unresolved.md#ignore) setting.
294
-
295
- ```yaml
296
- settings:
297
- import/ignore:
298
- - \.coffee$ # fraught with parse errors
299
- - \.(scss|less|css)$ # can't parse unprocessed CSS modules, either
300
- ```
301
-
302
- ### `import/core-modules`
303
-
304
- An array of additional modules to consider as "core" modules--modules that should
305
- be considered resolved but have no path on the filesystem. Your resolver may
306
- already define some of these (for example, the Node resolver knows about `fs` and
307
- `path`), so you need not redefine those.
308
-
309
- For example, Electron exposes an `electron` module:
310
-
311
- ```js
312
- import 'electron' // without extra config, will be flagged as unresolved!
313
- ```
314
-
315
- that would otherwise be unresolved. To avoid this, you may provide `electron` as a
316
- core module:
317
-
318
- ```yaml
319
- # .eslintrc.yml
320
- settings:
321
- import/core-modules: [ electron ]
322
- ```
323
-
324
- In Electron's specific case, there is a shared config named `electron`
325
- that specifies this for you.
326
-
327
- Contribution of more such shared configs for other platforms are welcome!
328
-
329
- ### `import/external-module-folders`
330
-
331
- An array of folders. Resolved modules only from those folders will be considered as "external". By default - `["node_modules"]`. Makes sense if you have configured your path or webpack to handle your internal paths differently and want to consider modules from some folders, for example `bower_components` or `jspm_modules`, as "external".
332
-
333
- This option is also useful in a monorepo setup: list here all directories that contain monorepo's packages and they will be treated as external ones no matter which resolver is used.
334
-
335
- If you are using `yarn` PnP as your package manager, add the `.yarn` folder and all your installed dependencies will be considered as `external`, instead of `internal`.
336
-
337
- Each item in this array is either a folder's name, its subpath, or its absolute prefix path:
338
-
339
- - `jspm_modules` will match any file or folder named `jspm_modules` or which has a direct or non-direct parent named `jspm_modules`, e.g. `/home/me/project/jspm_modules` or `/home/me/project/jspm_modules/some-pkg/index.js`.
340
-
341
- - `packages/core` will match any path that contains these two segments, for example `/home/me/project/packages/core/src/utils.js`.
342
-
343
- - `/home/me/project/packages` will only match files and directories inside this directory, and the directory itself.
344
-
345
- Please note that incomplete names are not allowed here so `components` won't match `bower_components` and `packages/ui` won't match `packages/ui-utils` (but will match `packages/ui/utils`).
346
-
347
- ### `import/parsers`
348
-
349
- A map from parsers to file extension arrays. If a file extension is matched, the
350
- dependency parser will require and use the map key as the parser instead of the
351
- configured ESLint parser. This is useful if you're inter-op-ing with TypeScript
352
- directly using webpack, for example:
353
-
354
- ```yaml
355
- # .eslintrc.yml
356
- settings:
357
- import/parsers:
358
- "@typescript-eslint/parser": [ .ts, .tsx ]
359
- ```
360
-
361
- In this case, [`@typescript-eslint/parser`](https://www.npmjs.com/package/@typescript-eslint/parser)
362
- must be installed and require-able from the running `eslint` module's location
363
- (i.e., install it as a peer of ESLint).
364
-
365
- This is currently only tested with `@typescript-eslint/parser` (and its predecessor,
366
- `typescript-eslint-parser`) but should theoretically work with any moderately
367
- ESTree-compliant parser.
368
-
369
- It's difficult to say how well various plugin features will be supported, too,
370
- depending on how far down the rabbit hole goes. Submit an issue if you find strange
371
- behavior beyond here, but steel your heart against the likely outcome of closing
372
- with `wontfix`.
373
-
374
- ### `import/resolver`
375
-
376
- See [resolvers](#resolvers).
377
-
378
- ### `import/cache`
379
-
380
- Settings for cache behavior. Memoization is used at various levels to avoid the copious amount of `fs.statSync`/module parse calls required to correctly report errors.
381
-
382
- For normal `eslint` console runs, the cache lifetime is irrelevant, as we can strongly assume that files should not be changing during the lifetime of the linter process (and thus, the cache in memory)
383
-
384
- For long-lasting processes, like [`eslint_d`] or [`eslint-loader`], however, it's important that there be some notion of staleness.
385
-
386
- If you never use [`eslint_d`] or [`eslint-loader`], you may set the cache lifetime to `Infinity` and everything should be fine:
387
-
388
- ```yaml
389
- # .eslintrc.yml
390
- settings:
391
- import/cache:
392
- lifetime: ∞ # or Infinity
393
- ```
394
-
395
- Otherwise, set some integer, and cache entries will be evicted after that many seconds have elapsed:
396
-
397
- ```yaml
398
- # .eslintrc.yml
399
- settings:
400
- import/cache:
401
- lifetime: 5 # 30 is the default
402
- ```
403
-
404
- [`eslint_d`]: https://www.npmjs.com/package/eslint_d
405
- [`eslint-loader`]: https://www.npmjs.com/package/eslint-loader
406
-
407
- ### `import/internal-regex`
408
-
409
- A regex for packages should be treated as internal. Useful when you are utilizing a monorepo setup or developing a set of packages that depend on each other.
410
-
411
- By default, any package referenced from [`import/external-module-folders`](#importexternal-module-folders) will be considered as "external", including packages in a monorepo like yarn workspace or lerna environment. If you want to mark these packages as "internal" this will be useful.
412
-
413
- For example, if your packages in a monorepo are all in `@scope`, you can configure `import/internal-regex` like this
414
-
415
- ```yaml
416
- # .eslintrc.yml
417
- settings:
418
- import/internal-regex: ^@scope/
419
- ```
420
-
421
- ## SublimeLinter-eslint
422
-
423
- SublimeLinter-eslint introduced a change to support `.eslintignore` files
424
- which altered the way file paths are passed to ESLint when linting during editing.
425
- This change sends a relative path instead of the absolute path to the file (as ESLint
426
- normally provides), which can make it impossible for this plugin to resolve dependencies
427
- on the filesystem.
428
-
429
- This workaround should no longer be necessary with the release of ESLint 2.0, when
430
- `.eslintignore` will be updated to work more like a `.gitignore`, which should
431
- support proper ignoring of absolute paths via `--stdin-filename`.
432
-
433
- In the meantime, see [roadhump/SublimeLinter-eslint#58](https://github.com/roadhump/SublimeLinter-eslint/issues/58)
434
- for more details and discussion, but essentially, you may find you need to add the following
435
- `SublimeLinter` config to your Sublime project file:
436
-
437
- ```json
438
- {
439
- "folders":
440
- [
441
- {
442
- "path": "code"
443
- }
444
- ],
445
- "SublimeLinter":
446
- {
447
- "linters":
448
- {
449
- "eslint":
450
- {
451
- "chdir": "${project}/code"
452
- }
453
- }
454
- }
455
- }
456
- ```
457
-
458
- Note that `${project}/code` matches the `code` provided at `folders[0].path`.
459
-
460
- The purpose of the `chdir` setting, in this case, is to set the working directory
461
- from which ESLint is executed to be the same as the directory on which SublimeLinter-eslint
462
- bases the relative path it provides.
463
-
464
- See the SublimeLinter docs on [`chdir`](https://www.sublimelinter.com/en/latest/linter_settings.html#chdir)
465
- for more information, in case this does not work with your project.
466
-
467
- If you are not using `.eslintignore`, or don't have a Sublime project file, you can also
468
- do the following via a `.sublimelinterrc` file in some ancestor directory of your
469
- code:
470
-
471
- ```json
472
- {
473
- "linters": {
474
- "eslint": {
475
- "args": ["--stdin-filename", "@"]
476
- }
477
- }
478
- }
479
- ```
480
-
481
- I also found that I needed to set `rc_search_limit` to `null`, which removes the file
482
- hierarchy search limit when looking up the directory tree for `.sublimelinterrc`:
483
-
484
- In Package Settings / SublimeLinter / User Settings:
485
-
486
- ```json
487
- {
488
- "user": {
489
- "rc_search_limit": null
490
- }
491
- }
492
- ```
493
-
494
- I believe this defaults to `3`, so you may not need to alter it depending on your
495
- project folder max depth.
496
-
497
- [codecov-image]: https://codecov.io/gh/import-js/eslint-plugin-import/branch/main/graphs/badge.svg
498
- [codecov-url]: https://app.codecov.io/gh/import-js/eslint-plugin-import/
499
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/import-js/eslint-plugin-import
500
- [actions-url]: https://github.com/import-js/eslint-plugin-import
@@ -1,54 +0,0 @@
1
- # Release steps
2
-
3
- 1. create a `release-[x.y.z]` branch from tip of `main` (or whatever release commit)
4
-
5
- ```bash
6
- git checkout main && git pull && git checkout -b release-2.1.0
7
- ```
8
-
9
- 2. bump `package.json` + update CHANGELOG version links for all releasing packages (i.e., root + any resolvers)
10
-
11
- In changelog for core plugin, normally leave [Unreleased] but update its link at the bottom
12
- to be rooted at the new version's tag, and add a link for the new version rooted
13
- at last version's tag.
14
-
15
- ```markdown
16
- [Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.1...HEAD
17
- [2.0.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.0...v2.0.1
18
- ```
19
-
20
- becomes
21
-
22
- ```markdown
23
- [Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.1.0...HEAD
24
- [2.1.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.1...v2.1.0
25
- [2.0.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.0...v2.0.1
26
- ```
27
-
28
- Generally, don't use `npm version` for this because it creates a tag, which I normally
29
- wait until signoff from contributors and actually `npm publish`-ing to snap the tag.
30
-
31
- 3. create pull request from `release-[x.y.z]` into `release` branch
32
-
33
- I like this because it
34
- - lists all commits in the release
35
- - provides a commentary location to discuss the release
36
- - builds in CI and provides test results
37
-
38
- 4. iterate on feedback
39
- - handle other issues
40
- - merge more PRs
41
- - fix issues in changelog/docs
42
-
43
- 5. `npm publish` from `release-[x.y.z]` branch
44
- - don't forget resolvers!
45
-
46
- 6. tag commit (`v[x.y.z]`)
47
- - again, not forgetting resolvers, if needed (`resolvers/[name]/v[t.u.v]`)
48
-
49
- 7. merge `release-[x.y.z]` into `release` (
50
- - ideally fast-forward, probably with Git CLI instead of Github
51
-
52
- 8. merge `release` into `main`
53
-
54
- Done!