Update checked-in dependencies
This commit is contained in:
parent
79817eb679
commit
9c3b394d7f
402 changed files with 12598 additions and 2912 deletions
16
node_modules/eslint-plugin-import/CHANGELOG.md
generated
vendored
16
node_modules/eslint-plugin-import/CHANGELOG.md
generated
vendored
|
|
@ -6,6 +6,13 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.29.0] - 2023-10-22
|
||||
|
||||
### Added
|
||||
- TypeScript config: add .cts and .mts extensions ([#2851], thanks [@Zamiell])
|
||||
- [`newline-after-import`]: new option `exactCount` and docs update ([#1933], thanks [@anikethsaha] and [@reosarevok])
|
||||
- [`newline-after-import`]: fix `exactCount` with `considerComments` false positive, when there is a leading comment ([#2884], thanks [@kinland])
|
||||
|
||||
## [2.28.1] - 2023-08-18
|
||||
|
||||
### Fixed
|
||||
|
|
@ -1087,7 +1094,9 @@ for info on changes for earlier releases.
|
|||
|
||||
[`memo-parser`]: ./memo-parser/README.md
|
||||
|
||||
[#2884]: https://github.com/import-js/eslint-plugin-import/pull/2884
|
||||
[#2854]: https://github.com/import-js/eslint-plugin-import/pull/2854
|
||||
[#2851]: https://github.com/import-js/eslint-plugin-import/pull/2851
|
||||
[#2850]: https://github.com/import-js/eslint-plugin-import/pull/2850
|
||||
[#2842]: https://github.com/import-js/eslint-plugin-import/pull/2842
|
||||
[#2835]: https://github.com/import-js/eslint-plugin-import/pull/2835
|
||||
|
|
@ -1547,7 +1556,8 @@ for info on changes for earlier releases.
|
|||
[#119]: https://github.com/import-js/eslint-plugin-import/issues/119
|
||||
[#89]: https://github.com/import-js/eslint-plugin-import/issues/89
|
||||
|
||||
[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.28.1...HEAD
|
||||
[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.29.0...HEAD
|
||||
[2.29.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.28.1...v2.29.0
|
||||
[2.28.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.28.0...v2.28.1
|
||||
[2.28.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.0
|
||||
[2.27.5]: https://github.com/import-js/eslint-plugin-import/compare/v2.27.4...v2.27.5
|
||||
|
|
@ -1764,6 +1774,7 @@ for info on changes for earlier releases.
|
|||
[@kentcdodds]: https://github.com/kentcdodds
|
||||
[@kevin940726]: https://github.com/kevin940726
|
||||
[@kgregory]: https://github.com/kgregory
|
||||
[@kinland]: https://github.com/kinland
|
||||
[@kirill-konshin]: https://github.com/kirill-konshin
|
||||
[@kiwka]: https://github.com/kiwka
|
||||
[@klimashkin]: https://github.com/klimashkin
|
||||
|
|
@ -1771,8 +1782,8 @@ for info on changes for earlier releases.
|
|||
[@knpwrs]: https://github.com/knpwrs
|
||||
[@KostyaZgara]: https://github.com/KostyaZgara
|
||||
[@kylemh]: https://github.com/kylemh
|
||||
[@laysent]: https://github.com/laysent
|
||||
[@laurens-dg]: https://github.com/laurens-dg
|
||||
[@laysent]: https://github.com/laysent
|
||||
[@le0nik]: https://github.com/le0nik
|
||||
[@leipert]: https://github.com/leipert
|
||||
[@lemonmade]: https://github.com/lemonmade
|
||||
|
|
@ -1896,4 +1907,5 @@ for info on changes for earlier releases.
|
|||
[@xpl]: https://github.com/xpl
|
||||
[@yndajas]: https://github.com/yndajas
|
||||
[@yordis]: https://github.com/yordis
|
||||
[@Zamiell]: https://github.com/Zamiell
|
||||
[@zloirock]: https://github.com/zloirock
|
||||
|
|
|
|||
11
node_modules/eslint-plugin-import/config/typescript.js
generated
vendored
11
node_modules/eslint-plugin-import/config/typescript.js
generated
vendored
|
|
@ -1,19 +1,22 @@
|
|||
/**
|
||||
* Adds `.jsx`, `.ts` and `.tsx` as an extension, and enables JSX/TSX parsing.
|
||||
* This config:
|
||||
* 1) adds `.jsx`, `.ts`, `.cts`, `.mts`, and `.tsx` as an extension
|
||||
* 2) enables JSX/TSX parsing
|
||||
*/
|
||||
|
||||
// Omit `.d.ts` because 1) TypeScript compilation already confirms that
|
||||
// types are resolved, and 2) it would mask an unresolved
|
||||
// `.ts`/`.tsx`/`.js`/`.jsx` implementation.
|
||||
const allExtensions = ['.ts', '.tsx', '.js', '.jsx'];
|
||||
const typeScriptExtensions = ['.ts', '.cts', '.mts', '.tsx'];
|
||||
|
||||
const allExtensions = [...typeScriptExtensions, '.js', '.jsx'];
|
||||
|
||||
module.exports = {
|
||||
|
||||
settings: {
|
||||
'import/extensions': allExtensions,
|
||||
'import/external-module-folders': ['node_modules', 'node_modules/@types'],
|
||||
'import/parsers': {
|
||||
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
||||
'@typescript-eslint/parser': typeScriptExtensions,
|
||||
},
|
||||
'import/resolver': {
|
||||
node: {
|
||||
|
|
|
|||
91
node_modules/eslint-plugin-import/docs/rules/newline-after-import.md
generated
vendored
91
node_modules/eslint-plugin-import/docs/rules/newline-after-import.md
generated
vendored
|
|
@ -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:
|
||||
|
|
|
|||
29
node_modules/eslint-plugin-import/lib/rules/newline-after-import.js
generated
vendored
29
node_modules/eslint-plugin-import/lib/rules/newline-after-import.js
generated
vendored
File diff suppressed because one or more lines are too long
6
node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js
generated
vendored
6
node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js
generated
vendored
File diff suppressed because one or more lines are too long
22
node_modules/eslint-plugin-import/package.json
generated
vendored
22
node_modules/eslint-plugin-import/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eslint-plugin-import",
|
||||
"version": "2.28.1",
|
||||
"version": "2.29.0",
|
||||
"description": "Import with sanity.",
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
|
|
@ -103,21 +103,21 @@
|
|||
"eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8"
|
||||
},
|
||||
"dependencies": {
|
||||
"array-includes": "^3.1.6",
|
||||
"array.prototype.findlastindex": "^1.2.2",
|
||||
"array.prototype.flat": "^1.3.1",
|
||||
"array.prototype.flatmap": "^1.3.1",
|
||||
"array-includes": "^3.1.7",
|
||||
"array.prototype.findlastindex": "^1.2.3",
|
||||
"array.prototype.flat": "^1.3.2",
|
||||
"array.prototype.flatmap": "^1.3.2",
|
||||
"debug": "^3.2.7",
|
||||
"doctrine": "^2.1.0",
|
||||
"eslint-import-resolver-node": "^0.3.7",
|
||||
"eslint-import-resolver-node": "^0.3.9",
|
||||
"eslint-module-utils": "^2.8.0",
|
||||
"has": "^1.0.3",
|
||||
"is-core-module": "^2.13.0",
|
||||
"hasown": "^2.0.0",
|
||||
"is-core-module": "^2.13.1",
|
||||
"is-glob": "^4.0.3",
|
||||
"minimatch": "^3.1.2",
|
||||
"object.fromentries": "^2.0.6",
|
||||
"object.groupby": "^1.0.0",
|
||||
"object.values": "^1.1.6",
|
||||
"object.fromentries": "^2.0.7",
|
||||
"object.groupby": "^1.0.1",
|
||||
"object.values": "^1.1.7",
|
||||
"semver": "^6.3.1",
|
||||
"tsconfig-paths": "^3.14.2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue