Skip to content

Commit 0e627e2

Browse files
committed
[readme] update eslint plugin repo URLs
1 parent 7982931 commit 0e627e2

File tree

5 files changed

+106
-106
lines changed

5 files changed

+106
-106
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ Other Style Guides
13731373

13741374
<a name="modules--no-mutable-exports"></a>
13751375
- [10.5](#modules--no-mutable-exports) Do not export mutable bindings.
1376-
eslint: [`import/no-mutable-exports`](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md)
1376+
eslint: [`import/no-mutable-exports`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md)
13771377
> Why? Mutation should be avoided in general, but in particular when exporting mutable bindings. While this technique may be needed for some special cases, in general, only constant references should be exported.
13781378

13791379
```javascript
@@ -1388,7 +1388,7 @@ Other Style Guides
13881388

13891389
<a name="modules--prefer-default-export"></a>
13901390
- [10.6](#modules--prefer-default-export) In modules with a single export, prefer default export over named export.
1391-
eslint: [`import/prefer-default-export`](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md)
1391+
eslint: [`import/prefer-default-export`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md)
13921392
> Why? To encourage more files that only ever export one thing, which is better for readability and maintainability.
13931393

13941394
```javascript
@@ -1401,7 +1401,7 @@ Other Style Guides
14011401

14021402
<a name="modules--imports-first"></a>
14031403
- [10.7](#modules--imports-first) Put all `import`s above non-import statements.
1404-
eslint: [`import/first`](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)
1404+
eslint: [`import/first`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md)
14051405
> Why? Since `import`s are hoisted, keeping them all at the top prevents surprising behavior.
14061406

14071407
```javascript
@@ -1440,7 +1440,7 @@ Other Style Guides
14401440

14411441
<a name="modules--no-webpack-loader-syntax"></a>
14421442
- [10.9](#modules--no-webpack-loader-syntax) Disallow Webpack loader syntax in module import statements.
1443-
eslint: [`import/no-webpack-loader-syntax`](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md)
1443+
eslint: [`import/no-webpack-loader-syntax`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md)
14441444
> Why? Since using Webpack syntax in the imports couples the code to a module bundler. Prefer using the loader syntax in `webpack.config.js`.
14451445

14461446
```javascript
@@ -1455,7 +1455,7 @@ Other Style Guides
14551455

14561456
<a name="modules--import-extensions"></a>
14571457
- [10.10](#modules--import-extensions) Do not include JavaScript filename extensions
1458-
eslint: [`import/extensions`](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md)
1458+
eslint: [`import/extensions`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/extensions.md)
14591459
> Why? Including extensions inhibits refactoring, and inappropriately hardcodes implementation details of the module you're importing in every consumer.
14601460
14611461
```javascript

packages/eslint-config-airbnb-base/rules/es6.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = {
5353

5454
// disallow importing from the same path more than once
5555
// https://eslint.org/docs/rules/no-duplicate-imports
56-
// replaced by https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
56+
// replaced by https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
5757
'no-duplicate-imports': 'off',
5858

5959
// disallow symbol constructor

packages/eslint-config-airbnb-base/rules/imports.js

+43-43
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,40 @@ module.exports = {
3333
// Static analysis:
3434

3535
// ensure imports point to files/modules that can be resolved
36-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
36+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
3737
'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
3838

3939
// ensure named imports coupled with named exports
40-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
40+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
4141
'import/named': 'error',
4242

4343
// ensure default import coupled with default export
44-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
44+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
4545
'import/default': 'off',
4646

47-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/namespace.md
47+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/namespace.md
4848
'import/namespace': 'off',
4949

5050
// Helpful warnings:
5151

5252
// disallow invalid exports, e.g. multiple defaults
53-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md
53+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/export.md
5454
'import/export': 'error',
5555

5656
// do not allow a default import name to match a named export
57-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
57+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
5858
'import/no-named-as-default': 'error',
5959

6060
// warn on accessing default export property names that are also named exports
61-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
61+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
6262
'import/no-named-as-default-member': 'error',
6363

6464
// disallow use of jsdoc-marked-deprecated imports
65-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
65+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
6666
'import/no-deprecated': 'off',
6767

6868
// Forbid the use of extraneous packages
69-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
69+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
7070
// paths are treated both as absolute paths, and relative to process.cwd()
7171
'import/no-extraneous-dependencies': ['error', {
7272
devDependencies: [
@@ -97,109 +97,109 @@ module.exports = {
9797
}],
9898

9999
// Forbid mutable exports
100-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
100+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
101101
'import/no-mutable-exports': 'error',
102102

103103
// Module systems:
104104

105105
// disallow require()
106-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
106+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
107107
'import/no-commonjs': 'off',
108108

109109
// disallow AMD require/define
110-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-amd.md
110+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-amd.md
111111
'import/no-amd': 'error',
112112

113113
// No Node.js builtin modules
114-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
114+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
115115
// TODO: enable?
116116
'import/no-nodejs-modules': 'off',
117117

118118
// Style guide:
119119

120120
// disallow non-import statements appearing before import statements
121-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
121+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md
122122
'import/first': 'error',
123123

124124
// disallow non-import statements appearing before import statements
125-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md
125+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/imports-first.md
126126
// deprecated: use `import/first`
127127
'import/imports-first': 'off',
128128

129129
// disallow duplicate imports
130-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
130+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
131131
'import/no-duplicates': 'error',
132132

133133
// disallow namespace imports
134134
// TODO: enable?
135-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
135+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
136136
'import/no-namespace': 'off',
137137

138138
// Ensure consistent use of file extension within the import path
139-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
139+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/extensions.md
140140
'import/extensions': ['error', 'ignorePackages', {
141141
js: 'never',
142142
mjs: 'never',
143143
jsx: 'never',
144144
}],
145145

146146
// ensure absolute imports are above relative imports and that unassigned imports are ignored
147-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
147+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
148148
// TODO: enforce a stricter convention in module import order?
149149
'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
150150

151151
// Require a newline after the last import/require in a group
152-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
152+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
153153
'import/newline-after-import': 'error',
154154

155155
// Require modules with a single export to use a default export
156-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
156+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
157157
'import/prefer-default-export': 'error',
158158

159159
// Restrict which files can be imported in a given folder
160-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
160+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
161161
'import/no-restricted-paths': 'off',
162162

163163
// Forbid modules to have too many dependencies
164-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
164+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
165165
'import/max-dependencies': ['off', { max: 10 }],
166166

167167
// Forbid import of modules using absolute paths
168-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
168+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
169169
'import/no-absolute-path': 'error',
170170

171171
// Forbid require() calls with expressions
172-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
172+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
173173
'import/no-dynamic-require': 'error',
174174

175175
// prevent importing the submodules of other modules
176-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
176+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
177177
'import/no-internal-modules': ['off', {
178178
allow: [],
179179
}],
180180

181181
// Warn if a module could be mistakenly parsed as a script by a consumer
182182
// leveraging Unambiguous JavaScript Grammar
183-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
183+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
184184
// this should not be enabled until this proposal has at least been *presented* to TC39.
185185
// At the moment, it's not a thing.
186186
'import/unambiguous': 'off',
187187

188188
// Forbid Webpack loader syntax in imports
189-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
189+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
190190
'import/no-webpack-loader-syntax': 'error',
191191

192192
// Prevent unassigned imports
193-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
193+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
194194
// importing for side effects is perfectly acceptable, if you need side effects.
195195
'import/no-unassigned-import': 'off',
196196

197197
// Prevent importing the default as if it were named
198-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
198+
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
199199
'import/no-named-default': 'error',
200200

201201
// Reports if a module's default export is unnamed
202-
// https://github.com/benmosher/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
202+
// https://github.com/import-js/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
203203
'import/no-anonymous-default-export': ['off', {
204204
allowArray: false,
205205
allowArrowFunction: false,
@@ -210,49 +210,49 @@ module.exports = {
210210
}],
211211

212212
// This rule enforces that all exports are declared at the bottom of the file.
213-
// https://github.com/benmosher/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
213+
// https://github.com/import-js/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
214214
// TODO: enable?
215215
'import/exports-last': 'off',
216216

217217
// Reports when named exports are not grouped together in a single export declaration
218218
// or when multiple assignments to CommonJS module.exports or exports object are present
219219
// in a single file.
220-
// https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
220+
// https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
221221
'import/group-exports': 'off',
222222

223223
// forbid default exports. this is a terrible rule, do not use it.
224-
// https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
224+
// https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
225225
'import/no-default-export': 'off',
226226

227227
// Prohibit named exports. this is a terrible rule, do not use it.
228-
// https://github.com/benmosher/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
228+
// https://github.com/import-js/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
229229
'import/no-named-export': 'off',
230230

231231
// Forbid a module from importing itself
232-
// https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
232+
// https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
233233
'import/no-self-import': 'error',
234234

235235
// Forbid cyclical dependencies between modules
236-
// https://github.com/benmosher/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
236+
// https://github.com/import-js/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
237237
'import/no-cycle': ['error', { maxDepth: '∞' }],
238238

239239
// Ensures that there are no useless path segments
240-
// https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
240+
// https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
241241
'import/no-useless-path-segments': ['error', { commonjs: true }],
242242

243243
// dynamic imports require a leading comment with a webpackChunkName
244-
// https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
244+
// https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
245245
'import/dynamic-import-chunkname': ['off', {
246246
importFunctions: [],
247247
webpackChunknameFormat: '[0-9a-zA-Z-_/.]+',
248248
}],
249249

250250
// Use this rule to prevent imports to folders in relative parent paths.
251-
// https://github.com/benmosher/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
251+
// https://github.com/import-js/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
252252
'import/no-relative-parent-imports': 'off',
253253

254254
// Reports modules without any exports, or with unused exports
255-
// https://github.com/benmosher/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
255+
// https://github.com/import-js/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
256256
// TODO: enable once it supports CJS
257257
'import/no-unused-modules': ['off', {
258258
ignoreExports: [],
@@ -261,13 +261,13 @@ module.exports = {
261261
}],
262262

263263
// Reports the use of import declarations with CommonJS exports in any module except for the main module.
264-
// https://github.com/benmosher/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
264+
// https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
265265
'import/no-import-module-exports': ['error', {
266266
exceptions: [],
267267
}],
268268

269269
// Use this rule to prevent importing packages through relative paths.
270-
// https://github.com/benmosher/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-relative-packages.md
270+
// https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-relative-packages.md
271271
'import/no-relative-packages': 'error',
272272

273273
// enforce a consistent style for type specifiers (inline or top-level)

0 commit comments

Comments
 (0)