Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2023-10-23 18:03:04 +00:00
parent 79817eb679
commit 9c3b394d7f
402 changed files with 12598 additions and 2912 deletions

View file

@ -12,70 +12,119 @@ This rule supports the following options:
- `count` which sets the number of newlines that are enforced after the last top-level import statement or require call. This option defaults to `1`.
- `exactCount` which enforce the exact numbers of newlines that is mentioned in `count`. This option defaults to `false`.
- `considerComments` which enforces the rule on comments after the last import-statement as well when set to true. This option defaults to `false`.
Valid:
```js
import defaultExport from './foo'
import defaultExport from './foo';
const FOO = 'BAR'
const FOO = 'BAR';
```
```js
import defaultExport from './foo'
import { bar } from 'bar-lib'
import defaultExport from './foo';
import { bar } from 'bar-lib';
const FOO = 'BAR'
const FOO = 'BAR';
```
```js
const FOO = require('./foo')
const BAR = require('./bar')
const FOO = require('./foo');
const BAR = require('./bar');
const BAZ = 1
const BAZ = 1;
```
Invalid:
```js
import * as foo from 'foo'
const FOO = 'BAR'
const FOO = 'BAR';
```
```js
import * as foo from 'foo'
const FOO = 'BAR'
import * as foo from 'foo';
const FOO = 'BAR';
import { bar } from 'bar-lib'
import { bar } from 'bar-lib';
```
```js
const FOO = require('./foo')
const BAZ = 1
const BAR = require('./bar')
const FOO = require('./foo');
const BAZ = 1;
const BAR = require('./bar');
```
With `count` set to `2` this will be considered valid:
```js
import defaultExport from './foo'
import defaultExport from './foo';
const FOO = 'BAR'
const FOO = 'BAR';
```
```js
import defaultExport from './foo';
const FOO = 'BAR';
```
With `count` set to `2` these will be considered invalid:
```js
import defaultExport from './foo'
const FOO = 'BAR'
import defaultExport from './foo';
const FOO = 'BAR';
```
```js
import defaultExport from './foo'
import defaultExport from './foo';
const FOO = 'BAR'
const FOO = 'BAR';
```
With `count` set to `2` and `exactCount` set to `true` this will be considered valid:
```js
import defaultExport from './foo';
const FOO = 'BAR';
```
With `count` set to `2` and `exactCount` set to `true` these will be considered invalid:
```js
import defaultExport from './foo';
const FOO = 'BAR';
```
```js
import defaultExport from './foo';
const FOO = 'BAR';
```
```js
import defaultExport from './foo';
const FOO = 'BAR';
```
```js
import defaultExport from './foo';
const FOO = 'BAR';
```
With `considerComments` set to `false` this will be considered valid: