Skip to content

Commit 00a9ad9

Browse files
committed
[meta] remove trailing whitespaces; ensure trailing file newlines
1 parent 13aa29c commit 00a9ad9

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.coveralls.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
repo_token: fW3moW39Z8pKOgqTnUMT68DnNCd2SM8Ly
2+
repo_token: fW3moW39Z8pKOgqTnUMT68DnNCd2SM8Ly

docs/rules/no-unused-modules.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Note: dynamic imports are currently not supported.
1212

1313
In order for this plugin to work, one of the options `missingExports` or `unusedExports` must be enabled (see "Options" section below). In the future, these options will be enabled by default (see https://github.com/benmosher/eslint-plugin-import/issues/1324)
1414

15-
Example:
15+
Example:
1616
```
1717
"rules: {
1818
...otherRules,
@@ -27,24 +27,24 @@ This rule takes the following option:
2727
- **`missingExports`**: if `true`, files without any exports are reported (defaults to `false`)
2828
- **`unusedExports`**: if `true`, exports without any static usage within other modules are reported (defaults to `false`)
2929
- `src`: an array with files/paths to be analyzed. It only applies to unused exports. Defaults to `process.cwd()`, if not provided
30-
- `ignoreExports`: an array with files/paths for which unused exports will not be reported (e.g module entry points in a published package)
30+
- `ignoreExports`: an array with files/paths for which unused exports will not be reported (e.g module entry points in a published package)
3131

3232

3333
### Example for missing exports
3434
#### The following will be reported
3535
```js
36-
const class MyClass { /*...*/ }
36+
const class MyClass { /*...*/ }
3737

3838
function makeClass() { return new MyClass(...arguments) }
3939
```
4040

4141
#### The following will not be reported
4242

4343
```js
44-
export default function () { /*...*/ }
44+
export default function () { /*...*/ }
4545
```
4646
```js
47-
export const foo = function () { /*...*/ }
47+
export const foo = function () { /*...*/ }
4848
```
4949
```js
5050
export { foo, bar }
@@ -61,7 +61,7 @@ import { f } from 'file-b'
6161
import * as fileC from 'file-c'
6262
export { default, i0 } from 'file-d' // both will be reported
6363

64-
export const j = 99 // will be reported
64+
export const j = 99 // will be reported
6565
```
6666
and file-d:
6767
```js

tests/src/rules/named.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ ruleTester.run('named (export *)', rule, {
286286
context('TypeScript', function () {
287287
getTSParsers().forEach((parser) => {
288288
[
289-
'typescript',
290-
'typescript-declare',
291-
'typescript-export-assign-namespace',
289+
'typescript',
290+
'typescript-declare',
291+
'typescript-export-assign-namespace',
292292
'typescript-export-assign-namespace-merged',
293293
].forEach((source) => {
294294
ruleTester.run(`named`, rule, {

tests/src/rules/no-duplicates.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ ruleTester.run('no-duplicates', rule, {
306306
// Not autofix bail.
307307
output: `
308308
import {x,y} from './foo'
309-
309+
310310
// some-tool-disable-next-line
311311
`,
312312
errors: ['\'./foo\' imported multiple times.', '\'./foo\' imported multiple times.'],
@@ -324,7 +324,7 @@ ruleTester.run('no-duplicates', rule, {
324324
import {x,y} from './foo'
325325
// comment
326326
327-
327+
328328
`,
329329
errors: ['\'./foo\' imported multiple times.', '\'./foo\' imported multiple times.'],
330330
}),

utils/parse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ exports.default = function parse(path, content, context) {
3131
// provide the `filePath` like eslint itself does, in `parserOptions`
3232
// https://github.com/eslint/eslint/blob/3ec436ee/lib/linter.js#L637
3333
parserOptions.filePath = path
34-
34+
3535
// @typescript-eslint/parser will parse the entire project with typechecking if you provide
3636
// "project" or "projects" in parserOptions. Removing these options means the parser will
3737
// only parse one file in isolate mode, which is much, much faster.
3838
// https://github.com/benmosher/eslint-plugin-import/issues/1408#issuecomment-509298962
3939
delete parserOptions.project
4040
delete parserOptions.projects
41-
41+
4242
// require the parser relative to the main module (i.e., ESLint)
4343
const parser = moduleRequire(parserPath)
4444

0 commit comments

Comments
 (0)