mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Update checked-in dependencies
This commit is contained in:
37
node_modules/.package-lock.json
generated
vendored
37
node_modules/.package-lock.json
generated
vendored
@@ -2098,31 +2098,28 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-import-resolver-node": {
|
||||
"version": "0.3.4",
|
||||
"version": "0.3.5",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.5.tgz",
|
||||
"integrity": "sha512-XMoPKjSpXbkeJ7ZZ9icLnJMTY5Mc1kZbCakHquaFsXPpyWOwK0TK6CODO+0ca54UoM9LKOxyUNnoVZRl8TeaAg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^2.6.9",
|
||||
"resolve": "^1.13.1"
|
||||
"debug": "^3.2.7",
|
||||
"resolve": "^1.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-import-resolver-node/node_modules/debug": {
|
||||
"version": "2.6.9",
|
||||
"version": "3.2.7",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
||||
"integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "2.0.0"
|
||||
"ms": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-import-resolver-node/node_modules/ms": {
|
||||
"version": "2.0.0",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/eslint-module-utils": {
|
||||
"version": "2.6.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz",
|
||||
"integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==",
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.2.tgz",
|
||||
"integrity": "sha512-QG8pcgThYOuqxupd06oYTZoNOGaUdTY1PqK+oS6ElF6vs4pBdk/aYxFVQQXzcrAqp9m7cl7lb2ubazX+g16k2Q==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"debug": "^3.2.7",
|
||||
@@ -2276,17 +2273,17 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-import": {
|
||||
"version": "2.23.4",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.4.tgz",
|
||||
"integrity": "sha512-6/wP8zZRsnQFiR3iaPFgh5ImVRM1WN5NUWfTIRqwOdeiGJlBcSk82o1FEVq8yXmy4lkIzTo7YhHCIxlU/2HyEQ==",
|
||||
"version": "2.24.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.24.0.tgz",
|
||||
"integrity": "sha512-Kc6xqT9hiYi2cgybOc0I2vC9OgAYga5o/rAFinam/yF/t5uBqxQbauNPMC6fgb640T/89P0gFoO27FOilJ/Cqg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"array-includes": "^3.1.3",
|
||||
"array.prototype.flat": "^1.2.4",
|
||||
"debug": "^2.6.9",
|
||||
"doctrine": "^2.1.0",
|
||||
"eslint-import-resolver-node": "^0.3.4",
|
||||
"eslint-module-utils": "^2.6.1",
|
||||
"eslint-import-resolver-node": "^0.3.5",
|
||||
"eslint-module-utils": "^2.6.2",
|
||||
"find-up": "^2.0.0",
|
||||
"has": "^1.0.3",
|
||||
"is-core-module": "^2.4.0",
|
||||
|
||||
63
node_modules/eslint-import-resolver-node/CHANGELOG.md
generated
vendored
63
node_modules/eslint-import-resolver-node/CHANGELOG.md
generated
vendored
@@ -1,63 +0,0 @@
|
||||
# Change Log
|
||||
All notable changes to this resolver will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
This change log adheres to standards from [Keep a CHANGELOG](http://keepachangelog.com).
|
||||
|
||||
## Unreleased
|
||||
|
||||
## v0.3.4 - 2020-06-16
|
||||
### Added
|
||||
- add `.node` extension ([#1663])
|
||||
|
||||
## v0.3.3 - 2020-01-10
|
||||
### Changed
|
||||
- [meta] copy LICENSE file to all npm packages on prepublish ([#1595], thanks [@opichals])
|
||||
|
||||
## v0.3.2 - 2018-01-05
|
||||
### Added
|
||||
- `.mjs` extension detected by default to support `experimental-modules` ([#939])
|
||||
|
||||
### Deps
|
||||
- update `debug`, `resolve`
|
||||
|
||||
## v0.3.1 - 2017-06-23
|
||||
### Changed
|
||||
- bumped `debug` dep to match other packages
|
||||
|
||||
## v0.3.0 - 2016-12-15
|
||||
### Changed
|
||||
- bumped `resolve` to fix issues with Node builtins (thanks [@SkeLLLa] and [@ljharb])
|
||||
|
||||
### Fixed
|
||||
- use `files` in `package.json` to ship only `index.js` ([#531], thanks for noticing [@lukeapage])
|
||||
|
||||
## v0.2.3 - 2016-08-20
|
||||
### Added
|
||||
- debug logging (use `DEBUG=eslint-plugin-import:resolver:node eslint [...]`)
|
||||
|
||||
## v0.2.2 - 2016-07-14
|
||||
### Fixed
|
||||
- Node resolver no longer declares the import plugin as a `peerDependency`. See [#437]
|
||||
for a well-articulated and thoughtful expression of why this doesn't make sense.
|
||||
Thanks [@jasonkarns] for the issue and the PR to fix it ([#438]).
|
||||
|
||||
Also, apologies to the others who expressed this before, but I never understood
|
||||
what the problem was.😅
|
||||
|
||||
## v0.2.1
|
||||
### Fixed
|
||||
- find files with `.json` extensions (#333, thanks for noticing @jfmengels)
|
||||
|
||||
[#438]: https://github.com/benmosher/eslint-plugin-import/pull/438
|
||||
|
||||
[#1663]: https://github.com/benmosher/eslint-plugin-import/issues/1663
|
||||
[#1595]: https://github.com/benmosher/eslint-plugin-import/pull/1595
|
||||
[#939]: https://github.com/benmosher/eslint-plugin-import/issues/939
|
||||
[#531]: https://github.com/benmosher/eslint-plugin-import/issues/531
|
||||
[#437]: https://github.com/benmosher/eslint-plugin-import/issues/437
|
||||
|
||||
[@jasonkarns]: https://github.com/jasonkarns
|
||||
[@lukeapage]: https://github.com/lukeapage
|
||||
[@SkeLLLa]: https://github.com/SkeLLLa
|
||||
[@ljharb]: https://github.com/ljharb
|
||||
[@opichals]: https://github.com/opichals
|
||||
58
node_modules/eslint-import-resolver-node/index.js
generated
vendored
58
node_modules/eslint-import-resolver-node/index.js
generated
vendored
@@ -1,47 +1,51 @@
|
||||
var resolve = require('resolve')
|
||||
, path = require('path')
|
||||
'use strict';
|
||||
|
||||
var log = require('debug')('eslint-plugin-import:resolver:node')
|
||||
const resolve = require('resolve');
|
||||
const path = require('path');
|
||||
|
||||
exports.interfaceVersion = 2
|
||||
const log = require('debug')('eslint-plugin-import:resolver:node');
|
||||
|
||||
exports.interfaceVersion = 2;
|
||||
|
||||
exports.resolve = function (source, file, config) {
|
||||
log('Resolving:', source, 'from:', file)
|
||||
var resolvedPath
|
||||
log('Resolving:', source, 'from:', file);
|
||||
let resolvedPath;
|
||||
|
||||
if (resolve.isCore(source)) {
|
||||
log('resolved to core')
|
||||
return { found: true, path: null }
|
||||
log('resolved to core');
|
||||
return { found: true, path: null };
|
||||
}
|
||||
|
||||
try {
|
||||
resolvedPath = resolve.sync(source, opts(file, config))
|
||||
log('Resolved to:', resolvedPath)
|
||||
return { found: true, path: resolvedPath }
|
||||
resolvedPath = resolve.sync(source, opts(file, config));
|
||||
log('Resolved to:', resolvedPath);
|
||||
return { found: true, path: resolvedPath };
|
||||
} catch (err) {
|
||||
log('resolve threw error:', err)
|
||||
return { found: false }
|
||||
log('resolve threw error:', err);
|
||||
return { found: false };
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function opts(file, config) {
|
||||
return Object.assign({
|
||||
// more closely matches Node (#333)
|
||||
// plus 'mjs' for native modules! (#939)
|
||||
extensions: ['.mjs', '.js', '.json', '.node'],
|
||||
},
|
||||
config,
|
||||
{
|
||||
// path.resolve will handle paths relative to CWD
|
||||
basedir: path.dirname(path.resolve(file)),
|
||||
packageFilter: packageFilter,
|
||||
// more closely matches Node (#333)
|
||||
// plus 'mjs' for native modules! (#939)
|
||||
extensions: ['.mjs', '.js', '.json', '.node'],
|
||||
},
|
||||
config,
|
||||
{
|
||||
// path.resolve will handle paths relative to CWD
|
||||
basedir: path.dirname(path.resolve(file)),
|
||||
packageFilter: packageFilter,
|
||||
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function packageFilter(pkg) {
|
||||
if (pkg['jsnext:main']) {
|
||||
pkg['main'] = pkg['jsnext:main']
|
||||
if (pkg.module) {
|
||||
pkg.main = pkg.module;
|
||||
} else if (pkg['jsnext:main']) {
|
||||
pkg.main = pkg['jsnext:main'];
|
||||
}
|
||||
return pkg
|
||||
return pkg;
|
||||
}
|
||||
|
||||
1
node_modules/eslint-import-resolver-node/node_modules/debug/.coveralls.yml
generated
vendored
1
node_modules/eslint-import-resolver-node/node_modules/debug/.coveralls.yml
generated
vendored
@@ -1 +0,0 @@
|
||||
repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
|
||||
11
node_modules/eslint-import-resolver-node/node_modules/debug/.eslintrc
generated
vendored
11
node_modules/eslint-import-resolver-node/node_modules/debug/.eslintrc
generated
vendored
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true
|
||||
},
|
||||
"rules": {
|
||||
"no-console": 0,
|
||||
"no-empty": [1, { "allowEmptyCatch": true }]
|
||||
},
|
||||
"extends": "eslint:recommended"
|
||||
}
|
||||
9
node_modules/eslint-import-resolver-node/node_modules/debug/.npmignore
generated
vendored
9
node_modules/eslint-import-resolver-node/node_modules/debug/.npmignore
generated
vendored
@@ -1,9 +0,0 @@
|
||||
support
|
||||
test
|
||||
examples
|
||||
example
|
||||
*.sock
|
||||
dist
|
||||
yarn.lock
|
||||
coverage
|
||||
bower.json
|
||||
14
node_modules/eslint-import-resolver-node/node_modules/debug/.travis.yml
generated
vendored
14
node_modules/eslint-import-resolver-node/node_modules/debug/.travis.yml
generated
vendored
@@ -1,14 +0,0 @@
|
||||
|
||||
language: node_js
|
||||
node_js:
|
||||
- "6"
|
||||
- "5"
|
||||
- "4"
|
||||
|
||||
install:
|
||||
- make node_modules
|
||||
|
||||
script:
|
||||
- make lint
|
||||
- make test
|
||||
- make coveralls
|
||||
35
node_modules/eslint-import-resolver-node/node_modules/debug/CHANGELOG.md
generated
vendored
35
node_modules/eslint-import-resolver-node/node_modules/debug/CHANGELOG.md
generated
vendored
@@ -1,4 +1,37 @@
|
||||
|
||||
3.1.0 / 2017-09-26
|
||||
==================
|
||||
|
||||
* Add `DEBUG_HIDE_DATE` env var (#486)
|
||||
* Remove ReDoS regexp in %o formatter (#504)
|
||||
* Remove "component" from package.json
|
||||
* Remove `component.json`
|
||||
* Ignore package-lock.json
|
||||
* Examples: fix colors printout
|
||||
* Fix: browser detection
|
||||
* Fix: spelling mistake (#496, @EdwardBetts)
|
||||
|
||||
3.0.1 / 2017-08-24
|
||||
==================
|
||||
|
||||
* Fix: Disable colors in Edge and Internet Explorer (#489)
|
||||
|
||||
3.0.0 / 2017-08-08
|
||||
==================
|
||||
|
||||
* Breaking: Remove DEBUG_FD (#406)
|
||||
* Breaking: Use `Date#toISOString()` instead to `Date#toUTCString()` when output is not a TTY (#418)
|
||||
* Breaking: Make millisecond timer namespace specific and allow 'always enabled' output (#408)
|
||||
* Addition: document `enabled` flag (#465)
|
||||
* Addition: add 256 colors mode (#481)
|
||||
* Addition: `enabled()` updates existing debug instances, add `destroy()` function (#440)
|
||||
* Update: component: update "ms" to v2.0.0
|
||||
* Update: separate the Node and Browser tests in Travis-CI
|
||||
* Update: refactor Readme, fixed documentation, added "Namespace Colors" section, redid screenshots
|
||||
* Update: separate Node.js and web browser examples for organization
|
||||
* Update: update "browserify" to v14.4.0
|
||||
* Fix: fix Readme typo (#473)
|
||||
|
||||
2.6.9 / 2017-09-22
|
||||
==================
|
||||
|
||||
@@ -27,7 +60,7 @@
|
||||
2.6.4 / 2017-04-20
|
||||
==================
|
||||
|
||||
* Fix: bug that would occure if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
|
||||
* Fix: bug that would occur if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
|
||||
* Chore: ignore bower.json in npm installations. (#437, @joaovieira)
|
||||
* Misc: update "ms" to v0.7.3 (@tootallnate)
|
||||
|
||||
|
||||
50
node_modules/eslint-import-resolver-node/node_modules/debug/Makefile
generated
vendored
50
node_modules/eslint-import-resolver-node/node_modules/debug/Makefile
generated
vendored
@@ -1,50 +0,0 @@
|
||||
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
|
||||
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
|
||||
THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
|
||||
|
||||
# BIN directory
|
||||
BIN := $(THIS_DIR)/node_modules/.bin
|
||||
|
||||
# Path
|
||||
PATH := node_modules/.bin:$(PATH)
|
||||
SHELL := /bin/bash
|
||||
|
||||
# applications
|
||||
NODE ?= $(shell which node)
|
||||
YARN ?= $(shell which yarn)
|
||||
PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
|
||||
BROWSERIFY ?= $(NODE) $(BIN)/browserify
|
||||
|
||||
.FORCE:
|
||||
|
||||
install: node_modules
|
||||
|
||||
node_modules: package.json
|
||||
@NODE_ENV= $(PKG) install
|
||||
@touch node_modules
|
||||
|
||||
lint: .FORCE
|
||||
eslint browser.js debug.js index.js node.js
|
||||
|
||||
test-node: .FORCE
|
||||
istanbul cover node_modules/mocha/bin/_mocha -- test/**.js
|
||||
|
||||
test-browser: .FORCE
|
||||
mkdir -p dist
|
||||
|
||||
@$(BROWSERIFY) \
|
||||
--standalone debug \
|
||||
. > dist/debug.js
|
||||
|
||||
karma start --single-run
|
||||
rimraf dist
|
||||
|
||||
test: .FORCE
|
||||
concurrently \
|
||||
"make test-node" \
|
||||
"make test-browser"
|
||||
|
||||
coveralls:
|
||||
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
||||
|
||||
.PHONY: all install clean distclean
|
||||
247
node_modules/eslint-import-resolver-node/node_modules/debug/README.md
generated
vendored
247
node_modules/eslint-import-resolver-node/node_modules/debug/README.md
generated
vendored
@@ -2,11 +2,10 @@
|
||||
[](https://travis-ci.org/visionmedia/debug) [](https://coveralls.io/github/visionmedia/debug?branch=master) [](https://visionmedia-community-slackin.now.sh/) [](#backers)
|
||||
[](#sponsors)
|
||||
|
||||
<img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
|
||||
|
||||
|
||||
A tiny node.js debugging utility modelled after node core's debugging technique.
|
||||
|
||||
**Discussion around the V3 API is under way [here](https://github.com/visionmedia/debug/issues/370)**
|
||||
A tiny JavaScript debugging utility modelled after Node.js core's debugging
|
||||
technique. Works in Node.js and web browsers.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -18,7 +17,7 @@ $ npm install debug
|
||||
|
||||
`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.
|
||||
|
||||
Example _app.js_:
|
||||
Example [_app.js_](./examples/node/app.js):
|
||||
|
||||
```js
|
||||
var debug = require('debug')('http')
|
||||
@@ -27,7 +26,7 @@ var debug = require('debug')('http')
|
||||
|
||||
// fake app
|
||||
|
||||
debug('booting %s', name);
|
||||
debug('booting %o', name);
|
||||
|
||||
http.createServer(function(req, res){
|
||||
debug(req.method + ' ' + req.url);
|
||||
@@ -41,81 +40,148 @@ http.createServer(function(req, res){
|
||||
require('./worker');
|
||||
```
|
||||
|
||||
Example _worker.js_:
|
||||
Example [_worker.js_](./examples/node/worker.js):
|
||||
|
||||
```js
|
||||
var debug = require('debug')('worker');
|
||||
var a = require('debug')('worker:a')
|
||||
, b = require('debug')('worker:b');
|
||||
|
||||
setInterval(function(){
|
||||
debug('doing some work');
|
||||
}, 1000);
|
||||
function work() {
|
||||
a('doing lots of uninteresting work');
|
||||
setTimeout(work, Math.random() * 1000);
|
||||
}
|
||||
|
||||
work();
|
||||
|
||||
function workb() {
|
||||
b('doing some work');
|
||||
setTimeout(workb, Math.random() * 2000);
|
||||
}
|
||||
|
||||
workb();
|
||||
```
|
||||
|
||||
The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:
|
||||
The `DEBUG` environment variable is then used to enable these based on space or
|
||||
comma-delimited names.
|
||||
|
||||

|
||||
Here are some examples:
|
||||
|
||||

|
||||
<img width="647" alt="screen shot 2017-08-08 at 12 53 04 pm" src="https://user-images.githubusercontent.com/71256/29091703-a6302cdc-7c38-11e7-8304-7c0b3bc600cd.png">
|
||||
<img width="647" alt="screen shot 2017-08-08 at 12 53 38 pm" src="https://user-images.githubusercontent.com/71256/29091700-a62a6888-7c38-11e7-800b-db911291ca2b.png">
|
||||
<img width="647" alt="screen shot 2017-08-08 at 12 53 25 pm" src="https://user-images.githubusercontent.com/71256/29091701-a62ea114-7c38-11e7-826a-2692bedca740.png">
|
||||
|
||||
#### Windows note
|
||||
#### Windows command prompt notes
|
||||
|
||||
On Windows the environment variable is set using the `set` command.
|
||||
##### CMD
|
||||
|
||||
```cmd
|
||||
set DEBUG=*,-not_this
|
||||
```
|
||||
On Windows the environment variable is set using the `set` command.
|
||||
|
||||
Note that PowerShell uses different syntax to set environment variables.
|
||||
```cmd
|
||||
set DEBUG=*,-not_this
|
||||
```
|
||||
|
||||
```cmd
|
||||
$env:DEBUG = "*,-not_this"
|
||||
```
|
||||
Example:
|
||||
|
||||
```cmd
|
||||
set DEBUG=* & node app.js
|
||||
```
|
||||
|
||||
##### PowerShell (VS Code default)
|
||||
|
||||
PowerShell uses different syntax to set environment variables.
|
||||
|
||||
```cmd
|
||||
$env:DEBUG = "*,-not_this"
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```cmd
|
||||
$env:DEBUG='app';node app.js
|
||||
```
|
||||
|
||||
Then, run the program to be debugged as usual.
|
||||
|
||||
npm script example:
|
||||
```js
|
||||
"windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js",
|
||||
```
|
||||
|
||||
## Namespace Colors
|
||||
|
||||
Every debug instance has a color generated for it based on its namespace name.
|
||||
This helps when visually parsing the debug output to identify which debug instance
|
||||
a debug line belongs to.
|
||||
|
||||
#### Node.js
|
||||
|
||||
In Node.js, colors are enabled when stderr is a TTY. You also _should_ install
|
||||
the [`supports-color`](https://npmjs.org/supports-color) module alongside debug,
|
||||
otherwise debug will only use a small handful of basic colors.
|
||||
|
||||
<img width="521" src="https://user-images.githubusercontent.com/71256/29092181-47f6a9e6-7c3a-11e7-9a14-1928d8a711cd.png">
|
||||
|
||||
#### Web Browser
|
||||
|
||||
Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
|
||||
option. These are WebKit web inspectors, Firefox ([since version
|
||||
31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
|
||||
and the Firebug plugin for Firefox (any version).
|
||||
|
||||
<img width="524" src="https://user-images.githubusercontent.com/71256/29092033-b65f9f2e-7c39-11e7-8e32-f6f0d8e865c1.png">
|
||||
|
||||
|
||||
## Millisecond diff
|
||||
|
||||
When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
|
||||
When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
|
||||
|
||||

|
||||
<img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
|
||||
|
||||
When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
|
||||
When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below:
|
||||
|
||||
<img width="647" src="https://user-images.githubusercontent.com/71256/29091956-6bd78372-7c39-11e7-8c55-c948396d6edd.png">
|
||||
|
||||

|
||||
|
||||
## Conventions
|
||||
|
||||
If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
|
||||
If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output.
|
||||
|
||||
## Wildcards
|
||||
|
||||
The `*` character may be used as a wildcard. Suppose for example your library has debuggers named "connect:bodyParser", "connect:compress", "connect:session", instead of listing all three with `DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
|
||||
The `*` character may be used as a wildcard. Suppose for example your library has
|
||||
debuggers named "connect:bodyParser", "connect:compress", "connect:session",
|
||||
instead of listing all three with
|
||||
`DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do
|
||||
`DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
|
||||
|
||||
You can also exclude specific debuggers by prefixing them with a "-" character. For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with "connect:".
|
||||
You can also exclude specific debuggers by prefixing them with a "-" character.
|
||||
For example, `DEBUG=*,-connect:*` would include all debuggers except those
|
||||
starting with "connect:".
|
||||
|
||||
## Environment Variables
|
||||
|
||||
When running through Node.js, you can set a few environment variables that will
|
||||
change the behavior of the debug logging:
|
||||
When running through Node.js, you can set a few environment variables that will
|
||||
change the behavior of the debug logging:
|
||||
|
||||
| Name | Purpose |
|
||||
|-----------|-------------------------------------------------|
|
||||
| `DEBUG` | Enables/disables specific debugging namespaces. |
|
||||
| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). |
|
||||
| `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
|
||||
| `DEBUG_DEPTH` | Object inspection depth. |
|
||||
| `DEBUG_DEPTH` | Object inspection depth. |
|
||||
| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
|
||||
|
||||
|
||||
__Note:__ The environment variables beginning with `DEBUG_` end up being
|
||||
converted into an Options object that gets used with `%o`/`%O` formatters.
|
||||
See the Node.js documentation for
|
||||
[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options)
|
||||
for the complete list.
|
||||
__Note:__ The environment variables beginning with `DEBUG_` end up being
|
||||
converted into an Options object that gets used with `%o`/`%O` formatters.
|
||||
See the Node.js documentation for
|
||||
[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options)
|
||||
for the complete list.
|
||||
|
||||
## Formatters
|
||||
|
||||
|
||||
Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting. Below are the officially supported formatters:
|
||||
Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting.
|
||||
Below are the officially supported formatters:
|
||||
|
||||
| Formatter | Representation |
|
||||
|-----------|----------------|
|
||||
@@ -126,9 +192,12 @@ Then, run the program to be debugged as usual.
|
||||
| `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. |
|
||||
| `%%` | Single percent sign ('%'). This does not consume an argument. |
|
||||
|
||||
|
||||
### Custom formatters
|
||||
|
||||
You can add custom formatters by extending the `debug.formatters` object. For example, if you wanted to add support for rendering a Buffer as hex with `%h`, you could do something like:
|
||||
You can add custom formatters by extending the `debug.formatters` object.
|
||||
For example, if you wanted to add support for rendering a Buffer as hex with
|
||||
`%h`, you could do something like:
|
||||
|
||||
```js
|
||||
const createDebug = require('debug')
|
||||
@@ -142,14 +211,16 @@ debug('this is hex: %h', new Buffer('hello world'))
|
||||
// foo this is hex: 68656c6c6f20776f726c6421 +0ms
|
||||
```
|
||||
|
||||
## Browser support
|
||||
You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify),
|
||||
or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest),
|
||||
if you don't want to build it yourself.
|
||||
|
||||
Debug's enable state is currently persisted by `localStorage`.
|
||||
Consider the situation shown below where you have `worker:a` and `worker:b`,
|
||||
and wish to debug both. You can enable this using `localStorage.debug`:
|
||||
## Browser Support
|
||||
|
||||
You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify),
|
||||
or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest),
|
||||
if you don't want to build it yourself.
|
||||
|
||||
Debug's enable state is currently persisted by `localStorage`.
|
||||
Consider the situation shown below where you have `worker:a` and `worker:b`,
|
||||
and wish to debug both. You can enable this using `localStorage.debug`:
|
||||
|
||||
```js
|
||||
localStorage.debug = 'worker:*'
|
||||
@@ -170,23 +241,12 @@ setInterval(function(){
|
||||
}, 1200);
|
||||
```
|
||||
|
||||
#### Web Inspector Colors
|
||||
|
||||
Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
|
||||
option. These are WebKit web inspectors, Firefox ([since version
|
||||
31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
|
||||
and the Firebug plugin for Firefox (any version).
|
||||
|
||||
Colored output looks something like:
|
||||
|
||||

|
||||
|
||||
|
||||
## Output streams
|
||||
|
||||
By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method:
|
||||
|
||||
Example _stdout.js_:
|
||||
Example [_stdout.js_](./examples/node/stdout.js):
|
||||
|
||||
```js
|
||||
var debug = require('debug');
|
||||
@@ -208,6 +268,71 @@ error('now goes to stdout via console.info');
|
||||
log('still goes to stdout, but via console.info now');
|
||||
```
|
||||
|
||||
## Extend
|
||||
You can simply extend debugger
|
||||
```js
|
||||
const log = require('debug')('auth');
|
||||
|
||||
//creates new debug instance with extended namespace
|
||||
const logSign = log.extend('sign');
|
||||
const logLogin = log.extend('login');
|
||||
|
||||
log('hello'); // auth hello
|
||||
logSign('hello'); //auth:sign hello
|
||||
logLogin('hello'); //auth:login hello
|
||||
```
|
||||
|
||||
## Set dynamically
|
||||
|
||||
You can also enable debug dynamically by calling the `enable()` method :
|
||||
|
||||
```js
|
||||
let debug = require('debug');
|
||||
|
||||
console.log(1, debug.enabled('test'));
|
||||
|
||||
debug.enable('test');
|
||||
console.log(2, debug.enabled('test'));
|
||||
|
||||
debug.disable();
|
||||
console.log(3, debug.enabled('test'));
|
||||
|
||||
```
|
||||
|
||||
print :
|
||||
```
|
||||
1 false
|
||||
2 true
|
||||
3 false
|
||||
```
|
||||
|
||||
Usage :
|
||||
`enable(namespaces)`
|
||||
`namespaces` can include modes separated by a colon and wildcards.
|
||||
|
||||
Note that calling `enable()` completely overrides previously set DEBUG variable :
|
||||
|
||||
```
|
||||
$ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))'
|
||||
=> false
|
||||
```
|
||||
|
||||
## Checking whether a debug target is enabled
|
||||
|
||||
After you've created a debug instance, you can determine whether or not it is
|
||||
enabled by checking the `enabled` property:
|
||||
|
||||
```javascript
|
||||
const debug = require('debug')('http');
|
||||
|
||||
if (debug.enabled) {
|
||||
// do stuff...
|
||||
}
|
||||
```
|
||||
|
||||
You can also manually toggle this property to force the debug instance to be
|
||||
enabled or disabled.
|
||||
|
||||
|
||||
## Authors
|
||||
|
||||
@@ -290,7 +415,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2014-2016 TJ Holowaychuk <tj@vision-media.ca>
|
||||
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
|
||||
19
node_modules/eslint-import-resolver-node/node_modules/debug/component.json
generated
vendored
19
node_modules/eslint-import-resolver-node/node_modules/debug/component.json
generated
vendored
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "debug",
|
||||
"repo": "visionmedia/debug",
|
||||
"description": "small debugging utility",
|
||||
"version": "2.6.9",
|
||||
"keywords": [
|
||||
"debug",
|
||||
"log",
|
||||
"debugger"
|
||||
],
|
||||
"main": "src/browser.js",
|
||||
"scripts": [
|
||||
"src/browser.js",
|
||||
"src/debug.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"rauchg/ms.js": "0.7.1"
|
||||
}
|
||||
}
|
||||
70
node_modules/eslint-import-resolver-node/node_modules/debug/karma.conf.js
generated
vendored
70
node_modules/eslint-import-resolver-node/node_modules/debug/karma.conf.js
generated
vendored
@@ -1,70 +0,0 @@
|
||||
// Karma configuration
|
||||
// Generated on Fri Dec 16 2016 13:09:51 GMT+0000 (UTC)
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
|
||||
// base path that will be used to resolve all patterns (eg. files, exclude)
|
||||
basePath: '',
|
||||
|
||||
|
||||
// frameworks to use
|
||||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
||||
frameworks: ['mocha', 'chai', 'sinon'],
|
||||
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'dist/debug.js',
|
||||
'test/*spec.js'
|
||||
],
|
||||
|
||||
|
||||
// list of files to exclude
|
||||
exclude: [
|
||||
'src/node.js'
|
||||
],
|
||||
|
||||
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
preprocessors: {
|
||||
},
|
||||
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ['progress'],
|
||||
|
||||
|
||||
// web server port
|
||||
port: 9876,
|
||||
|
||||
|
||||
// enable / disable colors in the output (reporters and logs)
|
||||
colors: true,
|
||||
|
||||
|
||||
// level of logging
|
||||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
||||
logLevel: config.LOG_INFO,
|
||||
|
||||
|
||||
// enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: true,
|
||||
|
||||
|
||||
// start these browsers
|
||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||
browsers: ['PhantomJS'],
|
||||
|
||||
|
||||
// Continuous Integration mode
|
||||
// if true, Karma captures browsers, runs the tests and exits
|
||||
singleRun: false,
|
||||
|
||||
// Concurrency level
|
||||
// how many browser should be started simultaneous
|
||||
concurrency: Infinity
|
||||
})
|
||||
}
|
||||
34
node_modules/eslint-import-resolver-node/node_modules/debug/package.json
generated
vendored
34
node_modules/eslint-import-resolver-node/node_modules/debug/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "debug",
|
||||
"version": "2.6.9",
|
||||
"version": "3.2.7",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/visionmedia/debug.git"
|
||||
@@ -11,6 +11,13 @@
|
||||
"log",
|
||||
"debugger"
|
||||
],
|
||||
"files": [
|
||||
"src",
|
||||
"node.js",
|
||||
"dist/debug.js",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
||||
"contributors": [
|
||||
"Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)",
|
||||
@@ -18,32 +25,27 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "2.0.0"
|
||||
"ms": "^2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "9.0.3",
|
||||
"@babel/cli": "^7.0.0",
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"browserify": "14.4.0",
|
||||
"chai": "^3.5.0",
|
||||
"concurrently": "^3.1.0",
|
||||
"coveralls": "^2.11.15",
|
||||
"eslint": "^3.12.1",
|
||||
"coveralls": "^3.0.2",
|
||||
"istanbul": "^0.4.5",
|
||||
"karma": "^1.3.0",
|
||||
"karma": "^3.0.0",
|
||||
"karma-chai": "^0.1.0",
|
||||
"karma-mocha": "^1.3.0",
|
||||
"karma-phantomjs-launcher": "^1.0.2",
|
||||
"karma-sinon": "^1.0.5",
|
||||
"mocha": "^3.2.0",
|
||||
"mocha": "^5.2.0",
|
||||
"mocha-lcov-reporter": "^1.2.0",
|
||||
"rimraf": "^2.5.4",
|
||||
"sinon": "^1.17.6",
|
||||
"sinon-chai": "^2.8.0"
|
||||
"xo": "^0.23.0"
|
||||
},
|
||||
"main": "./src/index.js",
|
||||
"browser": "./src/browser.js",
|
||||
"component": {
|
||||
"scripts": {
|
||||
"debug/index.js": "browser.js",
|
||||
"debug/debug.js": "debug.js"
|
||||
}
|
||||
}
|
||||
"unpkg": "./dist/debug.js"
|
||||
}
|
||||
165
node_modules/eslint-import-resolver-node/node_modules/debug/src/browser.js
generated
vendored
165
node_modules/eslint-import-resolver-node/node_modules/debug/src/browser.js
generated
vendored
@@ -1,33 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
/* eslint-env browser */
|
||||
|
||||
/**
|
||||
* This is the web browser implementation of `debug()`.
|
||||
*
|
||||
* Expose `debug()` as the module.
|
||||
*/
|
||||
|
||||
exports = module.exports = require('./debug');
|
||||
exports.log = log;
|
||||
exports.formatArgs = formatArgs;
|
||||
exports.save = save;
|
||||
exports.load = load;
|
||||
exports.useColors = useColors;
|
||||
exports.storage = 'undefined' != typeof chrome
|
||||
&& 'undefined' != typeof chrome.storage
|
||||
? chrome.storage.local
|
||||
: localstorage();
|
||||
|
||||
exports.storage = localstorage();
|
||||
/**
|
||||
* Colors.
|
||||
*/
|
||||
|
||||
exports.colors = [
|
||||
'lightseagreen',
|
||||
'forestgreen',
|
||||
'goldenrod',
|
||||
'dodgerblue',
|
||||
'darkorchid',
|
||||
'crimson'
|
||||
];
|
||||
|
||||
exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
|
||||
/**
|
||||
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
||||
* and the Firebug extension (any Firefox version) are known
|
||||
@@ -35,79 +25,65 @@ exports.colors = [
|
||||
*
|
||||
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
||||
*/
|
||||
// eslint-disable-next-line complexity
|
||||
|
||||
function useColors() {
|
||||
// NB: In an Electron preload script, document will be defined but not fully
|
||||
// initialized. Since we know we're in Chrome, we'll just detect this case
|
||||
// explicitly
|
||||
if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
|
||||
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
||||
return true;
|
||||
}
|
||||
} // Internet Explorer and Edge do not support colors.
|
||||
|
||||
// is webkit? http://stackoverflow.com/a/16459606/376773
|
||||
|
||||
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
||||
return false;
|
||||
} // Is webkit? http://stackoverflow.com/a/16459606/376773
|
||||
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
||||
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
||||
// is firebug? http://stackoverflow.com/a/398120/376773
|
||||
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
||||
// is firefox >= v31?
|
||||
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
||||
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
|
||||
// double check webkit in userAgent just in case we are in a worker
|
||||
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
||||
|
||||
|
||||
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
||||
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
||||
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
||||
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
||||
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
||||
}
|
||||
|
||||
/**
|
||||
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
||||
*/
|
||||
|
||||
exports.formatters.j = function(v) {
|
||||
try {
|
||||
return JSON.stringify(v);
|
||||
} catch (err) {
|
||||
return '[UnexpectedJSONParseError]: ' + err.message;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Colorize log arguments if enabled.
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
|
||||
|
||||
function formatArgs(args) {
|
||||
var useColors = this.useColors;
|
||||
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
|
||||
|
||||
args[0] = (useColors ? '%c' : '')
|
||||
+ this.namespace
|
||||
+ (useColors ? ' %c' : ' ')
|
||||
+ args[0]
|
||||
+ (useColors ? '%c ' : ' ')
|
||||
+ '+' + exports.humanize(this.diff);
|
||||
|
||||
if (!useColors) return;
|
||||
if (!this.useColors) {
|
||||
return;
|
||||
}
|
||||
|
||||
var c = 'color: ' + this.color;
|
||||
args.splice(1, 0, c, 'color: inherit')
|
||||
|
||||
// the final "%c" is somewhat tricky, because there could be other
|
||||
args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other
|
||||
// arguments passed either before or after the %c, so we need to
|
||||
// figure out the correct index to insert the CSS into
|
||||
|
||||
var index = 0;
|
||||
var lastC = 0;
|
||||
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
||||
if ('%%' === match) return;
|
||||
args[0].replace(/%[a-zA-Z%]/g, function (match) {
|
||||
if (match === '%%') {
|
||||
return;
|
||||
}
|
||||
|
||||
index++;
|
||||
if ('%c' === match) {
|
||||
// we only are interested in the *last* %c
|
||||
|
||||
if (match === '%c') {
|
||||
// We only are interested in the *last* %c
|
||||
// (the user may have provided their own)
|
||||
lastC = index;
|
||||
}
|
||||
});
|
||||
|
||||
args.splice(lastC, 0, c);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invokes `console.log()` when available.
|
||||
* No-op when `console.log` is not a "function".
|
||||
@@ -115,14 +91,14 @@ function formatArgs(args) {
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function log() {
|
||||
// this hackery is required for IE8/9, where
|
||||
// the `console.log` function doesn't have 'apply'
|
||||
return 'object' === typeof console
|
||||
&& console.log
|
||||
&& Function.prototype.apply.call(console.log, console, arguments);
|
||||
}
|
||||
|
||||
function log() {
|
||||
var _console;
|
||||
|
||||
// This hackery is required for IE8/9, where
|
||||
// the `console.log` function doesn't have 'apply'
|
||||
return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);
|
||||
}
|
||||
/**
|
||||
* Save `namespaces`.
|
||||
*
|
||||
@@ -130,16 +106,18 @@ function log() {
|
||||
* @api private
|
||||
*/
|
||||
|
||||
|
||||
function save(namespaces) {
|
||||
try {
|
||||
if (null == namespaces) {
|
||||
exports.storage.removeItem('debug');
|
||||
if (namespaces) {
|
||||
exports.storage.setItem('debug', namespaces);
|
||||
} else {
|
||||
exports.storage.debug = namespaces;
|
||||
exports.storage.removeItem('debug');
|
||||
}
|
||||
} catch(e) {}
|
||||
} catch (error) {// Swallow
|
||||
// XXX (@Qix-) should we be logging these?
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load `namespaces`.
|
||||
*
|
||||
@@ -147,26 +125,23 @@ function save(namespaces) {
|
||||
* @api private
|
||||
*/
|
||||
|
||||
|
||||
function load() {
|
||||
var r;
|
||||
try {
|
||||
r = exports.storage.debug;
|
||||
} catch(e) {}
|
||||
|
||||
try {
|
||||
r = exports.storage.getItem('debug');
|
||||
} catch (error) {} // Swallow
|
||||
// XXX (@Qix-) should we be logging these?
|
||||
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
||||
|
||||
|
||||
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
||||
r = process.env.DEBUG;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable namespaces listed in `localStorage.debug` initially.
|
||||
*/
|
||||
|
||||
exports.enable(load());
|
||||
|
||||
/**
|
||||
* Localstorage attempts to return the localstorage.
|
||||
*
|
||||
@@ -178,8 +153,28 @@ exports.enable(load());
|
||||
* @api private
|
||||
*/
|
||||
|
||||
|
||||
function localstorage() {
|
||||
try {
|
||||
return window.localStorage;
|
||||
} catch (e) {}
|
||||
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
||||
// The Browser also has localStorage in the global context.
|
||||
return localStorage;
|
||||
} catch (error) {// Swallow
|
||||
// XXX (@Qix-) should we be logging these?
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = require('./common')(exports);
|
||||
var formatters = module.exports.formatters;
|
||||
/**
|
||||
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
||||
*/
|
||||
|
||||
formatters.j = function (v) {
|
||||
try {
|
||||
return JSON.stringify(v);
|
||||
} catch (error) {
|
||||
return '[UnexpectedJSONParseError]: ' + error.message;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
249
node_modules/eslint-import-resolver-node/node_modules/debug/src/common.js
generated
vendored
Normal file
249
node_modules/eslint-import-resolver-node/node_modules/debug/src/common.js
generated
vendored
Normal file
@@ -0,0 +1,249 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* This is the common logic for both the Node.js and web browser
|
||||
* implementations of `debug()`.
|
||||
*/
|
||||
function setup(env) {
|
||||
createDebug.debug = createDebug;
|
||||
createDebug.default = createDebug;
|
||||
createDebug.coerce = coerce;
|
||||
createDebug.disable = disable;
|
||||
createDebug.enable = enable;
|
||||
createDebug.enabled = enabled;
|
||||
createDebug.humanize = require('ms');
|
||||
Object.keys(env).forEach(function (key) {
|
||||
createDebug[key] = env[key];
|
||||
});
|
||||
/**
|
||||
* Active `debug` instances.
|
||||
*/
|
||||
|
||||
createDebug.instances = [];
|
||||
/**
|
||||
* The currently active debug mode names, and names to skip.
|
||||
*/
|
||||
|
||||
createDebug.names = [];
|
||||
createDebug.skips = [];
|
||||
/**
|
||||
* Map of special "%n" handling functions, for the debug "format" argument.
|
||||
*
|
||||
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
||||
*/
|
||||
|
||||
createDebug.formatters = {};
|
||||
/**
|
||||
* Selects a color for a debug namespace
|
||||
* @param {String} namespace The namespace string for the for the debug instance to be colored
|
||||
* @return {Number|String} An ANSI color code for the given namespace
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function selectColor(namespace) {
|
||||
var hash = 0;
|
||||
|
||||
for (var i = 0; i < namespace.length; i++) {
|
||||
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
||||
hash |= 0; // Convert to 32bit integer
|
||||
}
|
||||
|
||||
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
||||
}
|
||||
|
||||
createDebug.selectColor = selectColor;
|
||||
/**
|
||||
* Create a debugger with the given `namespace`.
|
||||
*
|
||||
* @param {String} namespace
|
||||
* @return {Function}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function createDebug(namespace) {
|
||||
var prevTime;
|
||||
|
||||
function debug() {
|
||||
// Disabled?
|
||||
if (!debug.enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
var self = debug; // Set `diff` timestamp
|
||||
|
||||
var curr = Number(new Date());
|
||||
var ms = curr - (prevTime || curr);
|
||||
self.diff = ms;
|
||||
self.prev = prevTime;
|
||||
self.curr = curr;
|
||||
prevTime = curr;
|
||||
args[0] = createDebug.coerce(args[0]);
|
||||
|
||||
if (typeof args[0] !== 'string') {
|
||||
// Anything else let's inspect with %O
|
||||
args.unshift('%O');
|
||||
} // Apply any `formatters` transformations
|
||||
|
||||
|
||||
var index = 0;
|
||||
args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {
|
||||
// If we encounter an escaped % then don't increase the array index
|
||||
if (match === '%%') {
|
||||
return match;
|
||||
}
|
||||
|
||||
index++;
|
||||
var formatter = createDebug.formatters[format];
|
||||
|
||||
if (typeof formatter === 'function') {
|
||||
var val = args[index];
|
||||
match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`
|
||||
|
||||
args.splice(index, 1);
|
||||
index--;
|
||||
}
|
||||
|
||||
return match;
|
||||
}); // Apply env-specific formatting (colors, etc.)
|
||||
|
||||
createDebug.formatArgs.call(self, args);
|
||||
var logFn = self.log || createDebug.log;
|
||||
logFn.apply(self, args);
|
||||
}
|
||||
|
||||
debug.namespace = namespace;
|
||||
debug.enabled = createDebug.enabled(namespace);
|
||||
debug.useColors = createDebug.useColors();
|
||||
debug.color = selectColor(namespace);
|
||||
debug.destroy = destroy;
|
||||
debug.extend = extend; // Debug.formatArgs = formatArgs;
|
||||
// debug.rawLog = rawLog;
|
||||
// env-specific initialization logic for debug instances
|
||||
|
||||
if (typeof createDebug.init === 'function') {
|
||||
createDebug.init(debug);
|
||||
}
|
||||
|
||||
createDebug.instances.push(debug);
|
||||
return debug;
|
||||
}
|
||||
|
||||
function destroy() {
|
||||
var index = createDebug.instances.indexOf(this);
|
||||
|
||||
if (index !== -1) {
|
||||
createDebug.instances.splice(index, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function extend(namespace, delimiter) {
|
||||
return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
||||
}
|
||||
/**
|
||||
* Enables a debug mode by namespaces. This can include modes
|
||||
* separated by a colon and wildcards.
|
||||
*
|
||||
* @param {String} namespaces
|
||||
* @api public
|
||||
*/
|
||||
|
||||
|
||||
function enable(namespaces) {
|
||||
createDebug.save(namespaces);
|
||||
createDebug.names = [];
|
||||
createDebug.skips = [];
|
||||
var i;
|
||||
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
||||
var len = split.length;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
if (!split[i]) {
|
||||
// ignore empty strings
|
||||
continue;
|
||||
}
|
||||
|
||||
namespaces = split[i].replace(/\*/g, '.*?');
|
||||
|
||||
if (namespaces[0] === '-') {
|
||||
createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
||||
} else {
|
||||
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < createDebug.instances.length; i++) {
|
||||
var instance = createDebug.instances[i];
|
||||
instance.enabled = createDebug.enabled(instance.namespace);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Disable debug output.
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
|
||||
|
||||
function disable() {
|
||||
createDebug.enable('');
|
||||
}
|
||||
/**
|
||||
* Returns true if the given mode name is enabled, false otherwise.
|
||||
*
|
||||
* @param {String} name
|
||||
* @return {Boolean}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
|
||||
function enabled(name) {
|
||||
if (name[name.length - 1] === '*') {
|
||||
return true;
|
||||
}
|
||||
|
||||
var i;
|
||||
var len;
|
||||
|
||||
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
||||
if (createDebug.skips[i].test(name)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
||||
if (createDebug.names[i].test(name)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Coerce `val`.
|
||||
*
|
||||
* @param {Mixed} val
|
||||
* @return {Mixed}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
|
||||
function coerce(val) {
|
||||
if (val instanceof Error) {
|
||||
return val.stack || val.message;
|
||||
}
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
createDebug.enable(createDebug.load());
|
||||
return createDebug;
|
||||
}
|
||||
|
||||
module.exports = setup;
|
||||
|
||||
202
node_modules/eslint-import-resolver-node/node_modules/debug/src/debug.js
generated
vendored
202
node_modules/eslint-import-resolver-node/node_modules/debug/src/debug.js
generated
vendored
@@ -1,202 +0,0 @@
|
||||
|
||||
/**
|
||||
* This is the common logic for both the Node.js and web browser
|
||||
* implementations of `debug()`.
|
||||
*
|
||||
* Expose `debug()` as the module.
|
||||
*/
|
||||
|
||||
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
|
||||
exports.coerce = coerce;
|
||||
exports.disable = disable;
|
||||
exports.enable = enable;
|
||||
exports.enabled = enabled;
|
||||
exports.humanize = require('ms');
|
||||
|
||||
/**
|
||||
* The currently active debug mode names, and names to skip.
|
||||
*/
|
||||
|
||||
exports.names = [];
|
||||
exports.skips = [];
|
||||
|
||||
/**
|
||||
* Map of special "%n" handling functions, for the debug "format" argument.
|
||||
*
|
||||
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
||||
*/
|
||||
|
||||
exports.formatters = {};
|
||||
|
||||
/**
|
||||
* Previous log timestamp.
|
||||
*/
|
||||
|
||||
var prevTime;
|
||||
|
||||
/**
|
||||
* Select a color.
|
||||
* @param {String} namespace
|
||||
* @return {Number}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function selectColor(namespace) {
|
||||
var hash = 0, i;
|
||||
|
||||
for (i in namespace) {
|
||||
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
|
||||
hash |= 0; // Convert to 32bit integer
|
||||
}
|
||||
|
||||
return exports.colors[Math.abs(hash) % exports.colors.length];
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a debugger with the given `namespace`.
|
||||
*
|
||||
* @param {String} namespace
|
||||
* @return {Function}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function createDebug(namespace) {
|
||||
|
||||
function debug() {
|
||||
// disabled?
|
||||
if (!debug.enabled) return;
|
||||
|
||||
var self = debug;
|
||||
|
||||
// set `diff` timestamp
|
||||
var curr = +new Date();
|
||||
var ms = curr - (prevTime || curr);
|
||||
self.diff = ms;
|
||||
self.prev = prevTime;
|
||||
self.curr = curr;
|
||||
prevTime = curr;
|
||||
|
||||
// turn the `arguments` into a proper Array
|
||||
var args = new Array(arguments.length);
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
args[i] = arguments[i];
|
||||
}
|
||||
|
||||
args[0] = exports.coerce(args[0]);
|
||||
|
||||
if ('string' !== typeof args[0]) {
|
||||
// anything else let's inspect with %O
|
||||
args.unshift('%O');
|
||||
}
|
||||
|
||||
// apply any `formatters` transformations
|
||||
var index = 0;
|
||||
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
||||
// if we encounter an escaped % then don't increase the array index
|
||||
if (match === '%%') return match;
|
||||
index++;
|
||||
var formatter = exports.formatters[format];
|
||||
if ('function' === typeof formatter) {
|
||||
var val = args[index];
|
||||
match = formatter.call(self, val);
|
||||
|
||||
// now we need to remove `args[index]` since it's inlined in the `format`
|
||||
args.splice(index, 1);
|
||||
index--;
|
||||
}
|
||||
return match;
|
||||
});
|
||||
|
||||
// apply env-specific formatting (colors, etc.)
|
||||
exports.formatArgs.call(self, args);
|
||||
|
||||
var logFn = debug.log || exports.log || console.log.bind(console);
|
||||
logFn.apply(self, args);
|
||||
}
|
||||
|
||||
debug.namespace = namespace;
|
||||
debug.enabled = exports.enabled(namespace);
|
||||
debug.useColors = exports.useColors();
|
||||
debug.color = selectColor(namespace);
|
||||
|
||||
// env-specific initialization logic for debug instances
|
||||
if ('function' === typeof exports.init) {
|
||||
exports.init(debug);
|
||||
}
|
||||
|
||||
return debug;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables a debug mode by namespaces. This can include modes
|
||||
* separated by a colon and wildcards.
|
||||
*
|
||||
* @param {String} namespaces
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function enable(namespaces) {
|
||||
exports.save(namespaces);
|
||||
|
||||
exports.names = [];
|
||||
exports.skips = [];
|
||||
|
||||
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
||||
var len = split.length;
|
||||
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (!split[i]) continue; // ignore empty strings
|
||||
namespaces = split[i].replace(/\*/g, '.*?');
|
||||
if (namespaces[0] === '-') {
|
||||
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
||||
} else {
|
||||
exports.names.push(new RegExp('^' + namespaces + '$'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable debug output.
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function disable() {
|
||||
exports.enable('');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the given mode name is enabled, false otherwise.
|
||||
*
|
||||
* @param {String} name
|
||||
* @return {Boolean}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function enabled(name) {
|
||||
var i, len;
|
||||
for (i = 0, len = exports.skips.length; i < len; i++) {
|
||||
if (exports.skips[i].test(name)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for (i = 0, len = exports.names.length; i < len; i++) {
|
||||
if (exports.names[i].test(name)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Coerce `val`.
|
||||
*
|
||||
* @param {Mixed} val
|
||||
* @return {Mixed}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function coerce(val) {
|
||||
if (val instanceof Error) return val.stack || val.message;
|
||||
return val;
|
||||
}
|
||||
8
node_modules/eslint-import-resolver-node/node_modules/debug/src/index.js
generated
vendored
8
node_modules/eslint-import-resolver-node/node_modules/debug/src/index.js
generated
vendored
@@ -1,10 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Detect Electron renderer process, which is node, but we should
|
||||
* Detect Electron renderer / nwjs process, which is node, but we should
|
||||
* treat as a browser.
|
||||
*/
|
||||
|
||||
if (typeof process !== 'undefined' && process.type === 'renderer') {
|
||||
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
||||
module.exports = require('./browser.js');
|
||||
} else {
|
||||
module.exports = require('./node.js');
|
||||
}
|
||||
|
||||
|
||||
15
node_modules/eslint-import-resolver-node/node_modules/debug/src/inspector-log.js
generated
vendored
15
node_modules/eslint-import-resolver-node/node_modules/debug/src/inspector-log.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
module.exports = inspectorLog;
|
||||
|
||||
// black hole
|
||||
const nullStream = new (require('stream').Writable)();
|
||||
nullStream._write = () => {};
|
||||
|
||||
/**
|
||||
* Outputs a `console.log()` to the Node.js Inspector console *only*.
|
||||
*/
|
||||
function inspectorLog() {
|
||||
const stdout = console._stdout;
|
||||
console._stdout = nullStream;
|
||||
console.log.apply(console, arguments);
|
||||
console._stdout = stdout;
|
||||
}
|
||||
223
node_modules/eslint-import-resolver-node/node_modules/debug/src/node.js
generated
vendored
223
node_modules/eslint-import-resolver-node/node_modules/debug/src/node.js
generated
vendored
@@ -1,134 +1,112 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var tty = require('tty');
|
||||
var util = require('util');
|
||||
|
||||
var util = require('util');
|
||||
/**
|
||||
* This is the Node.js implementation of `debug()`.
|
||||
*
|
||||
* Expose `debug()` as the module.
|
||||
*/
|
||||
|
||||
exports = module.exports = require('./debug');
|
||||
|
||||
exports.init = init;
|
||||
exports.log = log;
|
||||
exports.formatArgs = formatArgs;
|
||||
exports.save = save;
|
||||
exports.load = load;
|
||||
exports.useColors = useColors;
|
||||
|
||||
/**
|
||||
* Colors.
|
||||
*/
|
||||
|
||||
exports.colors = [6, 2, 3, 4, 5, 1];
|
||||
|
||||
try {
|
||||
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
var supportsColor = require('supports-color');
|
||||
|
||||
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
||||
exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
||||
}
|
||||
} catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
||||
|
||||
/**
|
||||
* Build up the default `inspectOpts` object from the environment variables.
|
||||
*
|
||||
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
||||
*/
|
||||
|
||||
|
||||
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
||||
return /^debug_/i.test(key);
|
||||
}).reduce(function (obj, key) {
|
||||
// camel-case
|
||||
var prop = key
|
||||
.substring(6)
|
||||
.toLowerCase()
|
||||
.replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
|
||||
// Camel-case
|
||||
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {
|
||||
return k.toUpperCase();
|
||||
}); // Coerce string value into JS value
|
||||
|
||||
// coerce string value into JS value
|
||||
var val = process.env[key];
|
||||
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
||||
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
||||
else if (val === 'null') val = null;
|
||||
else val = Number(val);
|
||||
|
||||
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
||||
val = true;
|
||||
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
||||
val = false;
|
||||
} else if (val === 'null') {
|
||||
val = null;
|
||||
} else {
|
||||
val = Number(val);
|
||||
}
|
||||
|
||||
obj[prop] = val;
|
||||
return obj;
|
||||
}, {});
|
||||
|
||||
/**
|
||||
* The file descriptor to write the `debug()` calls to.
|
||||
* Set the `DEBUG_FD` env variable to override with another value. i.e.:
|
||||
*
|
||||
* $ DEBUG_FD=3 node script.js 3>debug.log
|
||||
*/
|
||||
|
||||
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
||||
|
||||
if (1 !== fd && 2 !== fd) {
|
||||
util.deprecate(function(){}, 'except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)')()
|
||||
}
|
||||
|
||||
var stream = 1 === fd ? process.stdout :
|
||||
2 === fd ? process.stderr :
|
||||
createWritableStdioStream(fd);
|
||||
|
||||
/**
|
||||
* Is stdout a TTY? Colored output is enabled when `true`.
|
||||
*/
|
||||
|
||||
function useColors() {
|
||||
return 'colors' in exports.inspectOpts
|
||||
? Boolean(exports.inspectOpts.colors)
|
||||
: tty.isatty(fd);
|
||||
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
||||
}
|
||||
|
||||
/**
|
||||
* Map %o to `util.inspect()`, all on a single line.
|
||||
*/
|
||||
|
||||
exports.formatters.o = function(v) {
|
||||
this.inspectOpts.colors = this.useColors;
|
||||
return util.inspect(v, this.inspectOpts)
|
||||
.split('\n').map(function(str) {
|
||||
return str.trim()
|
||||
}).join(' ');
|
||||
};
|
||||
|
||||
/**
|
||||
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
||||
*/
|
||||
|
||||
exports.formatters.O = function(v) {
|
||||
this.inspectOpts.colors = this.useColors;
|
||||
return util.inspect(v, this.inspectOpts);
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds ANSI color escape codes if enabled.
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
|
||||
|
||||
function formatArgs(args) {
|
||||
var name = this.namespace;
|
||||
var useColors = this.useColors;
|
||||
var name = this.namespace,
|
||||
useColors = this.useColors;
|
||||
|
||||
if (useColors) {
|
||||
var c = this.color;
|
||||
var prefix = ' \u001b[3' + c + ';1m' + name + ' ' + '\u001b[0m';
|
||||
|
||||
var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
|
||||
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
|
||||
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
||||
args.push('\u001b[3' + c + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
|
||||
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
|
||||
} else {
|
||||
args[0] = new Date().toUTCString()
|
||||
+ ' ' + name + ' ' + args[0];
|
||||
args[0] = getDate() + name + ' ' + args[0];
|
||||
}
|
||||
}
|
||||
|
||||
function getDate() {
|
||||
if (exports.inspectOpts.hideDate) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return new Date().toISOString() + ' ';
|
||||
}
|
||||
/**
|
||||
* Invokes `util.format()` with the specified arguments and writes to `stream`.
|
||||
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
||||
*/
|
||||
|
||||
function log() {
|
||||
return stream.write(util.format.apply(util, arguments) + '\n');
|
||||
}
|
||||
|
||||
function log() {
|
||||
return process.stderr.write(util.format.apply(util, arguments) + '\n');
|
||||
}
|
||||
/**
|
||||
* Save `namespaces`.
|
||||
*
|
||||
@@ -136,16 +114,16 @@ function log() {
|
||||
* @api private
|
||||
*/
|
||||
|
||||
|
||||
function save(namespaces) {
|
||||
if (null == namespaces) {
|
||||
if (namespaces) {
|
||||
process.env.DEBUG = namespaces;
|
||||
} else {
|
||||
// If you set a process.env field to null or undefined, it gets cast to the
|
||||
// string 'null' or 'undefined'. Just delete instead.
|
||||
delete process.env.DEBUG;
|
||||
} else {
|
||||
process.env.DEBUG = namespaces;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load `namespaces`.
|
||||
*
|
||||
@@ -153,78 +131,10 @@ function save(namespaces) {
|
||||
* @api private
|
||||
*/
|
||||
|
||||
|
||||
function load() {
|
||||
return process.env.DEBUG;
|
||||
}
|
||||
|
||||
/**
|
||||
* Copied from `node/src/node.js`.
|
||||
*
|
||||
* XXX: It's lame that node doesn't expose this API out-of-the-box. It also
|
||||
* relies on the undocumented `tty_wrap.guessHandleType()` which is also lame.
|
||||
*/
|
||||
|
||||
function createWritableStdioStream (fd) {
|
||||
var stream;
|
||||
var tty_wrap = process.binding('tty_wrap');
|
||||
|
||||
// Note stream._type is used for test-module-load-list.js
|
||||
|
||||
switch (tty_wrap.guessHandleType(fd)) {
|
||||
case 'TTY':
|
||||
stream = new tty.WriteStream(fd);
|
||||
stream._type = 'tty';
|
||||
|
||||
// Hack to have stream not keep the event loop alive.
|
||||
// See https://github.com/joyent/node/issues/1726
|
||||
if (stream._handle && stream._handle.unref) {
|
||||
stream._handle.unref();
|
||||
}
|
||||
break;
|
||||
|
||||
case 'FILE':
|
||||
var fs = require('fs');
|
||||
stream = new fs.SyncWriteStream(fd, { autoClose: false });
|
||||
stream._type = 'fs';
|
||||
break;
|
||||
|
||||
case 'PIPE':
|
||||
case 'TCP':
|
||||
var net = require('net');
|
||||
stream = new net.Socket({
|
||||
fd: fd,
|
||||
readable: false,
|
||||
writable: true
|
||||
});
|
||||
|
||||
// FIXME Should probably have an option in net.Socket to create a
|
||||
// stream from an existing fd which is writable only. But for now
|
||||
// we'll just add this hack and set the `readable` member to false.
|
||||
// Test: ./node test/fixtures/echo.js < /etc/passwd
|
||||
stream.readable = false;
|
||||
stream.read = null;
|
||||
stream._type = 'pipe';
|
||||
|
||||
// FIXME Hack to have stream not keep the event loop alive.
|
||||
// See https://github.com/joyent/node/issues/1726
|
||||
if (stream._handle && stream._handle.unref) {
|
||||
stream._handle.unref();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
// Probably an error on in uv_guess_handle()
|
||||
throw new Error('Implement me. Unknown stream file type!');
|
||||
}
|
||||
|
||||
// For supporting legacy API we put the FD here.
|
||||
stream.fd = fd;
|
||||
|
||||
stream._isStdio = true;
|
||||
|
||||
return stream;
|
||||
}
|
||||
|
||||
/**
|
||||
* Init logic for `debug` instances.
|
||||
*
|
||||
@@ -232,17 +142,36 @@ function createWritableStdioStream (fd) {
|
||||
* differently for a particular `debug` instance.
|
||||
*/
|
||||
|
||||
function init (debug) {
|
||||
debug.inspectOpts = {};
|
||||
|
||||
function init(debug) {
|
||||
debug.inspectOpts = {};
|
||||
var keys = Object.keys(exports.inspectOpts);
|
||||
|
||||
for (var i = 0; i < keys.length; i++) {
|
||||
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = require('./common')(exports);
|
||||
var formatters = module.exports.formatters;
|
||||
/**
|
||||
* Enable namespaces listed in `process.env.DEBUG` initially.
|
||||
* Map %o to `util.inspect()`, all on a single line.
|
||||
*/
|
||||
|
||||
exports.enable(load());
|
||||
formatters.o = function (v) {
|
||||
this.inspectOpts.colors = this.useColors;
|
||||
return util.inspect(v, this.inspectOpts)
|
||||
.split('\n')
|
||||
.map(function (str) { return str.trim(); })
|
||||
.join(' ');
|
||||
};
|
||||
/**
|
||||
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
||||
*/
|
||||
|
||||
|
||||
formatters.O = function (v) {
|
||||
this.inspectOpts.colors = this.useColors;
|
||||
return util.inspect(v, this.inspectOpts);
|
||||
};
|
||||
|
||||
|
||||
152
node_modules/eslint-import-resolver-node/node_modules/ms/index.js
generated
vendored
152
node_modules/eslint-import-resolver-node/node_modules/ms/index.js
generated
vendored
@@ -1,152 +0,0 @@
|
||||
/**
|
||||
* Helpers.
|
||||
*/
|
||||
|
||||
var s = 1000;
|
||||
var m = s * 60;
|
||||
var h = m * 60;
|
||||
var d = h * 24;
|
||||
var y = d * 365.25;
|
||||
|
||||
/**
|
||||
* Parse or format the given `val`.
|
||||
*
|
||||
* Options:
|
||||
*
|
||||
* - `long` verbose formatting [false]
|
||||
*
|
||||
* @param {String|Number} val
|
||||
* @param {Object} [options]
|
||||
* @throws {Error} throw an error if val is not a non-empty string or a number
|
||||
* @return {String|Number}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function(val, options) {
|
||||
options = options || {};
|
||||
var type = typeof val;
|
||||
if (type === 'string' && val.length > 0) {
|
||||
return parse(val);
|
||||
} else if (type === 'number' && isNaN(val) === false) {
|
||||
return options.long ? fmtLong(val) : fmtShort(val);
|
||||
}
|
||||
throw new Error(
|
||||
'val is not a non-empty string or a valid number. val=' +
|
||||
JSON.stringify(val)
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Parse the given `str` and return milliseconds.
|
||||
*
|
||||
* @param {String} str
|
||||
* @return {Number}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function parse(str) {
|
||||
str = String(str);
|
||||
if (str.length > 100) {
|
||||
return;
|
||||
}
|
||||
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
|
||||
str
|
||||
);
|
||||
if (!match) {
|
||||
return;
|
||||
}
|
||||
var n = parseFloat(match[1]);
|
||||
var type = (match[2] || 'ms').toLowerCase();
|
||||
switch (type) {
|
||||
case 'years':
|
||||
case 'year':
|
||||
case 'yrs':
|
||||
case 'yr':
|
||||
case 'y':
|
||||
return n * y;
|
||||
case 'days':
|
||||
case 'day':
|
||||
case 'd':
|
||||
return n * d;
|
||||
case 'hours':
|
||||
case 'hour':
|
||||
case 'hrs':
|
||||
case 'hr':
|
||||
case 'h':
|
||||
return n * h;
|
||||
case 'minutes':
|
||||
case 'minute':
|
||||
case 'mins':
|
||||
case 'min':
|
||||
case 'm':
|
||||
return n * m;
|
||||
case 'seconds':
|
||||
case 'second':
|
||||
case 'secs':
|
||||
case 'sec':
|
||||
case 's':
|
||||
return n * s;
|
||||
case 'milliseconds':
|
||||
case 'millisecond':
|
||||
case 'msecs':
|
||||
case 'msec':
|
||||
case 'ms':
|
||||
return n;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Short format for `ms`.
|
||||
*
|
||||
* @param {Number} ms
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function fmtShort(ms) {
|
||||
if (ms >= d) {
|
||||
return Math.round(ms / d) + 'd';
|
||||
}
|
||||
if (ms >= h) {
|
||||
return Math.round(ms / h) + 'h';
|
||||
}
|
||||
if (ms >= m) {
|
||||
return Math.round(ms / m) + 'm';
|
||||
}
|
||||
if (ms >= s) {
|
||||
return Math.round(ms / s) + 's';
|
||||
}
|
||||
return ms + 'ms';
|
||||
}
|
||||
|
||||
/**
|
||||
* Long format for `ms`.
|
||||
*
|
||||
* @param {Number} ms
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function fmtLong(ms) {
|
||||
return plural(ms, d, 'day') ||
|
||||
plural(ms, h, 'hour') ||
|
||||
plural(ms, m, 'minute') ||
|
||||
plural(ms, s, 'second') ||
|
||||
ms + ' ms';
|
||||
}
|
||||
|
||||
/**
|
||||
* Pluralization helper.
|
||||
*/
|
||||
|
||||
function plural(ms, n, name) {
|
||||
if (ms < n) {
|
||||
return;
|
||||
}
|
||||
if (ms < n * 1.5) {
|
||||
return Math.floor(ms / n) + ' ' + name;
|
||||
}
|
||||
return Math.ceil(ms / n) + ' ' + name + 's';
|
||||
}
|
||||
21
node_modules/eslint-import-resolver-node/node_modules/ms/license.md
generated
vendored
21
node_modules/eslint-import-resolver-node/node_modules/ms/license.md
generated
vendored
@@ -1,21 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Zeit, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
37
node_modules/eslint-import-resolver-node/node_modules/ms/package.json
generated
vendored
37
node_modules/eslint-import-resolver-node/node_modules/ms/package.json
generated
vendored
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"name": "ms",
|
||||
"version": "2.0.0",
|
||||
"description": "Tiny milisecond conversion utility",
|
||||
"repository": "zeit/ms",
|
||||
"main": "./index",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"scripts": {
|
||||
"precommit": "lint-staged",
|
||||
"lint": "eslint lib/* bin/*",
|
||||
"test": "mocha tests.js"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "eslint:recommended",
|
||||
"env": {
|
||||
"node": true,
|
||||
"es6": true
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"npm run lint",
|
||||
"prettier --single-quote --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"eslint": "3.19.0",
|
||||
"expect.js": "0.3.1",
|
||||
"husky": "0.13.3",
|
||||
"lint-staged": "3.4.1",
|
||||
"mocha": "3.4.1"
|
||||
}
|
||||
}
|
||||
51
node_modules/eslint-import-resolver-node/node_modules/ms/readme.md
generated
vendored
51
node_modules/eslint-import-resolver-node/node_modules/ms/readme.md
generated
vendored
@@ -1,51 +0,0 @@
|
||||
# ms
|
||||
|
||||
[](https://travis-ci.org/zeit/ms)
|
||||
[](https://zeit.chat/)
|
||||
|
||||
Use this package to easily convert various time formats to milliseconds.
|
||||
|
||||
## Examples
|
||||
|
||||
```js
|
||||
ms('2 days') // 172800000
|
||||
ms('1d') // 86400000
|
||||
ms('10h') // 36000000
|
||||
ms('2.5 hrs') // 9000000
|
||||
ms('2h') // 7200000
|
||||
ms('1m') // 60000
|
||||
ms('5s') // 5000
|
||||
ms('1y') // 31557600000
|
||||
ms('100') // 100
|
||||
```
|
||||
|
||||
### Convert from milliseconds
|
||||
|
||||
```js
|
||||
ms(60000) // "1m"
|
||||
ms(2 * 60000) // "2m"
|
||||
ms(ms('10 hours')) // "10h"
|
||||
```
|
||||
|
||||
### Time format written-out
|
||||
|
||||
```js
|
||||
ms(60000, { long: true }) // "1 minute"
|
||||
ms(2 * 60000, { long: true }) // "2 minutes"
|
||||
ms(ms('10 hours'), { long: true }) // "10 hours"
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- Works both in [node](https://nodejs.org) and in the browser.
|
||||
- If a number is supplied to `ms`, a string with a unit is returned.
|
||||
- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`).
|
||||
- If you pass a string with a number and a valid unit, the number of equivalent ms is returned.
|
||||
|
||||
## Caught a bug?
|
||||
|
||||
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
|
||||
2. Link the package to the global module directory: `npm link`
|
||||
3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms!
|
||||
|
||||
As always, you can run the tests using: `npm test`
|
||||
21
node_modules/eslint-import-resolver-node/package.json
generated
vendored
21
node_modules/eslint-import-resolver-node/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-import-resolver-node",
|
||||
"version": "0.3.4",
|
||||
"version": "0.3.5",
|
||||
"description": "Node default behavior import resolution plugin for eslint-plugin-import.",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/benmosher/eslint-plugin-import"
|
||||
"url": "https://github.com/import-js/eslint-plugin-import"
|
||||
},
|
||||
"keywords": [
|
||||
"eslint",
|
||||
@@ -26,22 +26,17 @@
|
||||
"author": "Ben Mosher (me@benmosher.com)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/benmosher/eslint-plugin-import/issues"
|
||||
"url": "https://github.com/import-js/eslint-plugin-import/issues"
|
||||
},
|
||||
"homepage": "https://github.com/benmosher/eslint-plugin-import",
|
||||
"homepage": "https://github.com/import-js/eslint-plugin-import",
|
||||
"dependencies": {
|
||||
"debug": "^2.6.9",
|
||||
"resolve": "^1.13.1"
|
||||
"debug": "^3.2.7",
|
||||
"resolve": "^1.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^3.5.0",
|
||||
"coveralls": "^3.0.0",
|
||||
"coveralls": "^3.1.0",
|
||||
"mocha": "^3.5.3",
|
||||
"nyc": "^11.7.1"
|
||||
},
|
||||
"nyc": {
|
||||
"exclude": [
|
||||
"test/"
|
||||
]
|
||||
"nyc": "^11.9.0"
|
||||
}
|
||||
}
|
||||
5
node_modules/eslint-module-utils/.eslintrc
generated
vendored
Normal file
5
node_modules/eslint-module-utils/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
},
|
||||
}
|
||||
57
node_modules/eslint-module-utils/CHANGELOG.md
generated
vendored
57
node_modules/eslint-module-utils/CHANGELOG.md
generated
vendored
@@ -5,6 +5,11 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
|
||||
|
||||
## Unreleased
|
||||
|
||||
## v2.6.2 - 2021-08-08
|
||||
|
||||
### Fixed
|
||||
- Use `context.getPhysicalFilename()` when available (ESLint 7.28+) ([#2160], thanks [@pmcelhaney])
|
||||
|
||||
## v2.6.1 - 2021-05-13
|
||||
|
||||
### Fixed
|
||||
@@ -85,33 +90,35 @@ Yanked due to critical issue with cache key resulting from #839.
|
||||
### Fixed
|
||||
- `unambiguous.test()` regex is now properly in multiline mode
|
||||
|
||||
[#2026]: https://github.com/benmosher/eslint-plugin-import/pull/2026
|
||||
[#1786]: https://github.com/benmosher/eslint-plugin-import/pull/1786
|
||||
[#1671]: https://github.com/benmosher/eslint-plugin-import/pull/1671
|
||||
[#1606]: https://github.com/benmosher/eslint-plugin-import/pull/1606
|
||||
[#1602]: https://github.com/benmosher/eslint-plugin-import/pull/1602
|
||||
[#1591]: https://github.com/benmosher/eslint-plugin-import/pull/1591
|
||||
[#1551]: https://github.com/benmosher/eslint-plugin-import/pull/1551
|
||||
[#1435]: https://github.com/benmosher/eslint-plugin-import/pull/1435
|
||||
[#1409]: https://github.com/benmosher/eslint-plugin-import/pull/1409
|
||||
[#1356]: https://github.com/benmosher/eslint-plugin-import/pull/1356
|
||||
[#1290]: https://github.com/benmosher/eslint-plugin-import/pull/1290
|
||||
[#1218]: https://github.com/benmosher/eslint-plugin-import/pull/1218
|
||||
[#1166]: https://github.com/benmosher/eslint-plugin-import/issues/1166
|
||||
[#1160]: https://github.com/benmosher/eslint-plugin-import/pull/1160
|
||||
[#1035]: https://github.com/benmosher/eslint-plugin-import/issues/1035
|
||||
[#599]: https://github.com/benmosher/eslint-plugin-import/pull/599
|
||||
[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160
|
||||
[#2026]: https://github.com/import-js/eslint-plugin-import/pull/2026
|
||||
[#1786]: https://github.com/import-js/eslint-plugin-import/pull/1786
|
||||
[#1671]: https://github.com/import-js/eslint-plugin-import/pull/1671
|
||||
[#1606]: https://github.com/import-js/eslint-plugin-import/pull/1606
|
||||
[#1602]: https://github.com/import-js/eslint-plugin-import/pull/1602
|
||||
[#1591]: https://github.com/import-js/eslint-plugin-import/pull/1591
|
||||
[#1551]: https://github.com/import-js/eslint-plugin-import/pull/1551
|
||||
[#1435]: https://github.com/import-js/eslint-plugin-import/pull/1435
|
||||
[#1409]: https://github.com/import-js/eslint-plugin-import/pull/1409
|
||||
[#1356]: https://github.com/import-js/eslint-plugin-import/pull/1356
|
||||
[#1290]: https://github.com/import-js/eslint-plugin-import/pull/1290
|
||||
[#1218]: https://github.com/import-js/eslint-plugin-import/pull/1218
|
||||
[#1166]: https://github.com/import-js/eslint-plugin-import/issues/1166
|
||||
[#1160]: https://github.com/import-js/eslint-plugin-import/pull/1160
|
||||
[#1035]: https://github.com/import-js/eslint-plugin-import/issues/1035
|
||||
[#599]: https://github.com/import-js/eslint-plugin-import/pull/599
|
||||
|
||||
[@hulkish]: https://github.com/hulkish
|
||||
[@timkraut]: https://github.com/timkraut
|
||||
[@vikr01]: https://github.com/vikr01
|
||||
[@bradzacher]: https://github.com/bradzacher
|
||||
[@christophercurrie]: https://github.com/christophercurrie
|
||||
[@brettz9]: https://github.com/brettz9
|
||||
[@JounQin]: https://github.com/JounQin
|
||||
[@aladdin-add]: https://github.com/aladdin-add
|
||||
[@arcanis]: https://github.com/arcanis
|
||||
[@sompylasar]: https://github.com/sompylasar
|
||||
[@bradzacher]: https://github.com/bradzacher
|
||||
[@brettz9]: https://github.com/brettz9
|
||||
[@christophercurrie]: https://github.com/christophercurrie
|
||||
[@hulkish]: https://github.com/hulkish
|
||||
[@iamnapo]: https://github.com/iamnapo
|
||||
[@JounQin]: https://github.com/JounQin
|
||||
[@kaiyoma]: https://github.com/kaiyoma
|
||||
[@manuth]: https://github.com/manuth
|
||||
[@aladdin-add]: https://github.com/aladdin-add
|
||||
[@pmcelhaney]: https://github.com/pmcelhaney
|
||||
[@sompylasar]: https://github.com/sompylasar
|
||||
[@timkraut]: https://github.com/timkraut
|
||||
[@vikr01]: https://github.com/vikr01
|
||||
8
node_modules/eslint-module-utils/package.json
generated
vendored
8
node_modules/eslint-module-utils/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-module-utils",
|
||||
"version": "2.6.1",
|
||||
"version": "2.6.2",
|
||||
"description": "Core utilities to support eslint-plugin-import and other module-related plugins.",
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/benmosher/eslint-plugin-import.git"
|
||||
"url": "git+https://github.com/import-js/eslint-plugin-import.git"
|
||||
},
|
||||
"keywords": [
|
||||
"eslint-plugin-import",
|
||||
@@ -22,9 +22,9 @@
|
||||
"author": "Ben Mosher <me@benmosher.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/benmosher/eslint-plugin-import/issues"
|
||||
"url": "https://github.com/import-js/eslint-plugin-import/issues"
|
||||
},
|
||||
"homepage": "https://github.com/benmosher/eslint-plugin-import#readme",
|
||||
"homepage": "https://github.com/import-js/eslint-plugin-import#readme",
|
||||
"dependencies": {
|
||||
"debug": "^3.2.7",
|
||||
"pkg-dir": "^2.0.0"
|
||||
|
||||
8
node_modules/eslint-module-utils/parse.js
generated
vendored
8
node_modules/eslint-module-utils/parse.js
generated
vendored
@@ -35,7 +35,7 @@ exports.default = function parse(path, content, context) {
|
||||
// @typescript-eslint/parser will parse the entire project with typechecking if you provide
|
||||
// "project" or "projects" in parserOptions. Removing these options means the parser will
|
||||
// only parse one file in isolate mode, which is much, much faster.
|
||||
// https://github.com/benmosher/eslint-plugin-import/issues/1408#issuecomment-509298962
|
||||
// https://github.com/import-js/eslint-plugin-import/issues/1408#issuecomment-509298962
|
||||
delete parserOptions.project;
|
||||
delete parserOptions.projects;
|
||||
|
||||
@@ -52,11 +52,7 @@ exports.default = function parse(path, content, context) {
|
||||
console.warn('Line ' + e.lineNumber + ', column ' + e.column + ': ' + e.message);
|
||||
}
|
||||
if (!ast || typeof ast !== 'object') {
|
||||
console.warn(
|
||||
'`parseForESLint` from parser `' +
|
||||
parserPath +
|
||||
'` is invalid and will just be ignored'
|
||||
);
|
||||
console.warn('`parseForESLint` from parser `' + parserPath + '` is invalid and will just be ignored');
|
||||
} else {
|
||||
return ast;
|
||||
}
|
||||
|
||||
5
node_modules/eslint-module-utils/resolve.js
generated
vendored
5
node_modules/eslint-module-utils/resolve.js
generated
vendored
@@ -217,10 +217,7 @@ const erroredContexts = new Set();
|
||||
*/
|
||||
function resolve(p, context) {
|
||||
try {
|
||||
return relative( p
|
||||
, context.getFilename()
|
||||
, context.settings
|
||||
);
|
||||
return relative(p, context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(), context.settings);
|
||||
} catch (err) {
|
||||
if (!erroredContexts.has(context)) {
|
||||
// The `err.stack` string starts with `err.name` followed by colon and `err.message`.
|
||||
|
||||
890
node_modules/eslint-plugin-import/CHANGELOG.md
generated
vendored
890
node_modules/eslint-plugin-import/CHANGELOG.md
generated
vendored
@@ -6,6 +6,28 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.24.0] - 2021-08-08
|
||||
|
||||
### Added
|
||||
- [`no-dynamic-require`]: add option `esmodule` ([#1223], thanks [@vikr01])
|
||||
- [`named`]: add `commonjs` option ([#1222], thanks [@vikr01])
|
||||
- [`no-namespace`]: Add `ignore` option ([#2112], thanks [@aberezkin])
|
||||
- [`max-dependencies`]: add option `ignoreTypeImports` ([#1847], thanks [@rfermann])
|
||||
|
||||
### Fixed
|
||||
- [`no-duplicates`]: ensure autofix avoids excessive newlines ([#2028], thanks [@ertrzyiks])
|
||||
- [`extensions`]: avoid crashing on partially typed import/export statements ([#2118], thanks [@ljharb])
|
||||
- [`no-extraneous-dependencies`]: add ESM intermediate package.json support] ([#2121], thanks [@paztis])
|
||||
- Use `context.getPhysicalFilename()` when available (ESLint 7.28+) ([#2160], thanks [@pmcelhaney])
|
||||
- [`extensions`]/`importType`: fix isScoped treating @/abc as scoped module ([#2146], thanks [@rperello])
|
||||
|
||||
### Changed
|
||||
- [Docs] [`extensions`]: removed incorrect cases ([#2138], thanks [@wenfangdu])
|
||||
- [Tests] [`order`]: add tests for `pathGroupsExcludedImportTypes: ['type']` ([#2158], thanks [@atav32])
|
||||
- [Docs] [`order`]: improve the documentation for the `pathGroupsExcludedImportTypes` option ([#2156], thanks [@liby])
|
||||
- [Tests] [`no-cycle`]: Restructure test files ([#1517], thanks [@soryy708])
|
||||
- [Docs] add description how to use plugin with yarn berry ([#2179], thanks [@KostyaZgara])
|
||||
|
||||
## [2.23.4] - 2021-05-29
|
||||
|
||||
### Fixed
|
||||
@@ -742,7 +764,7 @@ Unpublished from npm and re-released as 0.13.0. See [#170].
|
||||
- Resolver plugins. Now the linter can read Webpack config, properly follow aliases and ignore externals, dismisses inline loaders, etc. etc.!
|
||||
|
||||
## Earlier releases (0.10.1 and younger)
|
||||
See [GitHub release notes](https://github.com/benmosher/eslint-plugin-import/releases?after=v0.11.0)
|
||||
See [GitHub release notes](https://github.com/import-js/eslint-plugin-import/releases?after=v0.11.0)
|
||||
for info on changes for earlier releases.
|
||||
|
||||
|
||||
@@ -800,432 +822,448 @@ for info on changes for earlier releases.
|
||||
|
||||
[`memo-parser`]: ./memo-parser/README.md
|
||||
|
||||
[#2099]: https://github.com/benmosher/eslint-plugin-import/pull/2099
|
||||
[#2097]: https://github.com/benmosher/eslint-plugin-import/pull/2097
|
||||
[#2090]: https://github.com/benmosher/eslint-plugin-import/pull/2090
|
||||
[#2087]: https://github.com/benmosher/eslint-plugin-import/pull/2087
|
||||
[#2083]: https://github.com/benmosher/eslint-plugin-import/pull/2083
|
||||
[#2075]: https://github.com/benmosher/eslint-plugin-import/pull/2075
|
||||
[#2071]: https://github.com/benmosher/eslint-plugin-import/pull/2071
|
||||
[#2034]: https://github.com/benmosher/eslint-plugin-import/pull/2034
|
||||
[#2026]: https://github.com/benmosher/eslint-plugin-import/pull/2026
|
||||
[#2022]: https://github.com/benmosher/eslint-plugin-import/pull/2022
|
||||
[#2021]: https://github.com/benmosher/eslint-plugin-import/pull/2021
|
||||
[#2012]: https://github.com/benmosher/eslint-plugin-import/pull/2012
|
||||
[#1997]: https://github.com/benmosher/eslint-plugin-import/pull/1997
|
||||
[#1993]: https://github.com/benmosher/eslint-plugin-import/pull/1993
|
||||
[#1990]: https://github.com/benmosher/eslint-plugin-import/pull/1990
|
||||
[#1985]: https://github.com/benmosher/eslint-plugin-import/pull/1985
|
||||
[#1983]: https://github.com/benmosher/eslint-plugin-import/pull/1983
|
||||
[#1974]: https://github.com/benmosher/eslint-plugin-import/pull/1974
|
||||
[#1958]: https://github.com/benmosher/eslint-plugin-import/pull/1958
|
||||
[#1948]: https://github.com/benmosher/eslint-plugin-import/pull/1948
|
||||
[#1947]: https://github.com/benmosher/eslint-plugin-import/pull/1947
|
||||
[#1944]: https://github.com/benmosher/eslint-plugin-import/pull/1944
|
||||
[#1940]: https://github.com/benmosher/eslint-plugin-import/pull/1940
|
||||
[#1897]: https://github.com/benmosher/eslint-plugin-import/pull/1897
|
||||
[#1889]: https://github.com/benmosher/eslint-plugin-import/pull/1889
|
||||
[#1878]: https://github.com/benmosher/eslint-plugin-import/pull/1878
|
||||
[#1860]: https://github.com/benmosher/eslint-plugin-import/pull/1860
|
||||
[#1848]: https://github.com/benmosher/eslint-plugin-import/pull/1848
|
||||
[#1846]: https://github.com/benmosher/eslint-plugin-import/pull/1846
|
||||
[#1836]: https://github.com/benmosher/eslint-plugin-import/pull/1836
|
||||
[#1835]: https://github.com/benmosher/eslint-plugin-import/pull/1835
|
||||
[#1833]: https://github.com/benmosher/eslint-plugin-import/pull/1833
|
||||
[#1831]: https://github.com/benmosher/eslint-plugin-import/pull/1831
|
||||
[#1830]: https://github.com/benmosher/eslint-plugin-import/pull/1830
|
||||
[#1824]: https://github.com/benmosher/eslint-plugin-import/pull/1824
|
||||
[#1823]: https://github.com/benmosher/eslint-plugin-import/pull/1823
|
||||
[#1822]: https://github.com/benmosher/eslint-plugin-import/pull/1822
|
||||
[#1820]: https://github.com/benmosher/eslint-plugin-import/pull/1820
|
||||
[#1819]: https://github.com/benmosher/eslint-plugin-import/pull/1819
|
||||
[#1802]: https://github.com/benmosher/eslint-plugin-import/pull/1802
|
||||
[#1788]: https://github.com/benmosher/eslint-plugin-import/pull/1788
|
||||
[#1786]: https://github.com/benmosher/eslint-plugin-import/pull/1786
|
||||
[#1785]: https://github.com/benmosher/eslint-plugin-import/pull/1785
|
||||
[#1776]: https://github.com/benmosher/eslint-plugin-import/pull/1776
|
||||
[#1770]: https://github.com/benmosher/eslint-plugin-import/pull/1770
|
||||
[#1764]: https://github.com/benmosher/eslint-plugin-import/pull/1764
|
||||
[#1763]: https://github.com/benmosher/eslint-plugin-import/pull/1763
|
||||
[#1751]: https://github.com/benmosher/eslint-plugin-import/pull/1751
|
||||
[#1744]: https://github.com/benmosher/eslint-plugin-import/pull/1744
|
||||
[#1736]: https://github.com/benmosher/eslint-plugin-import/pull/1736
|
||||
[#1735]: https://github.com/benmosher/eslint-plugin-import/pull/1735
|
||||
[#1726]: https://github.com/benmosher/eslint-plugin-import/pull/1726
|
||||
[#1724]: https://github.com/benmosher/eslint-plugin-import/pull/1724
|
||||
[#1719]: https://github.com/benmosher/eslint-plugin-import/pull/1719
|
||||
[#1696]: https://github.com/benmosher/eslint-plugin-import/pull/1696
|
||||
[#1691]: https://github.com/benmosher/eslint-plugin-import/pull/1691
|
||||
[#1690]: https://github.com/benmosher/eslint-plugin-import/pull/1690
|
||||
[#1689]: https://github.com/benmosher/eslint-plugin-import/pull/1689
|
||||
[#1681]: https://github.com/benmosher/eslint-plugin-import/pull/1681
|
||||
[#1676]: https://github.com/benmosher/eslint-plugin-import/pull/1676
|
||||
[#1666]: https://github.com/benmosher/eslint-plugin-import/pull/1666
|
||||
[#1664]: https://github.com/benmosher/eslint-plugin-import/pull/1664
|
||||
[#1658]: https://github.com/benmosher/eslint-plugin-import/pull/1658
|
||||
[#1651]: https://github.com/benmosher/eslint-plugin-import/pull/1651
|
||||
[#1626]: https://github.com/benmosher/eslint-plugin-import/pull/1626
|
||||
[#1620]: https://github.com/benmosher/eslint-plugin-import/pull/1620
|
||||
[#1619]: https://github.com/benmosher/eslint-plugin-import/pull/1619
|
||||
[#1612]: https://github.com/benmosher/eslint-plugin-import/pull/1612
|
||||
[#1611]: https://github.com/benmosher/eslint-plugin-import/pull/1611
|
||||
[#1605]: https://github.com/benmosher/eslint-plugin-import/pull/1605
|
||||
[#1586]: https://github.com/benmosher/eslint-plugin-import/pull/1586
|
||||
[#1572]: https://github.com/benmosher/eslint-plugin-import/pull/1572
|
||||
[#1569]: https://github.com/benmosher/eslint-plugin-import/pull/1569
|
||||
[#1563]: https://github.com/benmosher/eslint-plugin-import/pull/1563
|
||||
[#1560]: https://github.com/benmosher/eslint-plugin-import/pull/1560
|
||||
[#1551]: https://github.com/benmosher/eslint-plugin-import/pull/1551
|
||||
[#1542]: https://github.com/benmosher/eslint-plugin-import/pull/1542
|
||||
[#1534]: https://github.com/benmosher/eslint-plugin-import/pull/1534
|
||||
[#1528]: https://github.com/benmosher/eslint-plugin-import/pull/1528
|
||||
[#1526]: https://github.com/benmosher/eslint-plugin-import/pull/1526
|
||||
[#1521]: https://github.com/benmosher/eslint-plugin-import/pull/1521
|
||||
[#1519]: https://github.com/benmosher/eslint-plugin-import/pull/1519
|
||||
[#1507]: https://github.com/benmosher/eslint-plugin-import/pull/1507
|
||||
[#1506]: https://github.com/benmosher/eslint-plugin-import/pull/1506
|
||||
[#1496]: https://github.com/benmosher/eslint-plugin-import/pull/1496
|
||||
[#1495]: https://github.com/benmosher/eslint-plugin-import/pull/1495
|
||||
[#1494]: https://github.com/benmosher/eslint-plugin-import/pull/1494
|
||||
[#1493]: https://github.com/benmosher/eslint-plugin-import/pull/1493
|
||||
[#1491]: https://github.com/benmosher/eslint-plugin-import/pull/1491
|
||||
[#1472]: https://github.com/benmosher/eslint-plugin-import/pull/1472
|
||||
[#1470]: https://github.com/benmosher/eslint-plugin-import/pull/1470
|
||||
[#1447]: https://github.com/benmosher/eslint-plugin-import/pull/1447
|
||||
[#1439]: https://github.com/benmosher/eslint-plugin-import/pull/1439
|
||||
[#1436]: https://github.com/benmosher/eslint-plugin-import/pull/1436
|
||||
[#1435]: https://github.com/benmosher/eslint-plugin-import/pull/1435
|
||||
[#1425]: https://github.com/benmosher/eslint-plugin-import/pull/1425
|
||||
[#1419]: https://github.com/benmosher/eslint-plugin-import/pull/1419
|
||||
[#1412]: https://github.com/benmosher/eslint-plugin-import/pull/1412
|
||||
[#1409]: https://github.com/benmosher/eslint-plugin-import/pull/1409
|
||||
[#1404]: https://github.com/benmosher/eslint-plugin-import/pull/1404
|
||||
[#1401]: https://github.com/benmosher/eslint-plugin-import/pull/1401
|
||||
[#1393]: https://github.com/benmosher/eslint-plugin-import/pull/1393
|
||||
[#1389]: https://github.com/benmosher/eslint-plugin-import/pull/1389
|
||||
[#1386]: https://github.com/benmosher/eslint-plugin-import/pull/1386
|
||||
[#1377]: https://github.com/benmosher/eslint-plugin-import/pull/1377
|
||||
[#1375]: https://github.com/benmosher/eslint-plugin-import/pull/1375
|
||||
[#1372]: https://github.com/benmosher/eslint-plugin-import/pull/1372
|
||||
[#1371]: https://github.com/benmosher/eslint-plugin-import/pull/1371
|
||||
[#1370]: https://github.com/benmosher/eslint-plugin-import/pull/1370
|
||||
[#1363]: https://github.com/benmosher/eslint-plugin-import/pull/1363
|
||||
[#1360]: https://github.com/benmosher/eslint-plugin-import/pull/1360
|
||||
[#1358]: https://github.com/benmosher/eslint-plugin-import/pull/1358
|
||||
[#1356]: https://github.com/benmosher/eslint-plugin-import/pull/1356
|
||||
[#1354]: https://github.com/benmosher/eslint-plugin-import/pull/1354
|
||||
[#1352]: https://github.com/benmosher/eslint-plugin-import/pull/1352
|
||||
[#1347]: https://github.com/benmosher/eslint-plugin-import/pull/1347
|
||||
[#1345]: https://github.com/benmosher/eslint-plugin-import/pull/1345
|
||||
[#1342]: https://github.com/benmosher/eslint-plugin-import/pull/1342
|
||||
[#1340]: https://github.com/benmosher/eslint-plugin-import/pull/1340
|
||||
[#1333]: https://github.com/benmosher/eslint-plugin-import/pull/1333
|
||||
[#1331]: https://github.com/benmosher/eslint-plugin-import/pull/1331
|
||||
[#1330]: https://github.com/benmosher/eslint-plugin-import/pull/1330
|
||||
[#1320]: https://github.com/benmosher/eslint-plugin-import/pull/1320
|
||||
[#1319]: https://github.com/benmosher/eslint-plugin-import/pull/1319
|
||||
[#1312]: https://github.com/benmosher/eslint-plugin-import/pull/1312
|
||||
[#1308]: https://github.com/benmosher/eslint-plugin-import/pull/1308
|
||||
[#1304]: https://github.com/benmosher/eslint-plugin-import/pull/1304
|
||||
[#1297]: https://github.com/benmosher/eslint-plugin-import/pull/1297
|
||||
[#1295]: https://github.com/benmosher/eslint-plugin-import/pull/1295
|
||||
[#1294]: https://github.com/benmosher/eslint-plugin-import/pull/1294
|
||||
[#1290]: https://github.com/benmosher/eslint-plugin-import/pull/1290
|
||||
[#1277]: https://github.com/benmosher/eslint-plugin-import/pull/1277
|
||||
[#1257]: https://github.com/benmosher/eslint-plugin-import/pull/1257
|
||||
[#1253]: https://github.com/benmosher/eslint-plugin-import/pull/1253
|
||||
[#1248]: https://github.com/benmosher/eslint-plugin-import/pull/1248
|
||||
[#1238]: https://github.com/benmosher/eslint-plugin-import/pull/1238
|
||||
[#1237]: https://github.com/benmosher/eslint-plugin-import/pull/1237
|
||||
[#1235]: https://github.com/benmosher/eslint-plugin-import/pull/1235
|
||||
[#1234]: https://github.com/benmosher/eslint-plugin-import/pull/1234
|
||||
[#1232]: https://github.com/benmosher/eslint-plugin-import/pull/1232
|
||||
[#1218]: https://github.com/benmosher/eslint-plugin-import/pull/1218
|
||||
[#1176]: https://github.com/benmosher/eslint-plugin-import/pull/1176
|
||||
[#1163]: https://github.com/benmosher/eslint-plugin-import/pull/1163
|
||||
[#1157]: https://github.com/benmosher/eslint-plugin-import/pull/1157
|
||||
[#1151]: https://github.com/benmosher/eslint-plugin-import/pull/1151
|
||||
[#1142]: https://github.com/benmosher/eslint-plugin-import/pull/1142
|
||||
[#1139]: https://github.com/benmosher/eslint-plugin-import/pull/1139
|
||||
[#1137]: https://github.com/benmosher/eslint-plugin-import/pull/1137
|
||||
[#1135]: https://github.com/benmosher/eslint-plugin-import/pull/1135
|
||||
[#1128]: https://github.com/benmosher/eslint-plugin-import/pull/1128
|
||||
[#1126]: https://github.com/benmosher/eslint-plugin-import/pull/1126
|
||||
[#1122]: https://github.com/benmosher/eslint-plugin-import/pull/1122
|
||||
[#1112]: https://github.com/benmosher/eslint-plugin-import/pull/1112
|
||||
[#1107]: https://github.com/benmosher/eslint-plugin-import/pull/1107
|
||||
[#1106]: https://github.com/benmosher/eslint-plugin-import/pull/1106
|
||||
[#1105]: https://github.com/benmosher/eslint-plugin-import/pull/1105
|
||||
[#1093]: https://github.com/benmosher/eslint-plugin-import/pull/1093
|
||||
[#1085]: https://github.com/benmosher/eslint-plugin-import/pull/1085
|
||||
[#1068]: https://github.com/benmosher/eslint-plugin-import/pull/1068
|
||||
[#1049]: https://github.com/benmosher/eslint-plugin-import/pull/1049
|
||||
[#1046]: https://github.com/benmosher/eslint-plugin-import/pull/1046
|
||||
[#966]: https://github.com/benmosher/eslint-plugin-import/pull/966
|
||||
[#944]: https://github.com/benmosher/eslint-plugin-import/pull/944
|
||||
[#912]: https://github.com/benmosher/eslint-plugin-import/pull/912
|
||||
[#908]: https://github.com/benmosher/eslint-plugin-import/pull/908
|
||||
[#891]: https://github.com/benmosher/eslint-plugin-import/pull/891
|
||||
[#889]: https://github.com/benmosher/eslint-plugin-import/pull/889
|
||||
[#880]: https://github.com/benmosher/eslint-plugin-import/pull/880
|
||||
[#871]: https://github.com/benmosher/eslint-plugin-import/pull/871
|
||||
[#858]: https://github.com/benmosher/eslint-plugin-import/pull/858
|
||||
[#843]: https://github.com/benmosher/eslint-plugin-import/pull/843
|
||||
[#804]: https://github.com/benmosher/eslint-plugin-import/pull/804
|
||||
[#797]: https://github.com/benmosher/eslint-plugin-import/pull/797
|
||||
[#794]: https://github.com/benmosher/eslint-plugin-import/pull/794
|
||||
[#744]: https://github.com/benmosher/eslint-plugin-import/pull/744
|
||||
[#742]: https://github.com/benmosher/eslint-plugin-import/pull/742
|
||||
[#737]: https://github.com/benmosher/eslint-plugin-import/pull/737
|
||||
[#727]: https://github.com/benmosher/eslint-plugin-import/pull/727
|
||||
[#721]: https://github.com/benmosher/eslint-plugin-import/pull/721
|
||||
[#712]: https://github.com/benmosher/eslint-plugin-import/pull/712
|
||||
[#696]: https://github.com/benmosher/eslint-plugin-import/pull/696
|
||||
[#685]: https://github.com/benmosher/eslint-plugin-import/pull/685
|
||||
[#680]: https://github.com/benmosher/eslint-plugin-import/pull/680
|
||||
[#654]: https://github.com/benmosher/eslint-plugin-import/pull/654
|
||||
[#639]: https://github.com/benmosher/eslint-plugin-import/pull/639
|
||||
[#632]: https://github.com/benmosher/eslint-plugin-import/pull/632
|
||||
[#630]: https://github.com/benmosher/eslint-plugin-import/pull/630
|
||||
[#629]: https://github.com/benmosher/eslint-plugin-import/pull/629
|
||||
[#628]: https://github.com/benmosher/eslint-plugin-import/pull/628
|
||||
[#596]: https://github.com/benmosher/eslint-plugin-import/pull/596
|
||||
[#586]: https://github.com/benmosher/eslint-plugin-import/pull/586
|
||||
[#578]: https://github.com/benmosher/eslint-plugin-import/pull/578
|
||||
[#568]: https://github.com/benmosher/eslint-plugin-import/pull/568
|
||||
[#555]: https://github.com/benmosher/eslint-plugin-import/pull/555
|
||||
[#538]: https://github.com/benmosher/eslint-plugin-import/pull/538
|
||||
[#527]: https://github.com/benmosher/eslint-plugin-import/pull/527
|
||||
[#518]: https://github.com/benmosher/eslint-plugin-import/pull/518
|
||||
[#509]: https://github.com/benmosher/eslint-plugin-import/pull/509
|
||||
[#508]: https://github.com/benmosher/eslint-plugin-import/pull/508
|
||||
[#503]: https://github.com/benmosher/eslint-plugin-import/pull/503
|
||||
[#499]: https://github.com/benmosher/eslint-plugin-import/pull/499
|
||||
[#489]: https://github.com/benmosher/eslint-plugin-import/pull/489
|
||||
[#485]: https://github.com/benmosher/eslint-plugin-import/pull/485
|
||||
[#461]: https://github.com/benmosher/eslint-plugin-import/pull/461
|
||||
[#449]: https://github.com/benmosher/eslint-plugin-import/pull/449
|
||||
[#444]: https://github.com/benmosher/eslint-plugin-import/pull/444
|
||||
[#428]: https://github.com/benmosher/eslint-plugin-import/pull/428
|
||||
[#395]: https://github.com/benmosher/eslint-plugin-import/pull/395
|
||||
[#371]: https://github.com/benmosher/eslint-plugin-import/pull/371
|
||||
[#365]: https://github.com/benmosher/eslint-plugin-import/pull/365
|
||||
[#359]: https://github.com/benmosher/eslint-plugin-import/pull/359
|
||||
[#343]: https://github.com/benmosher/eslint-plugin-import/pull/343
|
||||
[#332]: https://github.com/benmosher/eslint-plugin-import/pull/332
|
||||
[#322]: https://github.com/benmosher/eslint-plugin-import/pull/322
|
||||
[#321]: https://github.com/benmosher/eslint-plugin-import/pull/321
|
||||
[#316]: https://github.com/benmosher/eslint-plugin-import/pull/316
|
||||
[#314]: https://github.com/benmosher/eslint-plugin-import/pull/314
|
||||
[#308]: https://github.com/benmosher/eslint-plugin-import/pull/308
|
||||
[#298]: https://github.com/benmosher/eslint-plugin-import/pull/298
|
||||
[#297]: https://github.com/benmosher/eslint-plugin-import/pull/297
|
||||
[#296]: https://github.com/benmosher/eslint-plugin-import/pull/296
|
||||
[#290]: https://github.com/benmosher/eslint-plugin-import/pull/290
|
||||
[#289]: https://github.com/benmosher/eslint-plugin-import/pull/289
|
||||
[#288]: https://github.com/benmosher/eslint-plugin-import/pull/288
|
||||
[#287]: https://github.com/benmosher/eslint-plugin-import/pull/287
|
||||
[#278]: https://github.com/benmosher/eslint-plugin-import/pull/278
|
||||
[#261]: https://github.com/benmosher/eslint-plugin-import/pull/261
|
||||
[#256]: https://github.com/benmosher/eslint-plugin-import/pull/256
|
||||
[#254]: https://github.com/benmosher/eslint-plugin-import/pull/254
|
||||
[#250]: https://github.com/benmosher/eslint-plugin-import/pull/250
|
||||
[#247]: https://github.com/benmosher/eslint-plugin-import/pull/247
|
||||
[#245]: https://github.com/benmosher/eslint-plugin-import/pull/245
|
||||
[#243]: https://github.com/benmosher/eslint-plugin-import/pull/243
|
||||
[#241]: https://github.com/benmosher/eslint-plugin-import/pull/241
|
||||
[#239]: https://github.com/benmosher/eslint-plugin-import/pull/239
|
||||
[#228]: https://github.com/benmosher/eslint-plugin-import/pull/228
|
||||
[#211]: https://github.com/benmosher/eslint-plugin-import/pull/211
|
||||
[#164]: https://github.com/benmosher/eslint-plugin-import/pull/164
|
||||
[#157]: https://github.com/benmosher/eslint-plugin-import/pull/157
|
||||
[#2067]: https://github.com/benmosher/eslint-plugin-import/issues/2067
|
||||
[#2056]: https://github.com/benmosher/eslint-plugin-import/issues/2056
|
||||
[#2063]: https://github.com/benmosher/eslint-plugin-import/issues/2063
|
||||
[#1965]: https://github.com/benmosher/eslint-plugin-import/issues/1965
|
||||
[#1924]: https://github.com/benmosher/eslint-plugin-import/issues/1924
|
||||
[#1854]: https://github.com/benmosher/eslint-plugin-import/issues/1854
|
||||
[#1841]: https://github.com/benmosher/eslint-plugin-import/issues/1841
|
||||
[#1834]: https://github.com/benmosher/eslint-plugin-import/issues/1834
|
||||
[#1814]: https://github.com/benmosher/eslint-plugin-import/issues/1814
|
||||
[#1811]: https://github.com/benmosher/eslint-plugin-import/issues/1811
|
||||
[#1808]: https://github.com/benmosher/eslint-plugin-import/issues/1808
|
||||
[#1805]: https://github.com/benmosher/eslint-plugin-import/issues/1805
|
||||
[#1801]: https://github.com/benmosher/eslint-plugin-import/issues/1801
|
||||
[#1722]: https://github.com/benmosher/eslint-plugin-import/issues/1722
|
||||
[#1704]: https://github.com/benmosher/eslint-plugin-import/issues/1704
|
||||
[#1702]: https://github.com/benmosher/eslint-plugin-import/issues/1702
|
||||
[#1635]: https://github.com/benmosher/eslint-plugin-import/issues/1635
|
||||
[#1631]: https://github.com/benmosher/eslint-plugin-import/issues/1631
|
||||
[#1616]: https://github.com/benmosher/eslint-plugin-import/issues/1616
|
||||
[#1613]: https://github.com/benmosher/eslint-plugin-import/issues/1613
|
||||
[#1589]: https://github.com/benmosher/eslint-plugin-import/issues/1589
|
||||
[#1565]: https://github.com/benmosher/eslint-plugin-import/issues/1565
|
||||
[#1366]: https://github.com/benmosher/eslint-plugin-import/issues/1366
|
||||
[#1334]: https://github.com/benmosher/eslint-plugin-import/issues/1334
|
||||
[#1323]: https://github.com/benmosher/eslint-plugin-import/issues/1323
|
||||
[#1322]: https://github.com/benmosher/eslint-plugin-import/issues/1322
|
||||
[#1300]: https://github.com/benmosher/eslint-plugin-import/issues/1300
|
||||
[#1293]: https://github.com/benmosher/eslint-plugin-import/issues/1293
|
||||
[#1266]: https://github.com/benmosher/eslint-plugin-import/issues/1266
|
||||
[#1256]: https://github.com/benmosher/eslint-plugin-import/issues/1256
|
||||
[#1233]: https://github.com/benmosher/eslint-plugin-import/issues/1233
|
||||
[#1175]: https://github.com/benmosher/eslint-plugin-import/issues/1175
|
||||
[#1166]: https://github.com/benmosher/eslint-plugin-import/issues/1166
|
||||
[#1144]: https://github.com/benmosher/eslint-plugin-import/issues/1144
|
||||
[#1058]: https://github.com/benmosher/eslint-plugin-import/issues/1058
|
||||
[#1035]: https://github.com/benmosher/eslint-plugin-import/issues/1035
|
||||
[#931]: https://github.com/benmosher/eslint-plugin-import/issues/931
|
||||
[#886]: https://github.com/benmosher/eslint-plugin-import/issues/886
|
||||
[#863]: https://github.com/benmosher/eslint-plugin-import/issues/863
|
||||
[#842]: https://github.com/benmosher/eslint-plugin-import/issues/842
|
||||
[#839]: https://github.com/benmosher/eslint-plugin-import/issues/839
|
||||
[#795]: https://github.com/benmosher/eslint-plugin-import/issues/795
|
||||
[#793]: https://github.com/benmosher/eslint-plugin-import/issues/793
|
||||
[#720]: https://github.com/benmosher/eslint-plugin-import/issues/720
|
||||
[#717]: https://github.com/benmosher/eslint-plugin-import/issues/717
|
||||
[#686]: https://github.com/benmosher/eslint-plugin-import/issues/686
|
||||
[#671]: https://github.com/benmosher/eslint-plugin-import/issues/671
|
||||
[#660]: https://github.com/benmosher/eslint-plugin-import/issues/660
|
||||
[#653]: https://github.com/benmosher/eslint-plugin-import/issues/653
|
||||
[#627]: https://github.com/benmosher/eslint-plugin-import/issues/627
|
||||
[#620]: https://github.com/benmosher/eslint-plugin-import/issues/620
|
||||
[#609]: https://github.com/benmosher/eslint-plugin-import/issues/609
|
||||
[#604]: https://github.com/benmosher/eslint-plugin-import/issues/604
|
||||
[#602]: https://github.com/benmosher/eslint-plugin-import/issues/602
|
||||
[#601]: https://github.com/benmosher/eslint-plugin-import/issues/601
|
||||
[#592]: https://github.com/benmosher/eslint-plugin-import/issues/592
|
||||
[#577]: https://github.com/benmosher/eslint-plugin-import/issues/577
|
||||
[#570]: https://github.com/benmosher/eslint-plugin-import/issues/570
|
||||
[#567]: https://github.com/benmosher/eslint-plugin-import/issues/567
|
||||
[#566]: https://github.com/benmosher/eslint-plugin-import/issues/566
|
||||
[#545]: https://github.com/benmosher/eslint-plugin-import/issues/545
|
||||
[#530]: https://github.com/benmosher/eslint-plugin-import/issues/530
|
||||
[#529]: https://github.com/benmosher/eslint-plugin-import/issues/529
|
||||
[#519]: https://github.com/benmosher/eslint-plugin-import/issues/519
|
||||
[#507]: https://github.com/benmosher/eslint-plugin-import/issues/507
|
||||
[#484]: https://github.com/benmosher/eslint-plugin-import/issues/484
|
||||
[#478]: https://github.com/benmosher/eslint-plugin-import/issues/478
|
||||
[#456]: https://github.com/benmosher/eslint-plugin-import/issues/456
|
||||
[#453]: https://github.com/benmosher/eslint-plugin-import/issues/453
|
||||
[#452]: https://github.com/benmosher/eslint-plugin-import/issues/452
|
||||
[#447]: https://github.com/benmosher/eslint-plugin-import/issues/447
|
||||
[#441]: https://github.com/benmosher/eslint-plugin-import/issues/441
|
||||
[#423]: https://github.com/benmosher/eslint-plugin-import/issues/423
|
||||
[#416]: https://github.com/benmosher/eslint-plugin-import/issues/416
|
||||
[#415]: https://github.com/benmosher/eslint-plugin-import/issues/415
|
||||
[#402]: https://github.com/benmosher/eslint-plugin-import/issues/402
|
||||
[#386]: https://github.com/benmosher/eslint-plugin-import/issues/386
|
||||
[#373]: https://github.com/benmosher/eslint-plugin-import/issues/373
|
||||
[#370]: https://github.com/benmosher/eslint-plugin-import/issues/370
|
||||
[#348]: https://github.com/benmosher/eslint-plugin-import/issues/348
|
||||
[#342]: https://github.com/benmosher/eslint-plugin-import/issues/342
|
||||
[#328]: https://github.com/benmosher/eslint-plugin-import/issues/328
|
||||
[#317]: https://github.com/benmosher/eslint-plugin-import/issues/317
|
||||
[#313]: https://github.com/benmosher/eslint-plugin-import/issues/313
|
||||
[#311]: https://github.com/benmosher/eslint-plugin-import/issues/311
|
||||
[#306]: https://github.com/benmosher/eslint-plugin-import/issues/306
|
||||
[#286]: https://github.com/benmosher/eslint-plugin-import/issues/286
|
||||
[#283]: https://github.com/benmosher/eslint-plugin-import/issues/283
|
||||
[#281]: https://github.com/benmosher/eslint-plugin-import/issues/281
|
||||
[#275]: https://github.com/benmosher/eslint-plugin-import/issues/275
|
||||
[#272]: https://github.com/benmosher/eslint-plugin-import/issues/272
|
||||
[#270]: https://github.com/benmosher/eslint-plugin-import/issues/270
|
||||
[#267]: https://github.com/benmosher/eslint-plugin-import/issues/267
|
||||
[#266]: https://github.com/benmosher/eslint-plugin-import/issues/266
|
||||
[#216]: https://github.com/benmosher/eslint-plugin-import/issues/216
|
||||
[#214]: https://github.com/benmosher/eslint-plugin-import/issues/214
|
||||
[#210]: https://github.com/benmosher/eslint-plugin-import/issues/210
|
||||
[#200]: https://github.com/benmosher/eslint-plugin-import/issues/200
|
||||
[#192]: https://github.com/benmosher/eslint-plugin-import/issues/192
|
||||
[#191]: https://github.com/benmosher/eslint-plugin-import/issues/191
|
||||
[#189]: https://github.com/benmosher/eslint-plugin-import/issues/189
|
||||
[#170]: https://github.com/benmosher/eslint-plugin-import/issues/170
|
||||
[#155]: https://github.com/benmosher/eslint-plugin-import/issues/155
|
||||
[#119]: https://github.com/benmosher/eslint-plugin-import/issues/119
|
||||
[#89]: https://github.com/benmosher/eslint-plugin-import/issues/89
|
||||
[#2179]: https://github.com/import-js/eslint-plugin-import/pull/2179
|
||||
[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160
|
||||
[#2158]: https://github.com/import-js/eslint-plugin-import/pull/2158
|
||||
[#2156]: https://github.com/import-js/eslint-plugin-import/pull/2156
|
||||
[#2146]: https://github.com/import-js/eslint-plugin-import/pull/2146
|
||||
[#2138]: https://github.com/import-js/eslint-plugin-import/pull/2138
|
||||
[#2121]: https://github.com/import-js/eslint-plugin-import/pull/2121
|
||||
[#2112]: https://github.com/import-js/eslint-plugin-import/pull/2112
|
||||
[#2099]: https://github.com/import-js/eslint-plugin-import/pull/2099
|
||||
[#2097]: https://github.com/import-js/eslint-plugin-import/pull/2097
|
||||
[#2090]: https://github.com/import-js/eslint-plugin-import/pull/2090
|
||||
[#2087]: https://github.com/import-js/eslint-plugin-import/pull/2087
|
||||
[#2083]: https://github.com/import-js/eslint-plugin-import/pull/2083
|
||||
[#2075]: https://github.com/import-js/eslint-plugin-import/pull/2075
|
||||
[#2071]: https://github.com/import-js/eslint-plugin-import/pull/2071
|
||||
[#2034]: https://github.com/import-js/eslint-plugin-import/pull/2034
|
||||
[#2028]: https://github.com/import-js/eslint-plugin-import/pull/2028
|
||||
[#2026]: https://github.com/import-js/eslint-plugin-import/pull/2026
|
||||
[#2022]: https://github.com/import-js/eslint-plugin-import/pull/2022
|
||||
[#2021]: https://github.com/import-js/eslint-plugin-import/pull/2021
|
||||
[#2012]: https://github.com/import-js/eslint-plugin-import/pull/2012
|
||||
[#1997]: https://github.com/import-js/eslint-plugin-import/pull/1997
|
||||
[#1993]: https://github.com/import-js/eslint-plugin-import/pull/1993
|
||||
[#1990]: https://github.com/import-js/eslint-plugin-import/pull/1990
|
||||
[#1985]: https://github.com/import-js/eslint-plugin-import/pull/1985
|
||||
[#1983]: https://github.com/import-js/eslint-plugin-import/pull/1983
|
||||
[#1974]: https://github.com/import-js/eslint-plugin-import/pull/1974
|
||||
[#1958]: https://github.com/import-js/eslint-plugin-import/pull/1958
|
||||
[#1948]: https://github.com/import-js/eslint-plugin-import/pull/1948
|
||||
[#1947]: https://github.com/import-js/eslint-plugin-import/pull/1947
|
||||
[#1944]: https://github.com/import-js/eslint-plugin-import/pull/1944
|
||||
[#1940]: https://github.com/import-js/eslint-plugin-import/pull/1940
|
||||
[#1897]: https://github.com/import-js/eslint-plugin-import/pull/1897
|
||||
[#1889]: https://github.com/import-js/eslint-plugin-import/pull/1889
|
||||
[#1878]: https://github.com/import-js/eslint-plugin-import/pull/1878
|
||||
[#1860]: https://github.com/import-js/eslint-plugin-import/pull/1860
|
||||
[#1848]: https://github.com/import-js/eslint-plugin-import/pull/1848
|
||||
[#1847]: https://github.com/import-js/eslint-plugin-import/pull/1847
|
||||
[#1846]: https://github.com/import-js/eslint-plugin-import/pull/1846
|
||||
[#1836]: https://github.com/import-js/eslint-plugin-import/pull/1836
|
||||
[#1835]: https://github.com/import-js/eslint-plugin-import/pull/1835
|
||||
[#1833]: https://github.com/import-js/eslint-plugin-import/pull/1833
|
||||
[#1831]: https://github.com/import-js/eslint-plugin-import/pull/1831
|
||||
[#1830]: https://github.com/import-js/eslint-plugin-import/pull/1830
|
||||
[#1824]: https://github.com/import-js/eslint-plugin-import/pull/1824
|
||||
[#1823]: https://github.com/import-js/eslint-plugin-import/pull/1823
|
||||
[#1822]: https://github.com/import-js/eslint-plugin-import/pull/1822
|
||||
[#1820]: https://github.com/import-js/eslint-plugin-import/pull/1820
|
||||
[#1819]: https://github.com/import-js/eslint-plugin-import/pull/1819
|
||||
[#1802]: https://github.com/import-js/eslint-plugin-import/pull/1802
|
||||
[#1788]: https://github.com/import-js/eslint-plugin-import/pull/1788
|
||||
[#1786]: https://github.com/import-js/eslint-plugin-import/pull/1786
|
||||
[#1785]: https://github.com/import-js/eslint-plugin-import/pull/1785
|
||||
[#1776]: https://github.com/import-js/eslint-plugin-import/pull/1776
|
||||
[#1770]: https://github.com/import-js/eslint-plugin-import/pull/1770
|
||||
[#1764]: https://github.com/import-js/eslint-plugin-import/pull/1764
|
||||
[#1763]: https://github.com/import-js/eslint-plugin-import/pull/1763
|
||||
[#1751]: https://github.com/import-js/eslint-plugin-import/pull/1751
|
||||
[#1744]: https://github.com/import-js/eslint-plugin-import/pull/1744
|
||||
[#1736]: https://github.com/import-js/eslint-plugin-import/pull/1736
|
||||
[#1735]: https://github.com/import-js/eslint-plugin-import/pull/1735
|
||||
[#1726]: https://github.com/import-js/eslint-plugin-import/pull/1726
|
||||
[#1724]: https://github.com/import-js/eslint-plugin-import/pull/1724
|
||||
[#1719]: https://github.com/import-js/eslint-plugin-import/pull/1719
|
||||
[#1696]: https://github.com/import-js/eslint-plugin-import/pull/1696
|
||||
[#1691]: https://github.com/import-js/eslint-plugin-import/pull/1691
|
||||
[#1690]: https://github.com/import-js/eslint-plugin-import/pull/1690
|
||||
[#1689]: https://github.com/import-js/eslint-plugin-import/pull/1689
|
||||
[#1681]: https://github.com/import-js/eslint-plugin-import/pull/1681
|
||||
[#1676]: https://github.com/import-js/eslint-plugin-import/pull/1676
|
||||
[#1666]: https://github.com/import-js/eslint-plugin-import/pull/1666
|
||||
[#1664]: https://github.com/import-js/eslint-plugin-import/pull/1664
|
||||
[#1658]: https://github.com/import-js/eslint-plugin-import/pull/1658
|
||||
[#1651]: https://github.com/import-js/eslint-plugin-import/pull/1651
|
||||
[#1626]: https://github.com/import-js/eslint-plugin-import/pull/1626
|
||||
[#1620]: https://github.com/import-js/eslint-plugin-import/pull/1620
|
||||
[#1619]: https://github.com/import-js/eslint-plugin-import/pull/1619
|
||||
[#1612]: https://github.com/import-js/eslint-plugin-import/pull/1612
|
||||
[#1611]: https://github.com/import-js/eslint-plugin-import/pull/1611
|
||||
[#1605]: https://github.com/import-js/eslint-plugin-import/pull/1605
|
||||
[#1586]: https://github.com/import-js/eslint-plugin-import/pull/1586
|
||||
[#1572]: https://github.com/import-js/eslint-plugin-import/pull/1572
|
||||
[#1569]: https://github.com/import-js/eslint-plugin-import/pull/1569
|
||||
[#1563]: https://github.com/import-js/eslint-plugin-import/pull/1563
|
||||
[#1560]: https://github.com/import-js/eslint-plugin-import/pull/1560
|
||||
[#1551]: https://github.com/import-js/eslint-plugin-import/pull/1551
|
||||
[#1542]: https://github.com/import-js/eslint-plugin-import/pull/1542
|
||||
[#1534]: https://github.com/import-js/eslint-plugin-import/pull/1534
|
||||
[#1528]: https://github.com/import-js/eslint-plugin-import/pull/1528
|
||||
[#1526]: https://github.com/import-js/eslint-plugin-import/pull/1526
|
||||
[#1521]: https://github.com/import-js/eslint-plugin-import/pull/1521
|
||||
[#1519]: https://github.com/import-js/eslint-plugin-import/pull/1519
|
||||
[#1517]: https://github.com/import-js/eslint-plugin-import/pull/1517
|
||||
[#1507]: https://github.com/import-js/eslint-plugin-import/pull/1507
|
||||
[#1506]: https://github.com/import-js/eslint-plugin-import/pull/1506
|
||||
[#1496]: https://github.com/import-js/eslint-plugin-import/pull/1496
|
||||
[#1495]: https://github.com/import-js/eslint-plugin-import/pull/1495
|
||||
[#1494]: https://github.com/import-js/eslint-plugin-import/pull/1494
|
||||
[#1493]: https://github.com/import-js/eslint-plugin-import/pull/1493
|
||||
[#1491]: https://github.com/import-js/eslint-plugin-import/pull/1491
|
||||
[#1472]: https://github.com/import-js/eslint-plugin-import/pull/1472
|
||||
[#1470]: https://github.com/import-js/eslint-plugin-import/pull/1470
|
||||
[#1447]: https://github.com/import-js/eslint-plugin-import/pull/1447
|
||||
[#1439]: https://github.com/import-js/eslint-plugin-import/pull/1439
|
||||
[#1436]: https://github.com/import-js/eslint-plugin-import/pull/1436
|
||||
[#1435]: https://github.com/import-js/eslint-plugin-import/pull/1435
|
||||
[#1425]: https://github.com/import-js/eslint-plugin-import/pull/1425
|
||||
[#1419]: https://github.com/import-js/eslint-plugin-import/pull/1419
|
||||
[#1412]: https://github.com/import-js/eslint-plugin-import/pull/1412
|
||||
[#1409]: https://github.com/import-js/eslint-plugin-import/pull/1409
|
||||
[#1404]: https://github.com/import-js/eslint-plugin-import/pull/1404
|
||||
[#1401]: https://github.com/import-js/eslint-plugin-import/pull/1401
|
||||
[#1393]: https://github.com/import-js/eslint-plugin-import/pull/1393
|
||||
[#1389]: https://github.com/import-js/eslint-plugin-import/pull/1389
|
||||
[#1386]: https://github.com/import-js/eslint-plugin-import/pull/1386
|
||||
[#1377]: https://github.com/import-js/eslint-plugin-import/pull/1377
|
||||
[#1375]: https://github.com/import-js/eslint-plugin-import/pull/1375
|
||||
[#1372]: https://github.com/import-js/eslint-plugin-import/pull/1372
|
||||
[#1371]: https://github.com/import-js/eslint-plugin-import/pull/1371
|
||||
[#1370]: https://github.com/import-js/eslint-plugin-import/pull/1370
|
||||
[#1363]: https://github.com/import-js/eslint-plugin-import/pull/1363
|
||||
[#1360]: https://github.com/import-js/eslint-plugin-import/pull/1360
|
||||
[#1358]: https://github.com/import-js/eslint-plugin-import/pull/1358
|
||||
[#1356]: https://github.com/import-js/eslint-plugin-import/pull/1356
|
||||
[#1354]: https://github.com/import-js/eslint-plugin-import/pull/1354
|
||||
[#1352]: https://github.com/import-js/eslint-plugin-import/pull/1352
|
||||
[#1347]: https://github.com/import-js/eslint-plugin-import/pull/1347
|
||||
[#1345]: https://github.com/import-js/eslint-plugin-import/pull/1345
|
||||
[#1342]: https://github.com/import-js/eslint-plugin-import/pull/1342
|
||||
[#1340]: https://github.com/import-js/eslint-plugin-import/pull/1340
|
||||
[#1333]: https://github.com/import-js/eslint-plugin-import/pull/1333
|
||||
[#1331]: https://github.com/import-js/eslint-plugin-import/pull/1331
|
||||
[#1330]: https://github.com/import-js/eslint-plugin-import/pull/1330
|
||||
[#1320]: https://github.com/import-js/eslint-plugin-import/pull/1320
|
||||
[#1319]: https://github.com/import-js/eslint-plugin-import/pull/1319
|
||||
[#1312]: https://github.com/import-js/eslint-plugin-import/pull/1312
|
||||
[#1308]: https://github.com/import-js/eslint-plugin-import/pull/1308
|
||||
[#1304]: https://github.com/import-js/eslint-plugin-import/pull/1304
|
||||
[#1297]: https://github.com/import-js/eslint-plugin-import/pull/1297
|
||||
[#1295]: https://github.com/import-js/eslint-plugin-import/pull/1295
|
||||
[#1294]: https://github.com/import-js/eslint-plugin-import/pull/1294
|
||||
[#1290]: https://github.com/import-js/eslint-plugin-import/pull/1290
|
||||
[#1277]: https://github.com/import-js/eslint-plugin-import/pull/1277
|
||||
[#1257]: https://github.com/import-js/eslint-plugin-import/pull/1257
|
||||
[#1253]: https://github.com/import-js/eslint-plugin-import/pull/1253
|
||||
[#1248]: https://github.com/import-js/eslint-plugin-import/pull/1248
|
||||
[#1238]: https://github.com/import-js/eslint-plugin-import/pull/1238
|
||||
[#1237]: https://github.com/import-js/eslint-plugin-import/pull/1237
|
||||
[#1235]: https://github.com/import-js/eslint-plugin-import/pull/1235
|
||||
[#1234]: https://github.com/import-js/eslint-plugin-import/pull/1234
|
||||
[#1232]: https://github.com/import-js/eslint-plugin-import/pull/1232
|
||||
[#1223]: https://github.com/import-js/eslint-plugin-import/pull/1223
|
||||
[#1222]: https://github.com/import-js/eslint-plugin-import/pull/1222
|
||||
[#1218]: https://github.com/import-js/eslint-plugin-import/pull/1218
|
||||
[#1176]: https://github.com/import-js/eslint-plugin-import/pull/1176
|
||||
[#1163]: https://github.com/import-js/eslint-plugin-import/pull/1163
|
||||
[#1157]: https://github.com/import-js/eslint-plugin-import/pull/1157
|
||||
[#1151]: https://github.com/import-js/eslint-plugin-import/pull/1151
|
||||
[#1142]: https://github.com/import-js/eslint-plugin-import/pull/1142
|
||||
[#1139]: https://github.com/import-js/eslint-plugin-import/pull/1139
|
||||
[#1137]: https://github.com/import-js/eslint-plugin-import/pull/1137
|
||||
[#1135]: https://github.com/import-js/eslint-plugin-import/pull/1135
|
||||
[#1128]: https://github.com/import-js/eslint-plugin-import/pull/1128
|
||||
[#1126]: https://github.com/import-js/eslint-plugin-import/pull/1126
|
||||
[#1122]: https://github.com/import-js/eslint-plugin-import/pull/1122
|
||||
[#1112]: https://github.com/import-js/eslint-plugin-import/pull/1112
|
||||
[#1107]: https://github.com/import-js/eslint-plugin-import/pull/1107
|
||||
[#1106]: https://github.com/import-js/eslint-plugin-import/pull/1106
|
||||
[#1105]: https://github.com/import-js/eslint-plugin-import/pull/1105
|
||||
[#1093]: https://github.com/import-js/eslint-plugin-import/pull/1093
|
||||
[#1085]: https://github.com/import-js/eslint-plugin-import/pull/1085
|
||||
[#1068]: https://github.com/import-js/eslint-plugin-import/pull/1068
|
||||
[#1049]: https://github.com/import-js/eslint-plugin-import/pull/1049
|
||||
[#1046]: https://github.com/import-js/eslint-plugin-import/pull/1046
|
||||
[#966]: https://github.com/import-js/eslint-plugin-import/pull/966
|
||||
[#944]: https://github.com/import-js/eslint-plugin-import/pull/944
|
||||
[#912]: https://github.com/import-js/eslint-plugin-import/pull/912
|
||||
[#908]: https://github.com/import-js/eslint-plugin-import/pull/908
|
||||
[#891]: https://github.com/import-js/eslint-plugin-import/pull/891
|
||||
[#889]: https://github.com/import-js/eslint-plugin-import/pull/889
|
||||
[#880]: https://github.com/import-js/eslint-plugin-import/pull/880
|
||||
[#871]: https://github.com/import-js/eslint-plugin-import/pull/871
|
||||
[#858]: https://github.com/import-js/eslint-plugin-import/pull/858
|
||||
[#843]: https://github.com/import-js/eslint-plugin-import/pull/843
|
||||
[#804]: https://github.com/import-js/eslint-plugin-import/pull/804
|
||||
[#797]: https://github.com/import-js/eslint-plugin-import/pull/797
|
||||
[#794]: https://github.com/import-js/eslint-plugin-import/pull/794
|
||||
[#744]: https://github.com/import-js/eslint-plugin-import/pull/744
|
||||
[#742]: https://github.com/import-js/eslint-plugin-import/pull/742
|
||||
[#737]: https://github.com/import-js/eslint-plugin-import/pull/737
|
||||
[#727]: https://github.com/import-js/eslint-plugin-import/pull/727
|
||||
[#721]: https://github.com/import-js/eslint-plugin-import/pull/721
|
||||
[#712]: https://github.com/import-js/eslint-plugin-import/pull/712
|
||||
[#696]: https://github.com/import-js/eslint-plugin-import/pull/696
|
||||
[#685]: https://github.com/import-js/eslint-plugin-import/pull/685
|
||||
[#680]: https://github.com/import-js/eslint-plugin-import/pull/680
|
||||
[#654]: https://github.com/import-js/eslint-plugin-import/pull/654
|
||||
[#639]: https://github.com/import-js/eslint-plugin-import/pull/639
|
||||
[#632]: https://github.com/import-js/eslint-plugin-import/pull/632
|
||||
[#630]: https://github.com/import-js/eslint-plugin-import/pull/630
|
||||
[#629]: https://github.com/import-js/eslint-plugin-import/pull/629
|
||||
[#628]: https://github.com/import-js/eslint-plugin-import/pull/628
|
||||
[#596]: https://github.com/import-js/eslint-plugin-import/pull/596
|
||||
[#586]: https://github.com/import-js/eslint-plugin-import/pull/586
|
||||
[#578]: https://github.com/import-js/eslint-plugin-import/pull/578
|
||||
[#568]: https://github.com/import-js/eslint-plugin-import/pull/568
|
||||
[#555]: https://github.com/import-js/eslint-plugin-import/pull/555
|
||||
[#538]: https://github.com/import-js/eslint-plugin-import/pull/538
|
||||
[#527]: https://github.com/import-js/eslint-plugin-import/pull/527
|
||||
[#518]: https://github.com/import-js/eslint-plugin-import/pull/518
|
||||
[#509]: https://github.com/import-js/eslint-plugin-import/pull/509
|
||||
[#508]: https://github.com/import-js/eslint-plugin-import/pull/508
|
||||
[#503]: https://github.com/import-js/eslint-plugin-import/pull/503
|
||||
[#499]: https://github.com/import-js/eslint-plugin-import/pull/499
|
||||
[#489]: https://github.com/import-js/eslint-plugin-import/pull/489
|
||||
[#485]: https://github.com/import-js/eslint-plugin-import/pull/485
|
||||
[#461]: https://github.com/import-js/eslint-plugin-import/pull/461
|
||||
[#449]: https://github.com/import-js/eslint-plugin-import/pull/449
|
||||
[#444]: https://github.com/import-js/eslint-plugin-import/pull/444
|
||||
[#428]: https://github.com/import-js/eslint-plugin-import/pull/428
|
||||
[#395]: https://github.com/import-js/eslint-plugin-import/pull/395
|
||||
[#371]: https://github.com/import-js/eslint-plugin-import/pull/371
|
||||
[#365]: https://github.com/import-js/eslint-plugin-import/pull/365
|
||||
[#359]: https://github.com/import-js/eslint-plugin-import/pull/359
|
||||
[#343]: https://github.com/import-js/eslint-plugin-import/pull/343
|
||||
[#332]: https://github.com/import-js/eslint-plugin-import/pull/332
|
||||
[#322]: https://github.com/import-js/eslint-plugin-import/pull/322
|
||||
[#321]: https://github.com/import-js/eslint-plugin-import/pull/321
|
||||
[#316]: https://github.com/import-js/eslint-plugin-import/pull/316
|
||||
[#314]: https://github.com/import-js/eslint-plugin-import/pull/314
|
||||
[#308]: https://github.com/import-js/eslint-plugin-import/pull/308
|
||||
[#298]: https://github.com/import-js/eslint-plugin-import/pull/298
|
||||
[#297]: https://github.com/import-js/eslint-plugin-import/pull/297
|
||||
[#296]: https://github.com/import-js/eslint-plugin-import/pull/296
|
||||
[#290]: https://github.com/import-js/eslint-plugin-import/pull/290
|
||||
[#289]: https://github.com/import-js/eslint-plugin-import/pull/289
|
||||
[#288]: https://github.com/import-js/eslint-plugin-import/pull/288
|
||||
[#287]: https://github.com/import-js/eslint-plugin-import/pull/287
|
||||
[#278]: https://github.com/import-js/eslint-plugin-import/pull/278
|
||||
[#261]: https://github.com/import-js/eslint-plugin-import/pull/261
|
||||
[#256]: https://github.com/import-js/eslint-plugin-import/pull/256
|
||||
[#254]: https://github.com/import-js/eslint-plugin-import/pull/254
|
||||
[#250]: https://github.com/import-js/eslint-plugin-import/pull/250
|
||||
[#247]: https://github.com/import-js/eslint-plugin-import/pull/247
|
||||
[#245]: https://github.com/import-js/eslint-plugin-import/pull/245
|
||||
[#243]: https://github.com/import-js/eslint-plugin-import/pull/243
|
||||
[#241]: https://github.com/import-js/eslint-plugin-import/pull/241
|
||||
[#239]: https://github.com/import-js/eslint-plugin-import/pull/239
|
||||
[#228]: https://github.com/import-js/eslint-plugin-import/pull/228
|
||||
[#211]: https://github.com/import-js/eslint-plugin-import/pull/211
|
||||
[#164]: https://github.com/import-js/eslint-plugin-import/pull/164
|
||||
[#157]: https://github.com/import-js/eslint-plugin-import/pull/157
|
||||
[#2118]: https://github.com/import-js/eslint-plugin-import/issues/2118
|
||||
[#2067]: https://github.com/import-js/eslint-plugin-import/issues/2067
|
||||
[#2056]: https://github.com/import-js/eslint-plugin-import/issues/2056
|
||||
[#2063]: https://github.com/import-js/eslint-plugin-import/issues/2063
|
||||
[#1965]: https://github.com/import-js/eslint-plugin-import/issues/1965
|
||||
[#1924]: https://github.com/import-js/eslint-plugin-import/issues/1924
|
||||
[#1854]: https://github.com/import-js/eslint-plugin-import/issues/1854
|
||||
[#1841]: https://github.com/import-js/eslint-plugin-import/issues/1841
|
||||
[#1834]: https://github.com/import-js/eslint-plugin-import/issues/1834
|
||||
[#1814]: https://github.com/import-js/eslint-plugin-import/issues/1814
|
||||
[#1811]: https://github.com/import-js/eslint-plugin-import/issues/1811
|
||||
[#1808]: https://github.com/import-js/eslint-plugin-import/issues/1808
|
||||
[#1805]: https://github.com/import-js/eslint-plugin-import/issues/1805
|
||||
[#1801]: https://github.com/import-js/eslint-plugin-import/issues/1801
|
||||
[#1722]: https://github.com/import-js/eslint-plugin-import/issues/1722
|
||||
[#1704]: https://github.com/import-js/eslint-plugin-import/issues/1704
|
||||
[#1702]: https://github.com/import-js/eslint-plugin-import/issues/1702
|
||||
[#1635]: https://github.com/import-js/eslint-plugin-import/issues/1635
|
||||
[#1631]: https://github.com/import-js/eslint-plugin-import/issues/1631
|
||||
[#1616]: https://github.com/import-js/eslint-plugin-import/issues/1616
|
||||
[#1613]: https://github.com/import-js/eslint-plugin-import/issues/1613
|
||||
[#1589]: https://github.com/import-js/eslint-plugin-import/issues/1589
|
||||
[#1565]: https://github.com/import-js/eslint-plugin-import/issues/1565
|
||||
[#1366]: https://github.com/import-js/eslint-plugin-import/issues/1366
|
||||
[#1334]: https://github.com/import-js/eslint-plugin-import/issues/1334
|
||||
[#1323]: https://github.com/import-js/eslint-plugin-import/issues/1323
|
||||
[#1322]: https://github.com/import-js/eslint-plugin-import/issues/1322
|
||||
[#1300]: https://github.com/import-js/eslint-plugin-import/issues/1300
|
||||
[#1293]: https://github.com/import-js/eslint-plugin-import/issues/1293
|
||||
[#1266]: https://github.com/import-js/eslint-plugin-import/issues/1266
|
||||
[#1256]: https://github.com/import-js/eslint-plugin-import/issues/1256
|
||||
[#1233]: https://github.com/import-js/eslint-plugin-import/issues/1233
|
||||
[#1175]: https://github.com/import-js/eslint-plugin-import/issues/1175
|
||||
[#1166]: https://github.com/import-js/eslint-plugin-import/issues/1166
|
||||
[#1144]: https://github.com/import-js/eslint-plugin-import/issues/1144
|
||||
[#1058]: https://github.com/import-js/eslint-plugin-import/issues/1058
|
||||
[#1035]: https://github.com/import-js/eslint-plugin-import/issues/1035
|
||||
[#931]: https://github.com/import-js/eslint-plugin-import/issues/931
|
||||
[#886]: https://github.com/import-js/eslint-plugin-import/issues/886
|
||||
[#863]: https://github.com/import-js/eslint-plugin-import/issues/863
|
||||
[#842]: https://github.com/import-js/eslint-plugin-import/issues/842
|
||||
[#839]: https://github.com/import-js/eslint-plugin-import/issues/839
|
||||
[#795]: https://github.com/import-js/eslint-plugin-import/issues/795
|
||||
[#793]: https://github.com/import-js/eslint-plugin-import/issues/793
|
||||
[#720]: https://github.com/import-js/eslint-plugin-import/issues/720
|
||||
[#717]: https://github.com/import-js/eslint-plugin-import/issues/717
|
||||
[#686]: https://github.com/import-js/eslint-plugin-import/issues/686
|
||||
[#671]: https://github.com/import-js/eslint-plugin-import/issues/671
|
||||
[#660]: https://github.com/import-js/eslint-plugin-import/issues/660
|
||||
[#653]: https://github.com/import-js/eslint-plugin-import/issues/653
|
||||
[#627]: https://github.com/import-js/eslint-plugin-import/issues/627
|
||||
[#620]: https://github.com/import-js/eslint-plugin-import/issues/620
|
||||
[#609]: https://github.com/import-js/eslint-plugin-import/issues/609
|
||||
[#604]: https://github.com/import-js/eslint-plugin-import/issues/604
|
||||
[#602]: https://github.com/import-js/eslint-plugin-import/issues/602
|
||||
[#601]: https://github.com/import-js/eslint-plugin-import/issues/601
|
||||
[#592]: https://github.com/import-js/eslint-plugin-import/issues/592
|
||||
[#577]: https://github.com/import-js/eslint-plugin-import/issues/577
|
||||
[#570]: https://github.com/import-js/eslint-plugin-import/issues/570
|
||||
[#567]: https://github.com/import-js/eslint-plugin-import/issues/567
|
||||
[#566]: https://github.com/import-js/eslint-plugin-import/issues/566
|
||||
[#545]: https://github.com/import-js/eslint-plugin-import/issues/545
|
||||
[#530]: https://github.com/import-js/eslint-plugin-import/issues/530
|
||||
[#529]: https://github.com/import-js/eslint-plugin-import/issues/529
|
||||
[#519]: https://github.com/import-js/eslint-plugin-import/issues/519
|
||||
[#507]: https://github.com/import-js/eslint-plugin-import/issues/507
|
||||
[#484]: https://github.com/import-js/eslint-plugin-import/issues/484
|
||||
[#478]: https://github.com/import-js/eslint-plugin-import/issues/478
|
||||
[#456]: https://github.com/import-js/eslint-plugin-import/issues/456
|
||||
[#453]: https://github.com/import-js/eslint-plugin-import/issues/453
|
||||
[#452]: https://github.com/import-js/eslint-plugin-import/issues/452
|
||||
[#447]: https://github.com/import-js/eslint-plugin-import/issues/447
|
||||
[#441]: https://github.com/import-js/eslint-plugin-import/issues/441
|
||||
[#423]: https://github.com/import-js/eslint-plugin-import/issues/423
|
||||
[#416]: https://github.com/import-js/eslint-plugin-import/issues/416
|
||||
[#415]: https://github.com/import-js/eslint-plugin-import/issues/415
|
||||
[#402]: https://github.com/import-js/eslint-plugin-import/issues/402
|
||||
[#386]: https://github.com/import-js/eslint-plugin-import/issues/386
|
||||
[#373]: https://github.com/import-js/eslint-plugin-import/issues/373
|
||||
[#370]: https://github.com/import-js/eslint-plugin-import/issues/370
|
||||
[#348]: https://github.com/import-js/eslint-plugin-import/issues/348
|
||||
[#342]: https://github.com/import-js/eslint-plugin-import/issues/342
|
||||
[#328]: https://github.com/import-js/eslint-plugin-import/issues/328
|
||||
[#317]: https://github.com/import-js/eslint-plugin-import/issues/317
|
||||
[#313]: https://github.com/import-js/eslint-plugin-import/issues/313
|
||||
[#311]: https://github.com/import-js/eslint-plugin-import/issues/311
|
||||
[#306]: https://github.com/import-js/eslint-plugin-import/issues/306
|
||||
[#286]: https://github.com/import-js/eslint-plugin-import/issues/286
|
||||
[#283]: https://github.com/import-js/eslint-plugin-import/issues/283
|
||||
[#281]: https://github.com/import-js/eslint-plugin-import/issues/281
|
||||
[#275]: https://github.com/import-js/eslint-plugin-import/issues/275
|
||||
[#272]: https://github.com/import-js/eslint-plugin-import/issues/272
|
||||
[#270]: https://github.com/import-js/eslint-plugin-import/issues/270
|
||||
[#267]: https://github.com/import-js/eslint-plugin-import/issues/267
|
||||
[#266]: https://github.com/import-js/eslint-plugin-import/issues/266
|
||||
[#216]: https://github.com/import-js/eslint-plugin-import/issues/216
|
||||
[#214]: https://github.com/import-js/eslint-plugin-import/issues/214
|
||||
[#210]: https://github.com/import-js/eslint-plugin-import/issues/210
|
||||
[#200]: https://github.com/import-js/eslint-plugin-import/issues/200
|
||||
[#192]: https://github.com/import-js/eslint-plugin-import/issues/192
|
||||
[#191]: https://github.com/import-js/eslint-plugin-import/issues/191
|
||||
[#189]: https://github.com/import-js/eslint-plugin-import/issues/189
|
||||
[#170]: https://github.com/import-js/eslint-plugin-import/issues/170
|
||||
[#155]: https://github.com/import-js/eslint-plugin-import/issues/155
|
||||
[#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/benmosher/eslint-plugin-import/compare/v2.23.4...HEAD
|
||||
[2.23.4]: https://github.com/benmosher/eslint-plugin-import/compare/v2.23.3...v2.23.4
|
||||
[2.23.3]: https://github.com/benmosher/eslint-plugin-import/compare/v2.23.2...v2.23.3
|
||||
[2.23.2]: https://github.com/benmosher/eslint-plugin-import/compare/v2.23.1...v2.23.2
|
||||
[2.23.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.23.0...v2.23.1
|
||||
[2.23.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.22.1...v2.23.0
|
||||
[2.22.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.22.0...v2.22.1
|
||||
[2.22.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.21.1...v2.22.0
|
||||
[2.21.2]: https://github.com/benmosher/eslint-plugin-import/compare/v2.21.1...v2.21.2
|
||||
[2.21.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.21.0...v2.21.1
|
||||
[2.21.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.20.2...v2.21.0
|
||||
[2.20.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.20.1...v2.20.2
|
||||
[2.20.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.20.0...v2.20.1
|
||||
[2.19.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.19.1...v2.20.0
|
||||
[2.19.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.19.0...v2.19.1
|
||||
[2.19.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.18.2...v2.19.0
|
||||
[2.18.2]: https://github.com/benmosher/eslint-plugin-import/compare/v2.18.1...v2.18.2
|
||||
[2.18.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.18.0...v2.18.1
|
||||
[2.18.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.17.3...v2.18.0
|
||||
[2.17.3]: https://github.com/benmosher/eslint-plugin-import/compare/v2.17.2...v2.17.3
|
||||
[2.17.2]: https://github.com/benmosher/eslint-plugin-import/compare/v2.17.1...v2.17.2
|
||||
[2.17.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.17.0...v2.17.1
|
||||
[2.17.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.16.0...v2.17.0
|
||||
[2.16.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.15.0...v2.16.0
|
||||
[2.15.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.14.0...v2.15.0
|
||||
[2.14.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.13.0...v2.14.0
|
||||
[2.13.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.12.0...v2.13.0
|
||||
[2.12.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.11.0...v2.12.0
|
||||
[2.11.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.10.0...v2.11.0
|
||||
[2.10.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.9.0...v2.10.0
|
||||
[2.9.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.8.0...v2.9.0
|
||||
[2.8.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.7.0...v2.8.0
|
||||
[2.7.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.6.1...v2.7.0
|
||||
[2.6.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.6.0...v2.6.1
|
||||
[2.6.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.5.0...v2.6.0
|
||||
[2.5.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.4.0...v2.5.0
|
||||
[2.4.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.3.0...v2.4.0
|
||||
[2.3.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.2.0...v2.3.0
|
||||
[2.2.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.1.0...v2.2.0
|
||||
[2.1.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.1...v2.1.0
|
||||
[2.0.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.0...v2.0.1
|
||||
[2.0.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.16.0...v2.0.0
|
||||
[1.16.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.15.0...v1.16.0
|
||||
[1.15.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.14.0...v1.15.0
|
||||
[1.14.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.13.0...v1.14.0
|
||||
[1.13.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.12.0...v1.13.0
|
||||
[1.12.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.11.1...v1.12.0
|
||||
[1.11.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.11.0...v1.11.1
|
||||
[1.11.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.10.3...v1.11.0
|
||||
[1.10.3]: https://github.com/benmosher/eslint-plugin-import/compare/v1.10.2...v1.10.3
|
||||
[1.10.2]: https://github.com/benmosher/eslint-plugin-import/compare/v1.10.1...v1.10.2
|
||||
[1.10.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.10.0...v1.10.1
|
||||
[1.10.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.9.2...v1.10.0
|
||||
[1.9.2]: https://github.com/benmosher/eslint-plugin-import/compare/v1.9.1...v1.9.2
|
||||
[1.9.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.9.0...v1.9.1
|
||||
[1.9.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.8.1...v1.9.0
|
||||
[1.8.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.8.0...v1.8.1
|
||||
[1.8.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.7.0...v1.8.0
|
||||
[1.7.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.6.1...v1.7.0
|
||||
[1.6.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.6.0...v1.6.1
|
||||
[1.6.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.5.0...1.6.0
|
||||
[1.5.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.4.0...v1.5.0
|
||||
[1.4.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.3.0...v1.4.0
|
||||
[1.3.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.2.0...v1.3.0
|
||||
[1.2.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.1.0...v1.2.0
|
||||
[1.1.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.0.4...v1.1.0
|
||||
[1.0.4]: https://github.com/benmosher/eslint-plugin-import/compare/v1.0.3...v1.0.4
|
||||
[1.0.3]: https://github.com/benmosher/eslint-plugin-import/compare/v1.0.2...v1.0.3
|
||||
[1.0.2]: https://github.com/benmosher/eslint-plugin-import/compare/v1.0.1...v1.0.2
|
||||
[1.0.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.0.0...v1.0.1
|
||||
[1.0.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.0.0-beta.0...v1.0.0
|
||||
[1.0.0-beta.0]: https://github.com/benmosher/eslint-plugin-import/compare/v0.13.0...v1.0.0-beta.0
|
||||
[0.13.0]: https://github.com/benmosher/eslint-plugin-import/compare/v0.12.1...v0.13.0
|
||||
[0.12.2]: https://github.com/benmosher/eslint-plugin-import/compare/v0.12.1...v0.12.2
|
||||
[0.12.1]: https://github.com/benmosher/eslint-plugin-import/compare/v0.12.0...v0.12.1
|
||||
[0.12.0]: https://github.com/benmosher/eslint-plugin-import/compare/v0.11.0...v0.12.0
|
||||
[0.11.0]: https://github.com/benmosher/eslint-plugin-import/compare/v0.10.1...v0.11.0
|
||||
[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.24.0...HEAD
|
||||
[2.24.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.23.4...v2.24.0
|
||||
[2.23.4]: https://github.com/import-js/eslint-plugin-import/compare/v2.23.3...v2.23.4
|
||||
[2.23.3]: https://github.com/import-js/eslint-plugin-import/compare/v2.23.2...v2.23.3
|
||||
[2.23.2]: https://github.com/import-js/eslint-plugin-import/compare/v2.23.1...v2.23.2
|
||||
[2.23.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.23.0...v2.23.1
|
||||
[2.23.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.22.1...v2.23.0
|
||||
[2.22.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.22.0...v2.22.1
|
||||
[2.22.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.21.1...v2.22.0
|
||||
[2.21.2]: https://github.com/import-js/eslint-plugin-import/compare/v2.21.1...v2.21.2
|
||||
[2.21.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.21.0...v2.21.1
|
||||
[2.21.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.20.2...v2.21.0
|
||||
[2.20.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.20.1...v2.20.2
|
||||
[2.20.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.20.0...v2.20.1
|
||||
[2.19.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.19.1...v2.20.0
|
||||
[2.19.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.19.0...v2.19.1
|
||||
[2.19.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.18.2...v2.19.0
|
||||
[2.18.2]: https://github.com/import-js/eslint-plugin-import/compare/v2.18.1...v2.18.2
|
||||
[2.18.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.18.0...v2.18.1
|
||||
[2.18.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.17.3...v2.18.0
|
||||
[2.17.3]: https://github.com/import-js/eslint-plugin-import/compare/v2.17.2...v2.17.3
|
||||
[2.17.2]: https://github.com/import-js/eslint-plugin-import/compare/v2.17.1...v2.17.2
|
||||
[2.17.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.17.0...v2.17.1
|
||||
[2.17.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.16.0...v2.17.0
|
||||
[2.16.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.15.0...v2.16.0
|
||||
[2.15.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.14.0...v2.15.0
|
||||
[2.14.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.13.0...v2.14.0
|
||||
[2.13.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.12.0...v2.13.0
|
||||
[2.12.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.11.0...v2.12.0
|
||||
[2.11.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.10.0...v2.11.0
|
||||
[2.10.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.9.0...v2.10.0
|
||||
[2.9.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.8.0...v2.9.0
|
||||
[2.8.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.7.0...v2.8.0
|
||||
[2.7.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.6.1...v2.7.0
|
||||
[2.6.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.6.0...v2.6.1
|
||||
[2.6.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.5.0...v2.6.0
|
||||
[2.5.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.4.0...v2.5.0
|
||||
[2.4.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.3.0...v2.4.0
|
||||
[2.3.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.2.0...v2.3.0
|
||||
[2.2.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.1.0...v2.2.0
|
||||
[2.1.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.1...v2.1.0
|
||||
[2.0.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.0...v2.0.1
|
||||
[2.0.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.16.0...v2.0.0
|
||||
[1.16.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.15.0...v1.16.0
|
||||
[1.15.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.14.0...v1.15.0
|
||||
[1.14.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.13.0...v1.14.0
|
||||
[1.13.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.12.0...v1.13.0
|
||||
[1.12.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.11.1...v1.12.0
|
||||
[1.11.1]: https://github.com/import-js/eslint-plugin-import/compare/v1.11.0...v1.11.1
|
||||
[1.11.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.10.3...v1.11.0
|
||||
[1.10.3]: https://github.com/import-js/eslint-plugin-import/compare/v1.10.2...v1.10.3
|
||||
[1.10.2]: https://github.com/import-js/eslint-plugin-import/compare/v1.10.1...v1.10.2
|
||||
[1.10.1]: https://github.com/import-js/eslint-plugin-import/compare/v1.10.0...v1.10.1
|
||||
[1.10.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.9.2...v1.10.0
|
||||
[1.9.2]: https://github.com/import-js/eslint-plugin-import/compare/v1.9.1...v1.9.2
|
||||
[1.9.1]: https://github.com/import-js/eslint-plugin-import/compare/v1.9.0...v1.9.1
|
||||
[1.9.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.8.1...v1.9.0
|
||||
[1.8.1]: https://github.com/import-js/eslint-plugin-import/compare/v1.8.0...v1.8.1
|
||||
[1.8.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.7.0...v1.8.0
|
||||
[1.7.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.6.1...v1.7.0
|
||||
[1.6.1]: https://github.com/import-js/eslint-plugin-import/compare/v1.6.0...v1.6.1
|
||||
[1.6.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.5.0...1.6.0
|
||||
[1.5.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.4.0...v1.5.0
|
||||
[1.4.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.3.0...v1.4.0
|
||||
[1.3.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.2.0...v1.3.0
|
||||
[1.2.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.1.0...v1.2.0
|
||||
[1.1.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.0.4...v1.1.0
|
||||
[1.0.4]: https://github.com/import-js/eslint-plugin-import/compare/v1.0.3...v1.0.4
|
||||
[1.0.3]: https://github.com/import-js/eslint-plugin-import/compare/v1.0.2...v1.0.3
|
||||
[1.0.2]: https://github.com/import-js/eslint-plugin-import/compare/v1.0.1...v1.0.2
|
||||
[1.0.1]: https://github.com/import-js/eslint-plugin-import/compare/v1.0.0...v1.0.1
|
||||
[1.0.0]: https://github.com/import-js/eslint-plugin-import/compare/v1.0.0-beta.0...v1.0.0
|
||||
[1.0.0-beta.0]: https://github.com/import-js/eslint-plugin-import/compare/v0.13.0...v1.0.0-beta.0
|
||||
[0.13.0]: https://github.com/import-js/eslint-plugin-import/compare/v0.12.1...v0.13.0
|
||||
[0.12.2]: https://github.com/import-js/eslint-plugin-import/compare/v0.12.1...v0.12.2
|
||||
[0.12.1]: https://github.com/import-js/eslint-plugin-import/compare/v0.12.0...v0.12.1
|
||||
[0.12.0]: https://github.com/import-js/eslint-plugin-import/compare/v0.11.0...v0.12.0
|
||||
[0.11.0]: https://github.com/import-js/eslint-plugin-import/compare/v0.10.1...v0.11.0
|
||||
|
||||
[@1pete]: https://github.com/1pete
|
||||
[@3nuc]: https://github.com/3nuc
|
||||
[@aamulumi]: https://github.com/aamulumi
|
||||
[@aberezkin]: https://github.com/aberezkin
|
||||
[@adamborowski]: https://github.com/adamborowski
|
||||
[@adjerbetian]: https://github.com/adjerbetian
|
||||
[@ai]: https://github.com/ai
|
||||
@@ -1238,6 +1276,7 @@ for info on changes for earlier releases.
|
||||
[@arvigeus]: https://github.com/arvigeus
|
||||
[@asapach]: https://github.com/asapach
|
||||
[@astorije]: https://github.com/astorije
|
||||
[@atav32]: https://github.com/atav32
|
||||
[@atikenny]: https://github.com/atikenny
|
||||
[@atos1990]: https://github.com/atos1990
|
||||
[@barbogast]: https://github.com/barbogast
|
||||
@@ -1273,6 +1312,7 @@ for info on changes for earlier releases.
|
||||
[@ephys]: https://github.com/ephys
|
||||
[@eps1lon]: https://github.com/eps1lon
|
||||
[@ernestostifano]: https://github.com/ernestostifano
|
||||
[@ertrzyiks]: https://github.com/ertrzyiks
|
||||
[@fa93hws]: https://github.com/fa93hws
|
||||
[@fengkfengk]: https://github.com/fengkfengk
|
||||
[@fernandopasik]: https://github.com/fernandopasik
|
||||
@@ -1322,6 +1362,7 @@ for info on changes for earlier releases.
|
||||
[@kiwka]: https://github.com/kiwka
|
||||
[@klimashkin]: https://github.com/klimashkin
|
||||
[@kmui2]: https://github.com/kmui2
|
||||
[@KostyaZgara]: https://github.com/KostyaZgara
|
||||
[@knpwrs]: https://github.com/knpwrs
|
||||
[@laysent]: https://github.com/laysent
|
||||
[@le0nik]: https://github.com/le0nik
|
||||
@@ -1329,6 +1370,7 @@ for info on changes for earlier releases.
|
||||
[@lencioni]: https://github.com/lencioni
|
||||
[@leonardodino]: https://github.com/leonardodino
|
||||
[@Librazy]: https://github.com/Librazy
|
||||
[@liby]: https://github.com/liby
|
||||
[@lilling]: https://github.com/lilling
|
||||
[@ljharb]: https://github.com/ljharb
|
||||
[@ljqx]: https://github.com/ljqx
|
||||
@@ -1358,6 +1400,7 @@ for info on changes for earlier releases.
|
||||
[@paztis]: https://github.com/paztis
|
||||
[@pcorpet]: https://github.com/pcorpet
|
||||
[@Pessimistress]: https://github.com/Pessimistress
|
||||
[@pmcelhaney]: https://github.com/pmcelhaney
|
||||
[@preco21]: https://github.com/preco21
|
||||
[@pzhine]: https://github.com/pzhine
|
||||
[@ramasilveyra]: https://github.com/ramasilveyra
|
||||
@@ -1369,6 +1412,7 @@ for info on changes for earlier releases.
|
||||
[@richardxia]: https://github.com/richardxia
|
||||
[@robertrossmann]: https://github.com/robertrossmann
|
||||
[@rosswarren]: https://github.com/rosswarren
|
||||
[@rperello]: https://github.com/rperello
|
||||
[@rsolomon]: https://github.com/rsolomon
|
||||
[@s-h-a-d-o-w]: https://github.com/s-h-a-d-o-w
|
||||
[@saschanaz]: https://github.com/saschanaz
|
||||
@@ -1385,6 +1429,7 @@ for info on changes for earlier releases.
|
||||
[@skozin]: https://github.com/skozin
|
||||
[@skyrpex]: https://github.com/skyrpex
|
||||
[@sompylasar]: https://github.com/sompylasar
|
||||
[@soryy708]: https://github.com/soryy708
|
||||
[@spalger]: https://github.com/spalger
|
||||
[@st-sloth]: https://github.com/st-sloth
|
||||
[@stekycz]: https://github.com/stekycz
|
||||
@@ -1407,6 +1452,7 @@ for info on changes for earlier releases.
|
||||
[@TrevorBurnham]: https://github.com/TrevorBurnham
|
||||
[@ttmarek]: https://github.com/ttmarek
|
||||
[@vikr01]: https://github.com/vikr01
|
||||
[@wenfangdu]: https://github.com/wenfangdu
|
||||
[@wKich]: https://github.com/wKich
|
||||
[@wschurman]: https://github.com/wschurman
|
||||
[@wtgtybhertgeghgtwtg]: https://github.com/wtgtybhertgeghgtwtg
|
||||
|
||||
10
node_modules/eslint-plugin-import/README.md
generated
vendored
10
node_modules/eslint-plugin-import/README.md
generated
vendored
@@ -1,8 +1,8 @@
|
||||
# eslint-plugin-import
|
||||
|
||||
[](https://travis-ci.org/benmosher/eslint-plugin-import)
|
||||
[](https://coveralls.io/github/benmosher/eslint-plugin-import?branch=master)
|
||||
[](https://ci.appveyor.com/project/benmosher/eslint-plugin-import/branch/master)
|
||||
[](https://travis-ci.org/import-js/eslint-plugin-import)
|
||||
[](https://coveralls.io/github/import-js/eslint-plugin-import?branch=master)
|
||||
[](https://ci.appveyor.com/project/import-js/eslint-plugin-import/branch/master)
|
||||
[](https://www.npmjs.com/package/eslint-plugin-import)
|
||||
[](http://www.npmtrends.com/eslint-plugin-import)
|
||||
|
||||
@@ -190,7 +190,7 @@ runtime (allowing some modules to be included more traditionally via script tags
|
||||
In the interest of supporting both of these, v0.11 introduces resolvers.
|
||||
|
||||
Currently [Node] and [webpack] resolution have been implemented, but the
|
||||
resolvers are just npm packages, so [third party packages are supported](https://github.com/benmosher/eslint-plugin-import/wiki/Resolvers) (and encouraged!).
|
||||
resolvers are just npm packages, so [third party packages are supported](https://github.com/import-js/eslint-plugin-import/wiki/Resolvers) (and encouraged!).
|
||||
|
||||
You can reference resolvers in several ways (in order of precedence):
|
||||
|
||||
@@ -348,6 +348,8 @@ An array of folders. Resolved modules only from those folders will be considered
|
||||
|
||||
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.
|
||||
|
||||
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`.
|
||||
|
||||
Each item in this array is either a folder's name, its subpath, or its absolute prefix path:
|
||||
|
||||
- `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`.
|
||||
|
||||
10
node_modules/eslint-plugin-import/RELEASE.md
generated
vendored
10
node_modules/eslint-plugin-import/RELEASE.md
generated
vendored
@@ -13,16 +13,16 @@
|
||||
at last version's tag.
|
||||
|
||||
```markdown
|
||||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.1...HEAD
|
||||
[2.0.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.0...v2.0.1
|
||||
[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.1...HEAD
|
||||
[2.0.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.0...v2.0.1
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
```markdown
|
||||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v2.1.0...HEAD
|
||||
[2.1.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.1...v2.1.0
|
||||
[2.0.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.0...v2.0.1
|
||||
[Unreleased]: https://github.com/import-js/eslint-plugin-import/compare/v2.1.0...HEAD
|
||||
[2.1.0]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.1...v2.1.0
|
||||
[2.0.1]: https://github.com/import-js/eslint-plugin-import/compare/v2.0.0...v2.0.1
|
||||
```
|
||||
|
||||
Generally, don't use `npm version` for this because it creates a tag, which I normally
|
||||
|
||||
4
node_modules/eslint-plugin-import/docs/rules/extensions.md
generated
vendored
4
node_modules/eslint-plugin-import/docs/rules/extensions.md
generated
vendored
@@ -109,8 +109,6 @@ import foo from './foo';
|
||||
import bar from './bar';
|
||||
|
||||
import Component from './Component';
|
||||
|
||||
import express from 'express';
|
||||
```
|
||||
|
||||
The following patterns are not considered problems when configuration set to "always":
|
||||
@@ -122,8 +120,6 @@ import bar from './bar.json';
|
||||
|
||||
import Component from './Component.jsx';
|
||||
|
||||
import express from 'express/index.js';
|
||||
|
||||
import * as path from 'path';
|
||||
```
|
||||
|
||||
|
||||
2
node_modules/eslint-plugin-import/docs/rules/first.md
generated
vendored
2
node_modules/eslint-plugin-import/docs/rules/first.md
generated
vendored
@@ -67,4 +67,4 @@ enable this rule.
|
||||
- Issue [#255]
|
||||
|
||||
[`import/order`]: ./order.md
|
||||
[#255]: https://github.com/benmosher/eslint-plugin-import/issues/255
|
||||
[#255]: https://github.com/import-js/eslint-plugin-import/issues/255
|
||||
|
||||
2
node_modules/eslint-plugin-import/docs/rules/imports-first.md
generated
vendored
2
node_modules/eslint-plugin-import/docs/rules/imports-first.md
generated
vendored
@@ -1,3 +1,3 @@
|
||||
# imports-first
|
||||
|
||||
This rule was **deprecated** in eslint-plugin-import v2.0.0. Please use the corresponding rule [`first`](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md).
|
||||
This rule was **deprecated** in eslint-plugin-import v2.0.0. Please use the corresponding rule [`first`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md).
|
||||
|
||||
8
node_modules/eslint-plugin-import/docs/rules/named.md
generated
vendored
8
node_modules/eslint-plugin-import/docs/rules/named.md
generated
vendored
@@ -5,7 +5,7 @@ Verifies that all named imports are part of the set of named exports in the refe
|
||||
For `export`, verifies that all named exports exist in the referenced module.
|
||||
|
||||
Note: for packages, the plugin will find exported names
|
||||
from [`jsnext:main`], if present in `package.json`.
|
||||
from [`jsnext:main`] (deprecated) or `module`, if present in `package.json`.
|
||||
Redux's npm module includes this key, and thereby is lintable, for example.
|
||||
|
||||
A module path that is [ignored] or not [unambiguously an ES module] will not be reported when imported. Note that type imports and exports, as used by [Flow], are always ignored.
|
||||
@@ -91,8 +91,10 @@ runtime, you will likely see false positives with this rule.
|
||||
## Further Reading
|
||||
|
||||
- [`import/ignore`] setting
|
||||
- [`jsnext:main`] (Rollup)
|
||||
- [`jsnext:main`] deprecation
|
||||
- [`pkg.module`] (Rollup)
|
||||
|
||||
|
||||
[`jsnext:main`]: https://github.com/rollup/rollup/wiki/jsnext:main
|
||||
[`jsnext:main`]: https://github.com/jsforum/jsforum/issues/5
|
||||
[`pkg.module`]: https://github.com/rollup/rollup/wiki/pkg.module
|
||||
[`import/ignore`]: ../../README.md#importignore
|
||||
|
||||
2
node_modules/eslint-plugin-import/docs/rules/no-cycle.md
generated
vendored
2
node_modules/eslint-plugin-import/docs/rules/no-cycle.md
generated
vendored
@@ -83,7 +83,7 @@ this rule enabled.
|
||||
|
||||
## Further Reading
|
||||
|
||||
- [Original inspiring issue](https://github.com/benmosher/eslint-plugin-import/issues/941)
|
||||
- [Original inspiring issue](https://github.com/import-js/eslint-plugin-import/issues/941)
|
||||
- Rule to detect that module imports itself: [`no-self-import`]
|
||||
- [`import/external-module-folders`] setting
|
||||
|
||||
|
||||
2
node_modules/eslint-plugin-import/docs/rules/no-duplicates.md
generated
vendored
2
node_modules/eslint-plugin-import/docs/rules/no-duplicates.md
generated
vendored
@@ -7,7 +7,7 @@ ESLint core has a similar rule ([`no-duplicate-imports`](http://eslint.org/docs/
|
||||
is different in two key ways:
|
||||
|
||||
1. the paths in the source code don't have to exactly match, they just have to point to the same module on the filesystem. (i.e. `./foo` and `./foo.js`)
|
||||
2. this version distinguishes Flow `type` imports from standard imports. ([#334](https://github.com/benmosher/eslint-plugin-import/pull/334))
|
||||
2. this version distinguishes Flow `type` imports from standard imports. ([#334](https://github.com/import-js/eslint-plugin-import/pull/334))
|
||||
|
||||
## Rule Details
|
||||
|
||||
|
||||
11
node_modules/eslint-plugin-import/docs/rules/no-namespace.md
generated
vendored
11
node_modules/eslint-plugin-import/docs/rules/no-namespace.md
generated
vendored
@@ -5,6 +5,12 @@ Enforce a convention of not using namespace (a.k.a. "wildcard" `*`) imports.
|
||||
+(fixable) The `--fix` option on the [command line] automatically fixes problems reported by this rule, provided that the namespace object is only used for direct member access, e.g. `namespace.a`.
|
||||
The `--fix` functionality for this rule requires ESLint 5 or newer.
|
||||
|
||||
### Options
|
||||
|
||||
This rule supports the following options:
|
||||
|
||||
- `ignore`: array of glob strings for modules that should be ignored by the rule.
|
||||
|
||||
## Rule Details
|
||||
|
||||
Valid:
|
||||
@@ -15,6 +21,11 @@ import { a, b } from './bar'
|
||||
import defaultExport, { a, b } from './foobar'
|
||||
```
|
||||
|
||||
```js
|
||||
/* eslint import/no-namespace: ["error", {ignore: ['*.ext']] */
|
||||
import * as bar from './ignored-module.ext';
|
||||
```
|
||||
|
||||
Invalid:
|
||||
|
||||
```js
|
||||
|
||||
2
node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md
generated
vendored
2
node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md
generated
vendored
@@ -10,7 +10,7 @@ Note: dynamic imports are currently not supported.
|
||||
|
||||
### Usage
|
||||
|
||||
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)
|
||||
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/import-js/eslint-plugin-import/issues/1324)
|
||||
|
||||
Example:
|
||||
```
|
||||
|
||||
2
node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md
generated
vendored
2
node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md
generated
vendored
@@ -72,7 +72,7 @@ import "./pages/index"; // should be "./pages" (auto-fixable)
|
||||
import "./pages/index.js"; // should be "./pages" (auto-fixable)
|
||||
```
|
||||
|
||||
Note: `noUselessIndex` only avoids ambiguous imports for `.js` files if you haven't specified other resolved file extensions. See [Settings: import/extensions](https://github.com/benmosher/eslint-plugin-import#importextensions) for details.
|
||||
Note: `noUselessIndex` only avoids ambiguous imports for `.js` files if you haven't specified other resolved file extensions. See [Settings: import/extensions](https://github.com/import-js/eslint-plugin-import#importextensions) for details.
|
||||
|
||||
### commonjs
|
||||
|
||||
|
||||
21
node_modules/eslint-plugin-import/docs/rules/order.md
generated
vendored
21
node_modules/eslint-plugin-import/docs/rules/order.md
generated
vendored
@@ -148,6 +148,27 @@ Example:
|
||||
}]
|
||||
}
|
||||
```
|
||||
|
||||
You can also use `patterns`(e.g., `react`, `react-router-dom`, etc).
|
||||
|
||||
Example:
|
||||
```json
|
||||
{
|
||||
"import/order": [
|
||||
"error",
|
||||
{
|
||||
"pathGroups": [
|
||||
{
|
||||
"pattern": "react",
|
||||
"group": "builtin",
|
||||
"position": "before"
|
||||
}
|
||||
],
|
||||
"pathGroupsExcludedImportTypes": ["react"]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
The default value is `["builtin", "external"]`.
|
||||
|
||||
### `newlines-between: [ignore|always|always-and-inside-groups|never]`:
|
||||
|
||||
148
node_modules/eslint-plugin-import/lib/ExportMap.js
generated
vendored
148
node_modules/eslint-plugin-import/lib/ExportMap.js
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/eslint-plugin-import/lib/core/importType.js
generated
vendored
8
node_modules/eslint-plugin-import/lib/core/importType.js
generated
vendored
File diff suppressed because one or more lines are too long
12
node_modules/eslint-plugin-import/lib/core/packagePath.js
generated
vendored
12
node_modules/eslint-plugin-import/lib/core/packagePath.js
generated
vendored
@@ -12,8 +12,12 @@ getFilePackagePath = getFilePackagePath;exports.
|
||||
|
||||
|
||||
|
||||
getFilePackageName = getFilePackageName;var _path = require('path');var _findUp = require('find-up');var _findUp2 = _interopRequireDefault(_findUp);var _readPkgUp = require('read-pkg-up');var _readPkgUp2 = _interopRequireDefault(_readPkgUp);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function getContextPackagePath(context) {return getFilePackagePath(context.getFilename());}function getFilePackagePath(filePath) {const fp = _findUp2.default.sync('package.json', { cwd: filePath });return (0, _path.dirname)(fp);}function getFilePackageName(filePath) {var _readPkgUp$sync =
|
||||
_readPkgUp2.default.sync({ cwd: filePath, normalize: false });const pkg = _readPkgUp$sync.pkg;
|
||||
return pkg && pkg.name;
|
||||
getFilePackageName = getFilePackageName;var _path = require('path');var _findUp = require('find-up');var _findUp2 = _interopRequireDefault(_findUp);var _readPkgUp = require('read-pkg-up');var _readPkgUp2 = _interopRequireDefault(_readPkgUp);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function getContextPackagePath(context) {return getFilePackagePath(context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename());}function getFilePackagePath(filePath) {var fp = _findUp2['default'].sync('package.json', { cwd: filePath });return (0, _path.dirname)(fp);}function getFilePackageName(filePath) {var _readPkgUp$sync =
|
||||
_readPkgUp2['default'].sync({ cwd: filePath, normalize: false }),pkg = _readPkgUp$sync.pkg,path = _readPkgUp$sync.path;
|
||||
if (pkg) {
|
||||
// recursion in case of intermediate esm package.json without name found
|
||||
return pkg.name || getFilePackageName((0, _path.dirname)((0, _path.dirname)(path)));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3JlL3BhY2thZ2VQYXRoLmpzIl0sIm5hbWVzIjpbImdldENvbnRleHRQYWNrYWdlUGF0aCIsImdldEZpbGVQYWNrYWdlUGF0aCIsImdldEZpbGVQYWNrYWdlTmFtZSIsImNvbnRleHQiLCJnZXRGaWxlbmFtZSIsImZpbGVQYXRoIiwiZnAiLCJmaW5kVXAiLCJzeW5jIiwiY3dkIiwicmVhZFBrZ1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b25zdCBmcCA9IGZpbmRVcC5zeW5jKCdwYWNrYWdlLmpzb24nLCB7IGN3ZDogZmlsZVBhdGggfSk7XG4gIHJldHVybiBkaXJuYW1lKGZwKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGdldEZpbGVQYWNrYWdlTmFtZShmaWxlUGF0aCkge1xuICBjb25zdCB7IHBrZywgcGF0aCB9ID0gcmVhZFBrZ1VwLnN5bmMoeyBjd2Q6IGZpbGVQYXRoLCBub3JtYWxpemU6IGZhbHNlIH0pO1xuICBpZiAocGtnKSB7XG4gICAgLy8gcmVjdXJzaW9uIGluIGNhc2Ugb2YgaW50ZXJtZWRpYXRlIGVzbSBwYWNrYWdlLmpzb24gd2l0aG91dCBuYW1lIGZvdW5kXG4gICAgcmV0dXJuIHBrZy5uYW1lIHx8IGdldEZpbGVQYWNrYWdlTmFtZShkaXJuYW1lKGRpcm5hbWUocGF0aCkpKTtcbiAgfVxuICByZXR1cm4gbnVsbDtcbn1cbiJdfQ==
|
||||
2
node_modules/eslint-plugin-import/lib/core/staticRequire.js
generated
vendored
2
node_modules/eslint-plugin-import/lib/core/staticRequire.js
generated
vendored
@@ -1,4 +1,4 @@
|
||||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.default =
|
||||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports['default'] =
|
||||
isStaticRequire; // todo: merge with module visitor
|
||||
function isStaticRequire(node) {return node &&
|
||||
node.callee &&
|
||||
|
||||
8
node_modules/eslint-plugin-import/lib/docsUrl.js
generated
vendored
8
node_modules/eslint-plugin-import/lib/docsUrl.js
generated
vendored
@@ -1,8 +1,8 @@
|
||||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.default =
|
||||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports['default'] =
|
||||
|
||||
|
||||
|
||||
docsUrl;var _package = require('../package.json');var _package2 = _interopRequireDefault(_package);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}const repoUrl = 'https://github.com/benmosher/eslint-plugin-import';function docsUrl(ruleName) {let commitish = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : `v${_package2.default.version}`;
|
||||
return `${repoUrl}/blob/${commitish}/docs/rules/${ruleName}.md`;
|
||||
docsUrl;var _package = require('../package.json');var _package2 = _interopRequireDefault(_package);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}var repoUrl = 'https://github.com/import-js/eslint-plugin-import';function docsUrl(ruleName) {var commitish = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'v' + String(_package2['default'].version);
|
||||
return repoUrl + '/blob/' + String(commitish) + '/docs/rules/' + String(ruleName) + '.md';
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kb2NzVXJsLmpzIl0sIm5hbWVzIjpbImRvY3NVcmwiLCJyZXBvVXJsIiwicnVsZU5hbWUiLCJjb21taXRpc2giLCJwa2ciLCJ2ZXJzaW9uIl0sIm1hcHBpbmdzIjoiOzs7O0FBSXdCQSxPLENBSnhCLDBDLDhJQUVBLE1BQU1DLFVBQVUsbURBQWhCLENBRWUsU0FBU0QsT0FBVCxDQUFpQkUsUUFBakIsRUFBMEQsS0FBL0JDLFNBQStCLHVFQUFsQixJQUFHQyxrQkFBSUMsT0FBUSxFQUFHO0FBQ3ZFLFNBQVEsR0FBRUosT0FBUSxTQUFRRSxTQUFVLGVBQWNELFFBQVMsS0FBM0Q7QUFDRCIsImZpbGUiOiJkb2NzVXJsLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHBrZyBmcm9tICcuLi9wYWNrYWdlLmpzb24nO1xuXG5jb25zdCByZXBvVXJsID0gJ2h0dHBzOi8vZ2l0aHViLmNvbS9iZW5tb3NoZXIvZXNsaW50LXBsdWdpbi1pbXBvcnQnO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBkb2NzVXJsKHJ1bGVOYW1lLCBjb21taXRpc2ggPSBgdiR7cGtnLnZlcnNpb259YCkge1xuICByZXR1cm4gYCR7cmVwb1VybH0vYmxvYi8ke2NvbW1pdGlzaH0vZG9jcy9ydWxlcy8ke3J1bGVOYW1lfS5tZGA7XG59XG4iXX0=
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kb2NzVXJsLmpzIl0sIm5hbWVzIjpbImRvY3NVcmwiLCJyZXBvVXJsIiwicnVsZU5hbWUiLCJjb21taXRpc2giLCJwa2ciLCJ2ZXJzaW9uIl0sIm1hcHBpbmdzIjoiOzs7O0FBSXdCQSxPLENBSnhCLDBDLGdKQUVBLElBQU1DLFVBQVUsbURBQWhCLENBRWUsU0FBU0QsT0FBVCxDQUFpQkUsUUFBakIsRUFBMEQsS0FBL0JDLFNBQStCLG9GQUFmQyxxQkFBSUMsT0FBVztBQUN2RSxTQUFVSixPQUFWLHFCQUEwQkUsU0FBMUIsNEJBQWtERCxRQUFsRDtBQUNEIiwiZmlsZSI6ImRvY3NVcmwuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgcGtnIGZyb20gJy4uL3BhY2thZ2UuanNvbic7XG5cbmNvbnN0IHJlcG9VcmwgPSAnaHR0cHM6Ly9naXRodWIuY29tL2ltcG9ydC1qcy9lc2xpbnQtcGx1Z2luLWltcG9ydCc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGRvY3NVcmwocnVsZU5hbWUsIGNvbW1pdGlzaCA9IGB2JHtwa2cudmVyc2lvbn1gKSB7XG4gIHJldHVybiBgJHtyZXBvVXJsfS9ibG9iLyR7Y29tbWl0aXNofS9kb2NzL3J1bGVzLyR7cnVsZU5hbWV9Lm1kYDtcbn1cbiJdfQ==
|
||||
6
node_modules/eslint-plugin-import/lib/importDeclaration.js
generated
vendored
6
node_modules/eslint-plugin-import/lib/importDeclaration.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = importDeclaration;function importDeclaration(context) {
|
||||
const ancestors = context.getAncestors();
|
||||
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports["default"] = importDeclaration;function importDeclaration(context) {
|
||||
var ancestors = context.getAncestors();
|
||||
return ancestors[ancestors.length - 1];
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbXBvcnREZWNsYXJhdGlvbi5qcyJdLCJuYW1lcyI6WyJpbXBvcnREZWNsYXJhdGlvbiIsImNvbnRleHQiLCJhbmNlc3RvcnMiLCJnZXRBbmNlc3RvcnMiLCJsZW5ndGgiXSwibWFwcGluZ3MiOiI2RkFBd0JBLGlCLENBQVQsU0FBU0EsaUJBQVQsQ0FBMkJDLE9BQTNCLEVBQW9DO0FBQ2pELFFBQU1DLFlBQVlELFFBQVFFLFlBQVIsRUFBbEI7QUFDQSxTQUFPRCxVQUFVQSxVQUFVRSxNQUFWLEdBQW1CLENBQTdCLENBQVA7QUFDRCIsImZpbGUiOiJpbXBvcnREZWNsYXJhdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGltcG9ydERlY2xhcmF0aW9uKGNvbnRleHQpIHtcbiAgY29uc3QgYW5jZXN0b3JzID0gY29udGV4dC5nZXRBbmNlc3RvcnMoKTtcbiAgcmV0dXJuIGFuY2VzdG9yc1thbmNlc3RvcnMubGVuZ3RoIC0gMV07XG59XG4iXX0=
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbXBvcnREZWNsYXJhdGlvbi5qcyJdLCJuYW1lcyI6WyJpbXBvcnREZWNsYXJhdGlvbiIsImNvbnRleHQiLCJhbmNlc3RvcnMiLCJnZXRBbmNlc3RvcnMiLCJsZW5ndGgiXSwibWFwcGluZ3MiOiJnR0FBd0JBLGlCLENBQVQsU0FBU0EsaUJBQVQsQ0FBMkJDLE9BQTNCLEVBQW9DO0FBQ2pELE1BQU1DLFlBQVlELFFBQVFFLFlBQVIsRUFBbEI7QUFDQSxTQUFPRCxVQUFVQSxVQUFVRSxNQUFWLEdBQW1CLENBQTdCLENBQVA7QUFDRCIsImZpbGUiOiJpbXBvcnREZWNsYXJhdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGltcG9ydERlY2xhcmF0aW9uKGNvbnRleHQpIHtcbiAgY29uc3QgYW5jZXN0b3JzID0gY29udGV4dC5nZXRBbmNlc3RvcnMoKTtcbiAgcmV0dXJuIGFuY2VzdG9yc1thbmNlc3RvcnMubGVuZ3RoIC0gMV07XG59XG4iXX0=
|
||||
6
node_modules/eslint-plugin-import/lib/index.js
generated
vendored
6
node_modules/eslint-plugin-import/lib/index.js
generated
vendored
File diff suppressed because one or more lines are too long
42
node_modules/eslint-plugin-import/lib/rules/default.js
generated
vendored
42
node_modules/eslint-plugin-import/lib/rules/default.js
generated
vendored
@@ -1,40 +1,40 @@
|
||||
'use strict';var _ExportMap = require('../ExportMap');var _ExportMap2 = _interopRequireDefault(_ExportMap);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('default') },
|
||||
url: (0, _docsUrl2['default'])('default') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
create: function () {function create(context) {
|
||||
|
||||
function checkDefault(specifierType, node) {
|
||||
function checkDefault(specifierType, node) {
|
||||
|
||||
const defaultSpecifier = node.specifiers.find(
|
||||
specifier => specifier.type === specifierType);
|
||||
var defaultSpecifier = node.specifiers.find(
|
||||
function (specifier) {return specifier.type === specifierType;});
|
||||
|
||||
|
||||
if (!defaultSpecifier) return;
|
||||
const imports = _ExportMap2.default.get(node.source.value, context);
|
||||
if (imports == null) return;
|
||||
if (!defaultSpecifier) return;
|
||||
var imports = _ExportMap2['default'].get(node.source.value, context);
|
||||
if (imports == null) return;
|
||||
|
||||
if (imports.errors.length) {
|
||||
imports.reportErrors(context, node);
|
||||
} else if (imports.get('default') === undefined) {
|
||||
context.report({
|
||||
node: defaultSpecifier,
|
||||
message: `No default export found in imported module "${node.source.value}".` });
|
||||
if (imports.errors.length) {
|
||||
imports.reportErrors(context, node);
|
||||
} else if (imports.get('default') === undefined) {
|
||||
context.report({
|
||||
node: defaultSpecifier,
|
||||
message: 'No default export found in imported module "' + String(node.source.value) + '".' });
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
'ImportDeclaration': checkDefault.bind(null, 'ImportDefaultSpecifier'),
|
||||
'ExportNamedDeclaration': checkDefault.bind(null, 'ExportDefaultSpecifier') };
|
||||
return {
|
||||
'ImportDeclaration': checkDefault.bind(null, 'ImportDefaultSpecifier'),
|
||||
'ExportNamedDeclaration': checkDefault.bind(null, 'ExportDefaultSpecifier') };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwiY2hlY2tEZWZhdWx0Iiwic3BlY2lmaWVyVHlwZS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0dXJuO1xuXG4gICAgICBpZiAoaW1wb3J0cy5lcnJvcnMubGVuZ3RoKSB7XG4gICAgICAgIGltcG9ydHMucmVwb3J0RXJyb3JzKGNvbnRleHQsIG5vZGUpO1xuICAgICAgfSBlbHNlIGlmIChpbXBvcnRzLmdldCgnZGVmYXVsdCcpID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgIG5vZGU6IGRlZmF1bHRTcGVjaWZpZXIsXG4gICAgICAgICAgbWVzc2FnZTogYE5vIGRlZmF1bHQgZXhwb3J0IGZvdW5kIGluIGltcG9ydGVkIG1vZHVsZSBcIiR7bm9kZS5zb3VyY2UudmFsdWV9XCIuYCxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHtcbiAgICAgICdJbXBvcnREZWNsYXJhdGlvbic6IGNoZWNrRGVmYXVsdC5iaW5kKG51bGwsICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJyksXG4gICAgICAnRXhwb3J0TmFtZWREZWNsYXJhdGlvbic6IGNoZWNrRGVmYXVsdC5iaW5kKG51bGwsICdFeHBvcnREZWZhdWx0U3BlY2lmaWVyJyksXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwiY2hlY2tEZWZhdWx0Iiwic3BlY2lmaWVyVHlwZSIsIm5vZGUiLCJkZWZhdWx0U3BlY2lmaWVyIiwic3BlY2lmaWVycyIsImZpbmQiLCJzcGVjaWZpZXIiLCJpbXBvcnRzIiwiRXhwb3J0c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cnJvcnMoY29udGV4dCwgbm9kZSk7XG4gICAgICB9IGVsc2UgaWYgKGltcG9ydHMuZ2V0KCdkZWZhdWx0JykgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgbm9kZTogZGVmYXVsdFNwZWNpZmllcixcbiAgICAgICAgICBtZXNzYWdlOiBgTm8gZGVmYXVsdCBleHBvcnQgZm91bmQgaW4gaW1wb3J0ZWQgbW9kdWxlIFwiJHtub2RlLnNvdXJjZS52YWx1ZX1cIi5gLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgJ0ltcG9ydERlY2xhcmF0aW9uJzogY2hlY2tEZWZhdWx0LmJpbmQobnVsbCwgJ0ltcG9ydERlZmF1bHRTcGVjaWZpZXInKSxcbiAgICAgICdFeHBvcnROYW1lZERlY2xhcmF0aW9uJzogY2hlY2tEZWZhdWx0LmJpbmQobnVsbCwgJ0V4cG9ydERlZmF1bHRTcGVjaWZpZXInKSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ==
|
||||
158
node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js
generated
vendored
158
node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js
generated
vendored
File diff suppressed because one or more lines are too long
262
node_modules/eslint-plugin-import/lib/rules/export.js
generated
vendored
262
node_modules/eslint-plugin-import/lib/rules/export.js
generated
vendored
File diff suppressed because one or more lines are too long
46
node_modules/eslint-plugin-import/lib/rules/exports-last.js
generated
vendored
46
node_modules/eslint-plugin-import/lib/rules/exports-last.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
function isNonExportStatement(_ref) {let type = _ref.type;
|
||||
function isNonExportStatement(_ref) {var type = _ref.type;
|
||||
return type !== 'ExportDefaultDeclaration' &&
|
||||
type !== 'ExportNamedDeclaration' &&
|
||||
type !== 'ExportAllDeclaration';
|
||||
@@ -10,32 +10,32 @@ module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('exports-last') },
|
||||
url: (0, _docsUrl2['default'])('exports-last') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
return {
|
||||
Program: function (_ref2) {let body = _ref2.body;
|
||||
const lastNonExportStatementIndex = body.reduce(function findLastIndex(acc, item, index) {
|
||||
if (isNonExportStatement(item)) {
|
||||
return index;
|
||||
}
|
||||
return acc;
|
||||
}, -1);
|
||||
create: function () {function create(context) {
|
||||
return {
|
||||
Program: function () {function Program(_ref2) {var body = _ref2.body;
|
||||
var lastNonExportStatementIndex = body.reduce(function () {function findLastIndex(acc, item, index) {
|
||||
if (isNonExportStatement(item)) {
|
||||
return index;
|
||||
}
|
||||
return acc;
|
||||
}return findLastIndex;}(), -1);
|
||||
|
||||
if (lastNonExportStatementIndex !== -1) {
|
||||
body.slice(0, lastNonExportStatementIndex).forEach(function checkNonExport(node) {
|
||||
if (!isNonExportStatement(node)) {
|
||||
context.report({
|
||||
node,
|
||||
message: 'Export statements should appear at the end of the file' });
|
||||
if (lastNonExportStatementIndex !== -1) {
|
||||
body.slice(0, lastNonExportStatementIndex).forEach(function () {function checkNonExport(node) {
|
||||
if (!isNonExportStatement(node)) {
|
||||
context.report({
|
||||
node: node,
|
||||
message: 'Export statements should appear at the end of the file' });
|
||||
|
||||
}
|
||||
}return checkNonExport;}());
|
||||
}
|
||||
});
|
||||
}
|
||||
} };
|
||||
}return Program;}() };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,ey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0aW9uICh7IGJvZHkgfSkge1xuICAgICAgICBjb25zdCBsYXN0Tm9uRXhwb3J0U3RhdGVtZW50SW5kZXggPSBib2R5LnJlZHVjZShmdW5jdGlvbiBmaW5kTGFzdEluZGV4KGFjYywgaXRlbSwgaW5kZXgpIHtcbiAgICAgICAgICBpZiAoaXNOb25FeHBvcnRTdGF0ZW1lbnQoaXRlbSkpIHtcbiAgICAgICAgICAgIHJldHVybiBpbmRleDtcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIGFjYztcbiAgICAgICAgfSwgLTEpO1xuXG4gICAgICAgIGlmIChsYXN0Tm9uRXhwb3J0U3RhdGVtZW50SW5kZXggIT09IC0xKSB7XG4gICAgICAgICAgYm9keS5zbGljZSgwLCBsYXN0Tm9uRXhwb3J0U3RhdGVtZW50SW5kZXgpLmZvckVhY2goZnVuY3Rpb24gY2hlY2tOb25FeHBvcnQobm9kZSkge1xuICAgICAgICAgICAgaWYgKCFpc05vbkV4cG9ydFN0YXRlbWVudChub2RlKSkge1xuICAgICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiAnRXhwb3J0IHN0YXRlbWVudHMgc2hvdWxkIGFwcGVhciBhdCB0aGUgZW5kIG9mIHRoZSBmaWxlJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9leHBvcnRzLWxhc3QuanMiXSwibmFtZXMiOlsiaXNOb25FeHBvcnRTdGF0ZW1lbnQiLCJ0eXBlIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJkb2NzI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ZExhc3RJbmRleChhY2MsIGl0ZW0sIGluZGV4KSB7XG4gICAgICAgICAgaWYgKGlzTm9uRXhwb3J0U3RhdGVtZW50KGl0ZW0pKSB7XG4gICAgICAgICAgICByZXR1cm4gaW5kZXg7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiBhY2M7XG4gICAgICAgIH0sIC0xKTtcblxuICAgICAgICBpZiAobGFzdE5vbkV4cG9ydFN0YXRlbWVudEluZGV4ICE9PSAtMSkge1xuICAgICAgICAgIGJvZHkuc2xpY2UoMCwgbGFzdE5vbkV4cG9ydFN0YXRlbWVudEluZGV4KS5mb3JFYWNoKGZ1bmN0aW9uIGNoZWNrTm9uRXhwb3J0KG5vZGUpIHtcbiAgICAgICAgICAgIGlmICghaXNOb25FeHBvcnRTdGF0ZW1lbnQobm9kZSkpIHtcbiAgICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgbWVzc2FnZTogJ0V4cG9ydCBzdGF0ZW1lbnRzIHNob3VsZCBhcHBlYXIgYXQgdGhlIGVuZCBvZiB0aGUgZmlsZScsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19
|
||||
138
node_modules/eslint-plugin-import/lib/rules/extensions.js
generated
vendored
138
node_modules/eslint-plugin-import/lib/rules/extensions.js
generated
vendored
File diff suppressed because one or more lines are too long
220
node_modules/eslint-plugin-import/lib/rules/first.js
generated
vendored
220
node_modules/eslint-plugin-import/lib/rules/first.js
generated
vendored
File diff suppressed because one or more lines are too long
150
node_modules/eslint-plugin-import/lib/rules/group-exports.js
generated
vendored
150
node_modules/eslint-plugin-import/lib/rules/group-exports.js
generated
vendored
File diff suppressed because one or more lines are too long
10
node_modules/eslint-plugin-import/lib/rules/imports-first.js
generated
vendored
10
node_modules/eslint-plugin-import/lib/rules/imports-first.js
generated
vendored
@@ -1,13 +1,13 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
const first = require('./first');
|
||||
var first = require('./first');
|
||||
|
||||
const newMeta = Object.assign({}, first.meta, {
|
||||
var newMeta = Object.assign({}, first.meta, {
|
||||
deprecated: true,
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('imports-first', '7b25c1cb95ee18acc1531002fd343e1e6031f9ed') } });
|
||||
url: (0, _docsUrl2['default'])('imports-first', '7b25c1cb95ee18acc1531002fd343e1e6031f9ed') } });
|
||||
|
||||
|
||||
|
||||
module.exports = Object.assign({}, first, { meta: newMeta });
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9pbXBvcnRzLWZpcnN0LmpzIl0sIm5hbWVzIjpbImZpcnN0IiwicmVxdWlyZSIsIm5ld01ldGEiLCJPYmplY3QiLCJhc3NpZ24iLCJtZXRhIiwiZGVwcmVjYXRlZCIsImRvY3MiLCJ1cmwiLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiYUFBQSxxQzs7QUFFQSxNQUFNQSxRQUFRQyxRQUFRLFNBQVIsQ0FBZDs7QUFFQSxNQUFNQyxVQUFVQyxPQUFPQyxNQUFQLENBQWMsRUFBZCxFQUFrQkosTUFBTUssSUFBeEIsRUFBOEI7QUFDNUNDLGNBQVksSUFEZ0M7QUFFNUNDLFFBQU07QUFDSkMsU0FBSyx1QkFBUSxlQUFSLEVBQXlCLDBDQUF6QixDQURELEVBRnNDLEVBQTlCLENBQWhCOzs7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UNDLFFBQU07QUFDSkMsU0FBSywwQkFBUSxlQUFSLEVBQXlCLDBDQUF6QixDQURELEVBRnNDLEVBQTlCLENBQWhCOzs7O0FBT0FDLE9BQU9DLE9BQVAsR0FBaUJQLE9BQU9DLE1BQVAsQ0FBYyxFQUFkLEVBQWtCSixLQUFsQixFQUF5QixFQUFFSyxNQUFNSCxPQUFSLEVBQXpCLENBQWpCIiwiZmlsZSI6ImltcG9ydHMtZmlyc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgZG9jc1VybCBmcm9tICcuLi9kb2NzVXJsJztcblxuY29uc3QgZmlyc3QgPSByZXF1aXJlKCcuL2ZpcnN0Jyk7XG5cbmNvbnN0IG5ld01ldGEgPSBPYmplY3QuYXNzaWduKHt9LCBmaXJzdC5tZXRhLCB7XG4gIGRlcHJlY2F0ZWQ6IHRydWUsXG4gIGRvY3M6IHtcbiAgICB1cmw6IGRvY3NVcmwoJ2ltcG9ydHMtZmlyc3QnLCAnN2IyNWMxY2I5NWVlMThhY2MxNTMxMDAyZmQzNDNlMWU2MDMxZjllZCcpLFxuICB9LFxufSk7XG5cbm1vZHVsZS5leHBvcnRzID0gT2JqZWN0LmFzc2lnbih7fSwgZmlyc3QsIHsgbWV0YTogbmV3TWV0YSB9KTtcbiJdfQ==
|
||||
52
node_modules/eslint-plugin-import/lib/rules/max-dependencies.js
generated
vendored
52
node_modules/eslint-plugin-import/lib/rules/max-dependencies.js
generated
vendored
@@ -1,16 +1,15 @@
|
||||
'use strict';var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
const DEFAULT_MAX = 10;
|
||||
var DEFAULT_MAX = 10;
|
||||
var DEFAULT_IGNORE_TYPE_IMPORTS = false;
|
||||
var TYPE_IMPORT = 'type';
|
||||
|
||||
const countDependencies = (dependencies, lastNode, context) => {var _ref =
|
||||
context.options[0] || { max: DEFAULT_MAX };const max = _ref.max;
|
||||
var countDependencies = function countDependencies(dependencies, lastNode, context) {var _ref =
|
||||
context.options[0] || { max: DEFAULT_MAX },max = _ref.max;
|
||||
|
||||
if (dependencies.size > max) {
|
||||
context.report(
|
||||
lastNode,
|
||||
`Maximum number of dependencies (${max}) exceeded.`);
|
||||
|
||||
context.report(lastNode, 'Maximum number of dependencies (' + String(max) + ') exceeded.');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -18,31 +17,38 @@ module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('max-dependencies') },
|
||||
url: (0, _docsUrl2['default'])('max-dependencies') },
|
||||
|
||||
|
||||
schema: [
|
||||
{
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'max': { 'type': 'number' } },
|
||||
'max': { 'type': 'number' },
|
||||
'ignoreTypeImports': { 'type': 'boolean' } },
|
||||
|
||||
'additionalProperties': false }] },
|
||||
|
||||
|
||||
|
||||
|
||||
create: context => {
|
||||
const dependencies = new Set(); // keep track of dependencies
|
||||
let lastNode; // keep track of the last node to report on
|
||||
create: function () {function create(context) {var _ref2 =
|
||||
|
||||
return Object.assign({
|
||||
'Program:exit': function () {
|
||||
countDependencies(dependencies, lastNode, context);
|
||||
} },
|
||||
(0, _moduleVisitor2.default)(source => {
|
||||
dependencies.add(source.value);
|
||||
lastNode = source;
|
||||
}, { commonjs: true }));
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9tYXgtZGVwZW5kZW5jaWVzLmpzIl0sIm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BlOiAnc3VnZ2VzdGlvbicsXG4gICAgZG9jczoge1xuICAgICAgdXJsOiBkb2NzVXJsKCdtYXgtZGVwZW5kZW5jaWVzJyksXG4gICAgfSxcblxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICAndHlwZSc6ICdvYmplY3QnLFxuICAgICAgICAncHJvcGVydGllcyc6IHtcbiAgICAgICAgICAnbWF4JzogeyAndHlwZSc6ICdudW1iZXInIH0sXG4gICAgICAgIH0sXG4gICAgICAgICdhZGRpdGlvbmFsUHJvcGVydGllcyc6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuXG4gIGNyZWF0ZTogY29udGV4dCA9PiB7XG4gICAgY29uc3QgZGVwZW5kZW5jaWVzID0gbmV3IFNldCgpOyAvLyBrZWVwIHRyYWNrIG9mIGRlcGVuZGVuY2llc1xuICAgIGxldCBsYXN0Tm9kZTsgLy8ga2VlcCB0cmFjayBvZiB0aGUgbGFzdCBub2RlIHRvIHJlcG9ydCBvblxuXG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oe1xuICAgICAgJ1Byb2dyYW06ZXhpdCc6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgY291bnREZXBlbmRlbmNpZXMoZGVwZW5kZW5jaWVzLCBsYXN0Tm9kZSwgY29udGV4dCk7XG4gICAgICB9LFxuICAgIH0sIG1vZHVsZVZpc2l0b3IoKHNvdXJjZSkgPT4ge1xuICAgICAgZGVwZW5kZW5jaWVzLmFkZChzb3VyY2UudmFsdWUpO1xuICAgICAgbGFzdE5vZGUgPSBzb3VyY2U7XG4gICAgfSwgeyBjb21tb25qczogdHJ1ZSB9KSk7XG4gIH0sXG59O1xuIl19
|
||||
|
||||
context.options[0] || {},_ref2$ignoreTypeImpor = _ref2.ignoreTypeImports,ignoreTypeImports = _ref2$ignoreTypeImpor === undefined ? DEFAULT_IGNORE_TYPE_IMPORTS : _ref2$ignoreTypeImpor;
|
||||
|
||||
var dependencies = new Set(); // keep track of dependencies
|
||||
var lastNode = void 0; // keep track of the last node to report on
|
||||
|
||||
return Object.assign({
|
||||
'Program:exit': function () {function ProgramExit() {
|
||||
countDependencies(dependencies, lastNode, context);
|
||||
}return ProgramExit;}() },
|
||||
(0, _moduleVisitor2['default'])(function (source, _ref3) {var importKind = _ref3.importKind;
|
||||
if (importKind !== TYPE_IMPORT || !ignoreTypeImports) {
|
||||
dependencies.add(source.value);
|
||||
}
|
||||
lastNode = source;
|
||||
}, { commonjs: true }));
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9tYXgtZGVwZW5kZW5jaWVzLmpzIl0sIm5hbWVzIjpbIkRFRkFVTFRfTUFYIiwiREVGQVVMVF9JR05PUkVfVFlQRV9JTVBPUlRTIiwiVFlQRV9JTVBPUlQiLCJjb3VudERlcGVuZGVuY2llcyIsImRlcGVuZGVuY2llcyIsImxhc3ROb2RlIiwiY29udGV4dCIsIm9wdGlvbnMiLCJtYXgiLCJzaXplIiwicmVwb3J0IiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImlnbm9yZVR5cGVJbXBvcnRzIiwiU2V0IiwiT2JqZWN0IiwiYXNzaWduIiwic291cmNlIiwiaW1wb3J0S2luZCIsImFkZCIsInZhbHVlIiwiY29tbW9uanMiXSwibWFwcGluZ3MiOiJhQUFBLGtFO0FBQ0EscUM7O0FBRUEsSUFBTUEsY0FBYyxFQUFwQjtBQUNBLElBQU1DLDhCQUE4QixLQUFwQztBQUNBLElBQU1DLGNBQWMsTUFBcEI7O0FBRUEsSUFBTUMsb0JBQW9CLFNBQXBCQSxpQkFBb0IsQ0FBQ0MsWUFBRCxFQUFlQyxRQUFmLEVBQXlCQyxPQUF6QixFQUFxQztBQUM3Q0EsVUFBUUMsT0FBUixDQ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zOiB0cnVlIH0pKTtcbiAgfSxcbn07XG4iXX0=
|
||||
168
node_modules/eslint-plugin-import/lib/rules/named.js
generated
vendored
168
node_modules/eslint-plugin-import/lib/rules/named.js
generated
vendored
File diff suppressed because one or more lines are too long
342
node_modules/eslint-plugin-import/lib/rules/namespace.js
generated
vendored
342
node_modules/eslint-plugin-import/lib/rules/namespace.js
generated
vendored
File diff suppressed because one or more lines are too long
210
node_modules/eslint-plugin-import/lib/rules/newline-after-import.js
generated
vendored
210
node_modules/eslint-plugin-import/lib/rules/newline-after-import.js
generated
vendored
File diff suppressed because one or more lines are too long
22
node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js
generated
vendored
22
node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js
generated
vendored
@@ -1,24 +1,24 @@
|
||||
'use strict';var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
|
||||
var _importType = require('../core/importType');
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-absolute-path') },
|
||||
url: (0, _docsUrl2['default'])('no-absolute-path') },
|
||||
|
||||
schema: [(0, _moduleVisitor.makeOptionsSchema)()] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
function reportIfAbsolute(source) {
|
||||
if (typeof source.value === 'string' && (0, _importType.isAbsolute)(source.value)) {
|
||||
context.report(source, 'Do not import modules using an absolute path');
|
||||
create: function () {function create(context) {
|
||||
function reportIfAbsolute(source) {
|
||||
if (typeof source.value === 'string' && (0, _importType.isAbsolute)(source.value)) {
|
||||
context.report(source, 'Do not import modules using an absolute path');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const options = Object.assign({ esmodule: true, commonjs: true }, context.options[0]);
|
||||
return (0, _moduleVisitor2.default)(reportIfAbsolute, options);
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hYnNvbHV0ZS1wYXRoLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwicmVwb3J0SWZBYnNvbHV0ZSIsInNvdXJjZSIsInZhbHVlIiwicmVwb3J0Iiwib3B0aW9ucyIsIk9iamVjdCIsImFzc2lnbiIsImVzbW9kdWxlIiwiY29tbW9uanMiXSwibWFwcGluZ3MiOiJhQUFBLGtFO0FBQ0E7QUFDQSxxQzs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU0sWUFERjtBQUVKQyxVQUFNO0FBQ0pDLFdBQUssdUJBQVEsa0JBQVIsQ0FERCxFQUZGOztBQUtKQyxZQUFRLENBQUUsdUNBQUYsQ0FMSixFQURTOzs7QUFTZkMsVUFBUSxVQUFVQyxPQUFWLEVBQW1CO0FBQ3pCLGFBQVNDLGdCQUFULENBQTBCQyxNQUExQixFQUFrQztBQUNoQyxVQUFJLE9BQU9BLE9BQU9DLEtBQWQsS0FBd0IsUUFBeEIsSUFBb0MsNEJBQVdELE9BQU9DLEtBQWxCLENBQXhDLEVBQWtFO0FBQ2hFSCxnQkFBUUksTUFBUixDQUFlRixNQUFmLEVBQXVCLDhDQUF2QjtBQUNEO0FBQ0Y7O0FBRUQsVUFBTUcsVUFBVUMsT0FBT0MsTUFBUCxDQUFjLEVBQUVDLFVBQVUsSUFBWixFQUFrQkMsVUFBVS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lIH0sIGNvbnRleHQub3B0aW9uc1swXSk7XG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IocmVwb3J0SWZBYnNvbHV0ZSwgb3B0aW9ucyk7XG4gIH0sXG59O1xuIl19
|
||||
var options = Object.assign({ esmodule: true, commonjs: true }, context.options[0]);
|
||||
return (0, _moduleVisitor2['default'])(reportIfAbsolute, options);
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hYnNvbHV0ZS1wYXRoLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwicmVwb3J0SWZBYnNvbHV0ZSIsInNvdXJjZSIsInZhbHVlIiwicmVwb3J0Iiwib3B0aW9ucyIsIk9iamVjdCIsImFzc2lnbiIsImVzbW9kdWxlIiwiY29tbW9uanMiXSwibWFwcGluZ3MiOiJhQUFBLGtFO0FBQ0E7QUFDQSxxQzs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU0sWUFERjtBQUVKQyxVQUFNO0FBQ0pDLFdBQUssMEJBQVEsa0JBQVIsQ0FERCxFQUZGOztBQUtKQyxZQUFRLENBQUUsdUNBQUYsQ0FMSixFQURTOzs7QUFTZkMsdUJBQVEsZ0JBQVVDLE9BQVYsRUFBbUI7QUFDekIsZUFBU0MsZ0JBQVQsQ0FBMEJDLE1BQTFCLEVBQWtDO0FBQ2hDLFlBQUksT0FBT0EsT0FBT0MsS0FBZCxLQUF3QixRQUF4QixJQUFvQyw0QkFBV0QsT0FBT0MsS0FBbEIsQ0FBeEMsRUFBa0U7QUFDaEVILGtCQUFRSSxNQUFSLENBQWVGLE1BQWYsRUFBdUIsOENBQXZCO0FBQ0Q7Q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AgIH1cbiAgICB9XG5cbiAgICBjb25zdCBvcHRpb25zID0gT2JqZWN0LmFzc2lnbih7IGVzbW9kdWxlOiB0cnVlLCBjb21tb25qczogdHJ1ZSB9LCBjb250ZXh0Lm9wdGlvbnNbMF0pO1xuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKHJlcG9ydElmQWJzb2x1dGUsIG9wdGlvbnMpO1xuICB9LFxufTtcbiJdfQ==
|
||||
42
node_modules/eslint-plugin-import/lib/rules/no-amd.js
generated
vendored
42
node_modules/eslint-plugin-import/lib/rules/no-amd.js
generated
vendored
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
@@ -13,34 +13,34 @@ module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-amd') },
|
||||
url: (0, _docsUrl2['default'])('no-amd') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
return {
|
||||
'CallExpression': function (node) {
|
||||
if (context.getScope().type !== 'module') return;
|
||||
create: function () {function create(context) {
|
||||
return {
|
||||
'CallExpression': function () {function CallExpression(node) {
|
||||
if (context.getScope().type !== 'module') return;
|
||||
|
||||
if (node.callee.type !== 'Identifier') return;
|
||||
if (node.callee.name !== 'require' &&
|
||||
node.callee.name !== 'define') return;
|
||||
if (node.callee.type !== 'Identifier') return;
|
||||
if (node.callee.name !== 'require' &&
|
||||
node.callee.name !== 'define') return;
|
||||
|
||||
// todo: capture define((require, module, exports) => {}) form?
|
||||
if (node.arguments.length !== 2) return;
|
||||
// todo: capture define((require, module, exports) => {}) form?
|
||||
if (node.arguments.length !== 2) return;
|
||||
|
||||
const modules = node.arguments[0];
|
||||
if (modules.type !== 'ArrayExpression') return;
|
||||
var modules = node.arguments[0];
|
||||
if (modules.type !== 'ArrayExpression') return;
|
||||
|
||||
// todo: check second arg type? (identifier or callback)
|
||||
// todo: check second arg type? (identifier or callback)
|
||||
|
||||
context.report(node, `Expected imports instead of AMD ${node.callee.name}().`);
|
||||
} };
|
||||
context.report(node, 'Expected imports instead of AMD ' + String(node.callee.name) + '().');
|
||||
}return CallExpression;}() };
|
||||
|
||||
|
||||
} }; /**
|
||||
* @fileoverview Rule to prefer imports to AMD
|
||||
* @author Jamund Ferguson
|
||||
*/
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hbWQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJub2RlIiwiZ2V0U2NvcGUiLCJjYWxsZWUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwibW9kdWxlcyIsInJlcG9ydCJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFLQSxxQzs7QUFFQTtBQUNBO0FBQ0E7O0FBRUFBLE9BQU9DLE9BQVAsR0FBaUI7QUFDZkMsUUFBTTtBQUNKQyxVQUFNLFlBREY7QUFFSkMsVUFBTTtBQUNKQyxXQUFLLHVCQUFRLFFBQVIsQ0FERCxFQUZGOztBQUtKQyxZQUFRLEVBTEosRUFEUzs7O0FBU2ZDLFVBQVEsVUFBVUMsT0FBVixFQUFtQjtBQUN6QixXQUFPO0FBQ0wsd0JBQWtCLFVBQVVDLElBQVYsRUFBZ0I7QUFDaEMsWUFBSUQsUUFBUUUsUUFBUixHQUFtQlAsSUFB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G59O1xuIl19
|
||||
}return create;}() }; /**
|
||||
* @fileoverview Rule to prefer imports to AMD
|
||||
* @author Jamund Ferguson
|
||||
*/
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1hbWQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJub2RlIiwiZ2V0U2NvcGUiLCJjYWxsZWUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwibW9kdWxlcyIsInJlcG9ydCJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFLQSxxQzs7QUFFQTtBQUNBO0FBQ0E7O0FBRUFBLE9BQU9DLE9BQVAsR0FBaUI7QUFDZkMsUUFBTTtBQUNKQyxVQUFNLFlBREY7QUFFSkMsVUFBTTtBQUNKQyxXQUFLLDBCQUFRLFFBQVIsQ0FERCxFQUZGOztBQUtKQyxZQUFRLEVBTEosRUFEUzs7O0FBU2ZDLHVCQUFRLGdCQUFVQyxPQUFWLEVBQW1CO0FBQ3pCLGFBQU87QUFDTCx1Q0FBa0Isd0JBQVVDLElBQVYsRUFBZ0I7QUFDaEMsZ0JBQUlELFFBQVFFLFFBQVIsR0FBbUJQLElBQW5CLEtBQTRCLFFBQWhDLEVBQTBDOztBQUUxQyxnQkFBSU0sS0FBS0UsTUFBTCxDQUFZUixJQUFaLEtBQXFCLFlBQXpCLEVBQXVDO0FBQ3ZDLGdCQUFJTSxLQUFLRSxNQUFMLENBQVlDLElBQVosS0FBcUIsU0FBckI7QUFDQUgsaUJBQUtFLE1BQUwsQ0FBWUMsSUFBWixLQUFxQixRQUR6QixFQUNtQzs7QUFFbkM7QUFDQSxnQkFBSUgsS0FBS0ksU0FBTCxDQUFlQyxNQUFmLEtBQTBCLENBQTlCL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IChjb250ZXh0LmdldFNjb3BlKCkudHlwZSAhPT0gJ21vZHVsZScpIHJldHVybjtcblxuICAgICAgICBpZiAobm9kZS5jYWxsZWUudHlwZSAhPT0gJ0lkZW50aWZpZXInKSByZXR1cm47XG4gICAgICAgIGlmIChub2RlLmNhbGxlZS5uYW1lICE9PSAncmVxdWlyZScgJiZcbiAgICAgICAgICAgIG5vZGUuY2FsbGVlLm5hbWUgIT09ICdkZWZpbmUnKSByZXR1cm47XG5cbiAgICAgICAgLy8gdG9kbzogY2FwdHVyZSBkZWZpbmUoKHJlcXVpcmUsIG1vZHVsZSwgZXhwb3J0cykgPT4ge30pIGZvcm0/XG4gICAgICAgIGlmIChub2RlLmFyZ3VtZW50cy5sZW5ndGggIT09IDIpIHJldHVybjtcblxuICAgICAgICBjb25zdCBtb2R1bGVzID0gbm9kZS5hcmd1bWVudHNbMF07XG4gICAgICAgIGlmIChtb2R1bGVzLnR5cGUgIT09ICdBcnJheUV4cHJlc3Npb24nKSByZXR1cm47XG5cbiAgICAgICAgLy8gdG9kbzogY2hlY2sgc2Vjb25kIGFyZyB0eXBlPyAoaWRlbnRpZmllciBvciBjYWxsYmFjaylcblxuICAgICAgICBjb250ZXh0LnJlcG9ydChub2RlLCBgRXhwZWN0ZWQgaW1wb3J0cyBpbnN0ZWFkIG9mIEFNRCAke25vZGUuY2FsbGVlLm5hbWV9KCkuYCk7XG4gICAgICB9LFxuICAgIH07XG5cbiAgfSxcbn07XG4iXX0=
|
||||
56
node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js
generated
vendored
56
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
84
node_modules/eslint-plugin-import/lib/rules/no-commonjs.js
generated
vendored
84
node_modules/eslint-plugin-import/lib/rules/no-commonjs.js
generated
vendored
File diff suppressed because one or more lines are too long
152
node_modules/eslint-plugin-import/lib/rules/no-cycle.js
generated
vendored
152
node_modules/eslint-plugin-import/lib/rules/no-cycle.js
generated
vendored
File diff suppressed because one or more lines are too long
56
node_modules/eslint-plugin-import/lib/rules/no-default-export.js
generated
vendored
56
node_modules/eslint-plugin-import/lib/rules/no-default-export.js
generated
vendored
@@ -1,41 +1,41 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-default-export') },
|
||||
url: (0, _docsUrl2['default'])('no-default-export') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create(context) {
|
||||
// ignore non-modules
|
||||
if (context.parserOptions.sourceType !== 'module') {
|
||||
return {};
|
||||
}
|
||||
create: function () {function create(context) {
|
||||
// ignore non-modules
|
||||
if (context.parserOptions.sourceType !== 'module') {
|
||||
return {};
|
||||
}
|
||||
|
||||
const preferNamed = 'Prefer named exports.';
|
||||
const noAliasDefault = (_ref) => {let local = _ref.local;return (
|
||||
`Do not alias \`${local.name}\` as \`default\`. Just export ` +
|
||||
`\`${local.name}\` itself instead.`);};
|
||||
var preferNamed = 'Prefer named exports.';
|
||||
var noAliasDefault = function () {function noAliasDefault(_ref) {var local = _ref.local;return (
|
||||
'Do not alias `' + String(local.name) + '` as `default`. Just export ' + ('`' + String(
|
||||
local.name) + '` itself instead.'));}return noAliasDefault;}();
|
||||
|
||||
return {
|
||||
ExportDefaultDeclaration(node) {
|
||||
context.report({ node, message: preferNamed });
|
||||
},
|
||||
return {
|
||||
ExportDefaultDeclaration: function () {function ExportDefaultDeclaration(node) {
|
||||
context.report({ node: node, message: preferNamed });
|
||||
}return ExportDefaultDeclaration;}(),
|
||||
|
||||
ExportNamedDeclaration(node) {
|
||||
node.specifiers.forEach(specifier => {
|
||||
if (specifier.type === 'ExportDefaultSpecifier' &&
|
||||
specifier.exported.name === 'default') {
|
||||
context.report({ node, message: preferNamed });
|
||||
} else if (specifier.type === 'ExportSpecifier' &&
|
||||
specifier.exported.name === 'default') {
|
||||
context.report({ node, message: noAliasDefault(specifier) });
|
||||
}
|
||||
});
|
||||
} };
|
||||
ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) {
|
||||
node.specifiers.forEach(function (specifier) {
|
||||
if (specifier.type === 'ExportDefaultSpecifier' &&
|
||||
specifier.exported.name === 'default') {
|
||||
context.report({ node: node, message: preferNamed });
|
||||
} else if (specifier.type === 'ExportSpecifier' &&
|
||||
specifier.exported.name === 'default') {
|
||||
context.report({ node: node, message: noAliasDefault(specifier) });
|
||||
}
|
||||
});
|
||||
}return ExportNamedDeclaration;}() };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kZWZhdWx0LWV4cG9ydC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsInBhcnNlck9wdGlvbnMiLCJzb3VyY2VUeXBlIiwicHJlZmVyTmFtZWQiLCJub0FsaWFzRGVmYXVsdCIsImxvY2FsIiwibmFtZSIsIkV4cG9ydERlZmF1bHREZWNsYXJhdGlvbiIsIm5vZGUiLCJyZXBvcnQiLCJtZXNzYWdlIiwiRXhwb3J0TmFtZWREZWNsYXJhdGlvbiIsInNwZWNpZmllcnMiLCJmb3JFYWNoIiwic3BlY2lmaWVyIiwiZXhwb3J0ZWQiXSwibWFwcGluZ3MiOiJhQUFBLHFDOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDS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WZpZXJzLmZvckVhY2goc3BlY2lmaWVyID0+IHtcbiAgICAgICAgICBpZiAoc3BlY2lmaWVyLnR5cGUgPT09ICdFeHBvcnREZWZhdWx0U3BlY2lmaWVyJyAmJlxuICAgICAgICAgICAgICBzcGVjaWZpZXIuZXhwb3J0ZWQubmFtZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IHByZWZlck5hbWVkIH0pO1xuICAgICAgICAgIH0gZWxzZSBpZiAoc3BlY2lmaWVyLnR5cGUgPT09ICdFeHBvcnRTcGVjaWZpZXInICYmXG4gICAgICAgICAgICAgIHNwZWNpZmllci5leHBvcnRlZC5uYW1lID09PSAnZGVmYXVsdCcpIHtcbiAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHsgbm9kZSwgbWVzc2FnZTogbm9BbGlhc0RlZmF1bHQoc3BlY2lmaWVyKSB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ==
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1kZWZhdWx0LWV4cG9ydC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsInBhcnNlck9wdGlvbnMiLCJzb3VyY2VUeXBlIiwicHJlZmVyTmFtZWQiLCJub0FsaWFzRGVmYXVsdCIsImxvY2FsIiwibmFtZSIsIkV4cG9ydERlZmF1bHREZWNsYXJhdGlvbiIsIm5vZGUiLCJyZXBvcnQiLCJtZXNzYWdlIiwiRXhwb3J0TmFtZWREZWNsYXJhdGlvbiIsInNwZWNpZmllcnMiLCJmb3JFYWNoI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b250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IHByZWZlck5hbWVkIH0pO1xuICAgICAgfSxcblxuICAgICAgRXhwb3J0TmFtZWREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIG5vZGUuc3BlY2lmaWVycy5mb3JFYWNoKHNwZWNpZmllciA9PiB7XG4gICAgICAgICAgaWYgKHNwZWNpZmllci50eXBlID09PSAnRXhwb3J0RGVmYXVsdFNwZWNpZmllcicgJiZcbiAgICAgICAgICAgICAgc3BlY2lmaWVyLmV4cG9ydGVkLm5hbWUgPT09ICdkZWZhdWx0Jykge1xuICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoeyBub2RlLCBtZXNzYWdlOiBwcmVmZXJOYW1lZCB9KTtcbiAgICAgICAgICB9IGVsc2UgaWYgKHNwZWNpZmllci50eXBlID09PSAnRXhwb3J0U3BlY2lmaWVyJyAmJlxuICAgICAgICAgICAgICBzcGVjaWZpZXIuZXhwb3J0ZWQubmFtZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2U6IG5vQWxpYXNEZWZhdWx0KHNwZWNpZmllcikgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=
|
||||
208
node_modules/eslint-plugin-import/lib/rules/no-deprecated.js
generated
vendored
208
node_modules/eslint-plugin-import/lib/rules/no-deprecated.js
generated
vendored
File diff suppressed because one or more lines are too long
237
node_modules/eslint-plugin-import/lib/rules/no-duplicates.js
generated
vendored
237
node_modules/eslint-plugin-import/lib/rules/no-duplicates.js
generated
vendored
File diff suppressed because one or more lines are too long
55
node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js
generated
vendored
55
node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js
generated
vendored
@@ -1,4 +1,4 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
function isRequire(node) {
|
||||
return node &&
|
||||
@@ -8,6 +8,12 @@ function isRequire(node) {
|
||||
node.arguments.length >= 1;
|
||||
}
|
||||
|
||||
function isDynamicImport(node) {
|
||||
return node &&
|
||||
node.callee &&
|
||||
node.callee.type === 'Import';
|
||||
}
|
||||
|
||||
function isStaticValue(arg) {
|
||||
return arg.type === 'Literal' ||
|
||||
arg.type === 'TemplateLiteral' && arg.expressions.length === 0;
|
||||
@@ -17,21 +23,42 @@ module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-dynamic-require') },
|
||||
url: (0, _docsUrl2['default'])('no-dynamic-require') },
|
||||
|
||||
schema: [] },
|
||||
schema: [
|
||||
{
|
||||
type: 'object',
|
||||
properties: {
|
||||
esmodule: {
|
||||
type: 'boolean' } },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
return {
|
||||
CallExpression(node) {
|
||||
if (isRequire(node) && !isStaticValue(node.arguments[0])) {
|
||||
context.report({
|
||||
node,
|
||||
message: 'Calls to require() should use string literals' });
|
||||
additionalProperties: false }] },
|
||||
|
||||
}
|
||||
} };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1keW5hbWljLXJlcXVpcmUuanMiXSwibmFtZXMiOlsiaXNSZXF1aXJlIiwibm9kZSIsImNhbGxlZSIsInR5cGUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwiaXNTdGF0aWNWYWx1ZSIsImFyZyIsImV4cHJlc3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kgc2hvdWxkIHVzZSBzdHJpbmcgbGl0ZXJhbHMnLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19
|
||||
|
||||
|
||||
create: function () {function create(context) {
|
||||
var options = context.options[0] || {};
|
||||
|
||||
return {
|
||||
CallExpression: function () {function CallExpression(node) {
|
||||
if (!node.arguments[0] || isStaticValue(node.arguments[0])) {
|
||||
return;
|
||||
}
|
||||
if (isRequire(node)) {
|
||||
return context.report({
|
||||
node: node,
|
||||
message: 'Calls to require() should use string literals' });
|
||||
|
||||
}
|
||||
if (options.esmodule && isDynamicImport(node)) {
|
||||
return context.report({
|
||||
node: node,
|
||||
message: 'Calls to import() should use string literals' });
|
||||
|
||||
}
|
||||
}return CallExpression;}() };
|
||||
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1keW5hbWljLXJlcXVpcmUuanMiXSwibmFtZXMiOlsiaXNSZXF1aXJlIiwibm9kZSIsImNhbGxlZSIsInR5cGUiLCJuYW1lIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwiaXNEeW5hbWljSW1wb3J0IiwiaXNTdGF0aWNWYWx1ZSIsImFyZyIsImV4cHJlc3Npb25zIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwicHJvcGVydGllcyIsImVzbW9kdWxlIiwiYWRkaXRpb25hbFByb3BlcnRpZXMiLCJjcmVhdGUiLCJjb250ZXh0Iiwib3B0aW9ucyIsIkNhbGxFeHByZXNzaW9uIiwicmVwb3J0IiwibWVzc2FnZSJdLCJtYXBwaW5ncyI6ImFBQUEscUM7O0FBRUEsU0FBU0EsU0FBVCxDQUFtQkMsSUFBbkIsRUFBeUI7QUFDdkIsU0FBT0E7QUFDTEEsT0FBS0MsTUFEQTtB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T09ICdUZW1wbGF0ZUxpdGVyYWwnICYmIGFyZy5leHByZXNzaW9ucy5sZW5ndGggPT09IDApO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgbWV0YToge1xuICAgIHR5cGU6ICdzdWdnZXN0aW9uJyxcbiAgICBkb2NzOiB7XG4gICAgICB1cmw6IGRvY3NVcmwoJ25vLWR5bmFtaWMtcmVxdWlyZScpLFxuICAgIH0sXG4gICAgc2NoZW1hOiBbXG4gICAgICB7XG4gICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgZXNtb2R1bGU6IHtcbiAgICAgICAgICAgIHR5cGU6ICdib29sZWFuJyxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG5cbiAgY3JlYXRlOiBmdW5jdGlvbiAoY29udGV4dCkge1xuICAgIGNvbnN0IG9wdGlvbnMgPSBjb250ZXh0Lm9wdGlvbnNbMF0gfHwge307XG5cbiAgICByZXR1cm4ge1xuICAgICAgQ2FsbEV4cHJlc3Npb24obm9kZSkge1xuICAgICAgICBpZiAoIW5vZGUuYXJndW1lbnRzWzBdIHx8IGlzU3RhdGljVmFsdWUobm9kZS5hcmd1bWVudHNbMF0pKSB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpc1JlcXVpcmUobm9kZSkpIHtcbiAgICAgICAgICByZXR1cm4gY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6ICdDYWxscyB0byByZXF1aXJlKCkgc2hvdWxkIHVzZSBzdHJpbmcgbGl0ZXJhbHMnLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGlmIChvcHRpb25zLmVzbW9kdWxlICYmIGlzRHluYW1pY0ltcG9ydChub2RlKSkge1xuICAgICAgICAgIHJldHVybiBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgbWVzc2FnZTogJ0NhbGxzIHRvIGltcG9ydCgpIHNob3VsZCB1c2Ugc3RyaW5nIGxpdGVyYWxzJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuICB9LFxufTtcbiJdfQ==
|
||||
176
node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js
generated
vendored
176
node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js
generated
vendored
File diff suppressed because one or more lines are too long
70
node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js
generated
vendored
70
node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js
generated
vendored
File diff suppressed because one or more lines are too long
186
node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js
generated
vendored
186
node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js
generated
vendored
File diff suppressed because one or more lines are too long
74
node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js
generated
vendored
74
node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js
generated
vendored
@@ -1,57 +1,57 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-mutable-exports') },
|
||||
url: (0, _docsUrl2['default'])('no-mutable-exports') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
function checkDeclaration(node) {const
|
||||
kind = node.kind;
|
||||
if (kind === 'var' || kind === 'let') {
|
||||
context.report(node, `Exporting mutable '${kind}' binding, use 'const' instead.`);
|
||||
create: function () {function create(context) {
|
||||
function checkDeclaration(node) {var
|
||||
kind = node.kind;
|
||||
if (kind === 'var' || kind === 'let') {
|
||||
context.report(node, 'Exporting mutable \'' + String(kind) + '\' binding, use \'const\' instead.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkDeclarationsInScope(_ref, name) {let variables = _ref.variables;
|
||||
for (const variable of variables) {
|
||||
if (variable.name === name) {
|
||||
for (const def of variable.defs) {
|
||||
if (def.type === 'Variable' && def.parent) {
|
||||
checkDeclaration(def.parent);
|
||||
function checkDeclarationsInScope(_ref, name) {var variables = _ref.variables;var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try {
|
||||
for (var _iterator = variables[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var variable = _step.value;
|
||||
if (variable.name === name) {var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try {
|
||||
for (var _iterator2 = variable.defs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var def = _step2.value;
|
||||
if (def.type === 'Variable' && def.parent) {
|
||||
checkDeclaration(def.parent);
|
||||
}
|
||||
}} catch (err) {_didIteratorError2 = true;_iteratorError2 = err;} finally {try {if (!_iteratorNormalCompletion2 && _iterator2['return']) {_iterator2['return']();}} finally {if (_didIteratorError2) {throw _iteratorError2;}}}
|
||||
}
|
||||
}
|
||||
}} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator['return']) {_iterator['return']();}} finally {if (_didIteratorError) {throw _iteratorError;}}}
|
||||
}
|
||||
|
||||
function handleExportDefault(node) {
|
||||
var scope = context.getScope();
|
||||
|
||||
if (node.declaration.name) {
|
||||
checkDeclarationsInScope(scope, node.declaration.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleExportDefault(node) {
|
||||
const scope = context.getScope();
|
||||
function handleExportNamed(node) {
|
||||
var scope = context.getScope();
|
||||
|
||||
if (node.declaration.name) {
|
||||
checkDeclarationsInScope(scope, node.declaration.name);
|
||||
}
|
||||
}
|
||||
|
||||
function handleExportNamed(node) {
|
||||
const scope = context.getScope();
|
||||
|
||||
if (node.declaration) {
|
||||
checkDeclaration(node.declaration);
|
||||
} else if (!node.source) {
|
||||
for (const specifier of node.specifiers) {
|
||||
checkDeclarationsInScope(scope, specifier.local.name);
|
||||
if (node.declaration) {
|
||||
checkDeclaration(node.declaration);
|
||||
} else if (!node.source) {var _iteratorNormalCompletion3 = true;var _didIteratorError3 = false;var _iteratorError3 = undefined;try {
|
||||
for (var _iterator3 = node.specifiers[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {var specifier = _step3.value;
|
||||
checkDeclarationsInScope(scope, specifier.local.name);
|
||||
}} catch (err) {_didIteratorError3 = true;_iteratorError3 = err;} finally {try {if (!_iteratorNormalCompletion3 && _iterator3['return']) {_iterator3['return']();}} finally {if (_didIteratorError3) {throw _iteratorError3;}}}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
'ExportDefaultDeclaration': handleExportDefault,
|
||||
'ExportNamedDeclaration': handleExportNamed };
|
||||
return {
|
||||
'ExportDefaultDeclaration': handleExportDefault,
|
||||
'ExportNamedDeclaration': handleExportNamed };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1tdXRhYmxlLWV4cG9ydHMuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0Z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AgICBjaGVja0RlY2xhcmF0aW9uc0luU2NvcGUoc2NvcGUsIG5vZGUuZGVjbGFyYXRpb24ubmFtZSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gaGFuZGxlRXhwb3J0TmFtZWQobm9kZSkge1xuICAgICAgY29uc3Qgc2NvcGUgPSBjb250ZXh0LmdldFNjb3BlKCk7XG5cbiAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uKSAge1xuICAgICAgICBjaGVja0RlY2xhcmF0aW9uKG5vZGUuZGVjbGFyYXRpb24pO1xuICAgICAgfSBlbHNlIGlmICghbm9kZS5zb3VyY2UpIHtcbiAgICAgICAgZm9yIChjb25zdCBzcGVjaWZpZXIgb2Ygbm9kZS5zcGVjaWZpZXJzKSB7XG4gICAgICAgICAgY2hlY2tEZWNsYXJhdGlvbnNJblNjb3BlKHNjb3BlLCBzcGVjaWZpZXIubG9jYWwubmFtZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgJ0V4cG9ydERlZmF1bHREZWNsYXJhdGlvbic6IGhhbmRsZUV4cG9ydERlZmF1bHQsXG4gICAgICAnRXhwb3J0TmFtZWREZWNsYXJhdGlvbic6IGhhbmRsZUV4cG9ydE5hbWVkLFxuICAgIH07XG4gIH0sXG59O1xuIl19
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1tdXRhYmxlLWV4cG9ydHMuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJjaGVja0RlY2xhcmF0aW9uIiwibm9kZSIsImtpbmQiLCJyZXBvcnQiLCJjaGVja0RlY2xhcmF0aW9uc0luU2NvcGUiLCJuYW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ICAgZnVuY3Rpb24gaGFuZGxlRXhwb3J0TmFtZWQobm9kZSkge1xuICAgICAgY29uc3Qgc2NvcGUgPSBjb250ZXh0LmdldFNjb3BlKCk7XG5cbiAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uKSAge1xuICAgICAgICBjaGVja0RlY2xhcmF0aW9uKG5vZGUuZGVjbGFyYXRpb24pO1xuICAgICAgfSBlbHNlIGlmICghbm9kZS5zb3VyY2UpIHtcbiAgICAgICAgZm9yIChjb25zdCBzcGVjaWZpZXIgb2Ygbm9kZS5zcGVjaWZpZXJzKSB7XG4gICAgICAgICAgY2hlY2tEZWNsYXJhdGlvbnNJblNjb3BlKHNjb3BlLCBzcGVjaWZpZXIubG9jYWwubmFtZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgJ0V4cG9ydERlZmF1bHREZWNsYXJhdGlvbic6IGhhbmRsZUV4cG9ydERlZmF1bHQsXG4gICAgICAnRXhwb3J0TmFtZWREZWNsYXJhdGlvbic6IGhhbmRsZUV4cG9ydE5hbWVkLFxuICAgIH07XG4gIH0sXG59O1xuIl19
|
||||
160
node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js
generated
vendored
160
node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js
generated
vendored
File diff suppressed because one or more lines are too long
54
node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js
generated
vendored
54
node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js
generated
vendored
@@ -1,43 +1,43 @@
|
||||
'use strict';var _ExportMap = require('../ExportMap');var _ExportMap2 = _interopRequireDefault(_ExportMap);
|
||||
var _importDeclaration = require('../importDeclaration');var _importDeclaration2 = _interopRequireDefault(_importDeclaration);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-named-as-default') },
|
||||
url: (0, _docsUrl2['default'])('no-named-as-default') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
function checkDefault(nameKey, defaultSpecifier) {
|
||||
// #566: default is a valid specifier
|
||||
if (defaultSpecifier[nameKey].name === 'default') return;
|
||||
create: function () {function create(context) {
|
||||
function checkDefault(nameKey, defaultSpecifier) {
|
||||
// #566: default is a valid specifier
|
||||
if (defaultSpecifier[nameKey].name === 'default') return;
|
||||
|
||||
const declaration = (0, _importDeclaration2.default)(context);
|
||||
var declaration = (0, _importDeclaration2['default'])(context);
|
||||
|
||||
const imports = _ExportMap2.default.get(declaration.source.value, context);
|
||||
if (imports == null) return;
|
||||
var imports = _ExportMap2['default'].get(declaration.source.value, context);
|
||||
if (imports == null) return;
|
||||
|
||||
if (imports.errors.length) {
|
||||
imports.reportErrors(context, declaration);
|
||||
return;
|
||||
if (imports.errors.length) {
|
||||
imports.reportErrors(context, declaration);
|
||||
return;
|
||||
}
|
||||
|
||||
if (imports.has('default') &&
|
||||
imports.has(defaultSpecifier[nameKey].name)) {
|
||||
|
||||
context.report(defaultSpecifier,
|
||||
'Using exported name \'' + defaultSpecifier[nameKey].name +
|
||||
'\' as identifier for default export.');
|
||||
|
||||
}
|
||||
}
|
||||
return {
|
||||
'ImportDefaultSpecifier': checkDefault.bind(null, 'local'),
|
||||
'ExportDefaultSpecifier': checkDefault.bind(null, 'exported') };
|
||||
|
||||
if (imports.has('default') &&
|
||||
imports.has(defaultSpecifier[nameKey].name)) {
|
||||
|
||||
context.report(defaultSpecifier,
|
||||
'Using exported name \'' + defaultSpecifier[nameKey].name +
|
||||
'\' as identifier for default export.');
|
||||
|
||||
}
|
||||
}
|
||||
return {
|
||||
'ImportDefaultSpecifier': checkDefault.bind(null, 'local'),
|
||||
'ExportDefaultSpecifier': checkDefault.bind(null, 'exported') };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1hcy1kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0IiwiY2hlY2tEZWZhdWx0IiwibmFtZUtleSIsImRlZmF1bHRTcGVjaWZpZXIiLCJuYW1lIiwiZGVjbGFyYXRpb24iLCJpbXBvcnRzIiwiRXhwb3J0cyIsImdldCIsInNvdXJjZSIsInZhbHVlIiwiZXJyb3JzIiwibGVuZ3RoIiwicmVwb3J0RXJyb3JzIiwiaGFzIiwicmVwb3J0IiwiYmluZCJdLCJtYXBwaW5ncyI6ImFBQUEseUM7QUFDQSx5RDtBQUNBLHFDOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxTQURGO0FBRUpDLFVBQU07QUFDSkMsV0FBSyx1QkFBUSxxQkFBUixDQURELEVBRkY7O0FBS0pDLFlBQVEsRUFMSixFQURTOzs7QUFTZkMsVUFBUSxVQUFVQyxPQUFWLEVBQW1CO0FBQ3pCLGFBQVNDLFlBQVQsQ0FBc0JDLE9BQXRCLEVBQStCQyxnQkFBL0IsRUFBaUQ7QUFDL0M7QUFDQSxVQUFJQSxpQkFBaUJELE9BQWpCLEVBQTBCRSxJQUExQixLQUFtQyxTQUF2QyxFQUFrRDs7QUFFbEQsWUFBTUMsY0FBYyxpQ0FBa0JMLE9BQWxCLENBQXBCOztBQUVBLFlBQU1NLFVBQVVDLG9CQUFRQyxHQUFSLENBQVlILFlBQVlJLE1BQVosQ0FB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G5cbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHtcbiAgICAgICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJzogY2hlY2tEZWZhdWx0LmJpbmQobnVsbCwgJ2xvY2FsJyksXG4gICAgICAnRXhwb3J0RGVmYXVsdFNwZWNpZmllcic6IGNoZWNrRGVmYXVsdC5iaW5kKG51bGwsICdleHBvcnRlZCcpLFxuICAgIH07XG4gIH0sXG59O1xuIl19
|
||||
36
node_modules/eslint-plugin-import/lib/rules/no-named-default.js
generated
vendored
36
node_modules/eslint-plugin-import/lib/rules/no-named-default.js
generated
vendored
@@ -1,29 +1,29 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-named-default') },
|
||||
url: (0, _docsUrl2['default'])('no-named-default') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
return {
|
||||
'ImportDeclaration': function (node) {
|
||||
node.specifiers.forEach(function (im) {
|
||||
if (im.importKind === 'type' || im.importKind === 'typeof') {
|
||||
return;
|
||||
}
|
||||
create: function () {function create(context) {
|
||||
return {
|
||||
'ImportDeclaration': function () {function ImportDeclaration(node) {
|
||||
node.specifiers.forEach(function (im) {
|
||||
if (im.importKind === 'type' || im.importKind === 'typeof') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (im.type === 'ImportSpecifier' && im.imported.name === 'default') {
|
||||
context.report({
|
||||
node: im.local,
|
||||
message: `Use default import syntax to import '${im.local.name}'.` });
|
||||
}
|
||||
});
|
||||
} };
|
||||
if (im.type === 'ImportSpecifier' && im.imported.name === 'default') {
|
||||
context.report({
|
||||
node: im.local,
|
||||
message: 'Use default import syntax to import \'' + String(im.local.name) + '\'.' });
|
||||
}
|
||||
});
|
||||
}return ImportDeclaration;}() };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1kZWZhdWx0LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJjb250ZXh0Iiwibm9kZSIsInNwZWNpZmllcnMiLCJmb3JFYWNoIiwiaW0iLCJpbXBvcnRLaW5kIiwiaW1wb3J0ZWQiLCJuYW1lIiwicmVwb3J0IiwibG9jYWwiLCJtZXNzYWdlIl0sIm1hcHBpbmdzIjoiYUFBQSxxQzs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU0sWUFERjtBQUVKQyxVQUFNO0FBQ0pDLFdBQUssdUJBQVEsa0JBQVIsQ0FERCxFQUZGOztBQUtKQyxZQUFRLEVBTEosRUFEUzs7O0FBU2ZDLFVBQVEsVUFBVUMsT0FBVixFQUFtQjtBQUN6QixXQUFPO0FBQ0wsMkJBQXFCLFVBQVVDLElBQVYsRUFBZ0I7QUFDbkNBLGFBQUtDLFVBQUwsQ0FBZ0JDLE9BQWhCLENBQXdCLFVBQVVDLEVBQVYsRUFBYztBQUNwQyxjQUFJQSxHQUFHQyxVQUFILEtBQWtCLE1BQWxCLElBQTRCRCxHQUFHQyxVQUFILEtBQWtCLFFBQWxELEVBQTREO0FBQzFEO0FBQ0Q7O0FBRUQsY0FBSUQsR0FBR1QsSUFBSCxLQUFZLGlCQUFaLElBQWlDUyxHQUFHRSxRQUFILENBQVlDLElBQVosS0FBcUIsU0FBMUQs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F1bHQgaW1wb3J0IHN5bnRheCB0byBpbXBvcnQgJyR7aW0ubG9jYWwubmFtZX0nLmAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=
|
||||
46
node_modules/eslint-plugin-import/lib/rules/no-named-export.js
generated
vendored
46
node_modules/eslint-plugin-import/lib/rules/no-named-export.js
generated
vendored
@@ -1,35 +1,35 @@
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: { url: (0, _docsUrl2.default)('no-named-export') },
|
||||
docs: { url: (0, _docsUrl2['default'])('no-named-export') },
|
||||
schema: [] },
|
||||
|
||||
|
||||
create(context) {
|
||||
// ignore non-modules
|
||||
if (context.parserOptions.sourceType !== 'module') {
|
||||
return {};
|
||||
}
|
||||
create: function () {function create(context) {
|
||||
// ignore non-modules
|
||||
if (context.parserOptions.sourceType !== 'module') {
|
||||
return {};
|
||||
}
|
||||
|
||||
const message = 'Named exports are not allowed.';
|
||||
var message = 'Named exports are not allowed.';
|
||||
|
||||
return {
|
||||
ExportAllDeclaration(node) {
|
||||
context.report({ node, message });
|
||||
},
|
||||
return {
|
||||
ExportAllDeclaration: function () {function ExportAllDeclaration(node) {
|
||||
context.report({ node: node, message: message });
|
||||
}return ExportAllDeclaration;}(),
|
||||
|
||||
ExportNamedDeclaration(node) {
|
||||
if (node.specifiers.length === 0) {
|
||||
return context.report({ node, message });
|
||||
}
|
||||
ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) {
|
||||
if (node.specifiers.length === 0) {
|
||||
return context.report({ node: node, message: message });
|
||||
}
|
||||
|
||||
const someNamed = node.specifiers.some(specifier => specifier.exported.name !== 'default');
|
||||
if (someNamed) {
|
||||
context.report({ node, message });
|
||||
}
|
||||
} };
|
||||
var someNamed = node.specifiers.some(function (specifier) {return specifier.exported.name !== 'default';});
|
||||
if (someNamed) {
|
||||
context.report({ node: node, message: message });
|
||||
}
|
||||
}return ExportNamedDeclaration;}() };
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1leHBvcnQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJwYXJzZXJPcHRpb25zIiwic291cmNlVHlwZSIsIm1lc3NhZ2UiLCJFeHBvcnRBbGxEZWNsYXJhdGlvbiIsIm5vZGUiLCJyZXBvcnQiLCJFeHBvcnROYW1lZERlY2xhcmF0aW9uIiwic3BlY2lmaWVycyIsImxlbmd0aCIsInNvbWVOYW1lZCIsInNvbWUiLCJzcGVjaWZpZXIiLCJleHBvcnRlZCIsIm5hbWUiXSwibWFwcGluZ3MiOiJhQUFBLHFDOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxZQURGO0FBRUpDLFVBQU0sRUFBRUMsS0FBSyx1QkFBUSxpQkFBUixDQUFQLEVBRkY7QUFHSkMsWUFBUSxFQUhKLEVBRFM7OztBQU9mQyxTQUFPQyxPQUFQLEVBQWdCO0FBQ2Q7QUFDQSxRQUFJQSxRQUFRQyxhQUFSLENBQXNCQyxVQUF0QixLQUFxQyxRQUF6QyxFQUFtRDtBQUNqRCxhQUFPLEVBQVA7QUFDRDs7QUFFRCxVQUFNQyxVQUFVLGdDQUFoQjs7QUFFQSxXQU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c3NhZ2UgPSAnTmFtZWQgZXhwb3J0cyBhcmUgbm90IGFsbG93ZWQuJztcblxuICAgIHJldHVybiB7XG4gICAgICBFeHBvcnRBbGxEZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIGNvbnRleHQucmVwb3J0KHsgbm9kZSwgbWVzc2FnZSB9KTtcbiAgICAgIH0sXG5cbiAgICAgIEV4cG9ydE5hbWVkRGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICBpZiAobm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgIHJldHVybiBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2UgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBzb21lTmFtZWQgPSBub2RlLnNwZWNpZmllcnMuc29tZShzcGVjaWZpZXIgPT4gc3BlY2lmaWVyLmV4cG9ydGVkLm5hbWUgIT09ICdkZWZhdWx0Jyk7XG4gICAgICAgIGlmIChzb21lTmFtZWQpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7IG5vZGUsIG1lc3NhZ2UgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1uYW1lZC1leHBvcnQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJwYXJzZXJPcHRpb25zIiwic291cmNlVHlwZSIsIm1lc3NhZ2UiLCJFeHBvcnRBbGxEZWNsYXJhdGlvbiIsIm5vZGUiLCJyZXBvcnQiLCJFeHBvcnROYW1lZERlY2xhcmF0aW9uIiwic3BlY2lmaWVycyIsImxlbmd0a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XNzYWdlIH0pO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH07XG4gIH0sXG59O1xuIl19
|
||||
181
node_modules/eslint-plugin-import/lib/rules/no-namespace.js
generated
vendored
181
node_modules/eslint-plugin-import/lib/rules/no-namespace.js
generated
vendored
File diff suppressed because one or more lines are too long
22
node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js
generated
vendored
22
node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js
generated
vendored
@@ -1,9 +1,9 @@
|
||||
'use strict';var _importType = require('../core/importType');var _importType2 = _interopRequireDefault(_importType);
|
||||
var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
function reportIfMissing(context, node, allowed, name) {
|
||||
if (allowed.indexOf(name) === -1 && (0, _importType2.default)(name, context) === 'builtin') {
|
||||
if (allowed.indexOf(name) === -1 && (0, _importType2['default'])(name, context) === 'builtin') {
|
||||
context.report(node, 'Do not import Node.js builtin module "' + name + '"');
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-nodejs-modules') },
|
||||
url: (0, _docsUrl2['default'])('no-nodejs-modules') },
|
||||
|
||||
schema: [
|
||||
{
|
||||
@@ -31,12 +31,12 @@ module.exports = {
|
||||
|
||||
|
||||
|
||||
create: function (context) {
|
||||
const options = context.options[0] || {};
|
||||
const allowed = options.allow || [];
|
||||
create: function () {function create(context) {
|
||||
var options = context.options[0] || {};
|
||||
var allowed = options.allow || [];
|
||||
|
||||
return (0, _moduleVisitor2.default)((source, node) => {
|
||||
reportIfMissing(context, node, allowed, source.value);
|
||||
}, { commonjs: true });
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1ub2RlanMtbW9kdWxlcy5qcyJdLCJuYW1lcyI6WyJyZXBvcnRJZk1pc3NpbmciLCJjb250ZXh0Iiwibm9kZSIsImFsbG93ZWQiLCJuYW1lIiwiaW5kZXhPZiIsInJlcG9ydCIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJzY2hlbWEiLCJwcm9wZXJ0aWVzIiwiYWxsb3ciLCJ1bmlxdWVJdGVtcyIsIml0ZW1zIiwiYWRkaXRpb25hbFByb3BlcnRpZXMiLCJjcmVhdGUiLCJvcHRpb25zIiwic291cmNlIiwidmFsdWUiLCJjb21tb25qcyJdLCJtYXBwaW5ncyI6ImFBQUEsZ0Q7QUFDQSxrRTtBQUNBLHFDOztBQUVBLFNBQVNBLGVBQVQsQ0FBeUJDLE9BQXpCLEVBQWtDQyxJQUFsQyxFQUF3Q0MsT0FBeEMsRUFBaURDLElBQWpELEVBQXVEO0FBQ3JELE1BQUlELFFBQVFFLE9BQVIsQ0FBZ0JELElBQWhCLE1BQTBCLENBQUMsQ0FBM0IsSUFBZ0MsMEJBQVdBLElBQVgsRUFBaUJILE9BQWpCLE1BQThCLFNBQWxFLEVBQTZFO0FBQzNFQSxZQUFRSyxNQUFSLENBQWVKLElBQWYsRUFBcUIsMkNBQTJDRSxJQUEzQyxHQUFrRCxHQUF2RTtBQUNEO0FBQ0Y7O0FBRURHLE9BQU9DLE9BQVAsR0FBaUI7QUFDZkMsUUFBTTtBQUNKQyxVQUFNLFlBREY7QUFFSkMsVUFBTTtBQUNKQyxXQUFLLHVCQUFRLG1CQUFSLENBREQsRUFGRjs7QUFLSkM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vbnRleHQucmVwb3J0KG5vZGUsICdEbyBub3QgaW1wb3J0IE5vZGUuanMgYnVpbHRpbiBtb2R1bGUgXCInICsgbmFtZSArICdcIicpO1xuICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0ge1xuICBtZXRhOiB7XG4gICAgdHlwZTogJ3N1Z2dlc3Rpb24nLFxuICAgIGRvY3M6IHtcbiAgICAgIHVybDogZG9jc1VybCgnbm8tbm9kZWpzLW1vZHVsZXMnKSxcbiAgICB9LFxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIGFsbG93OiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgICAgdW5pcXVlSXRlbXM6IHRydWUsXG4gICAgICAgICAgICBpdGVtczoge1xuICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuXG4gIGNyZWF0ZTogZnVuY3Rpb24gKGNvbnRleHQpIHtcbiAgICBjb25zdCBvcHRpb25zID0gY29udGV4dC5vcHRpb25zWzBdIHx8IHt9O1xuICAgIGNvbnN0IGFsbG93ZWQgPSBvcHRpb25zLmFsbG93IHx8IFtdO1xuXG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IoKHNvdXJjZSwgbm9kZSkgPT4ge1xuICAgICAgcmVwb3J0SWZNaXNzaW5nKGNvbnRleHQsIG5vZGUsIGFsbG93ZWQsIHNvdXJjZS52YWx1ZSk7XG4gICAgfSwgeyBjb21tb25qczogdHJ1ZSB9KTtcbiAgfSxcbn07XG4iXX0=
|
||||
return (0, _moduleVisitor2['default'])(function (source, node) {
|
||||
reportIfMissing(context, node, allowed, source.value);
|
||||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gJ0RvIG5vdCBpbXBvcnQgTm9kZS5qcyBidWlsdGluIG1vZHVsZSBcIicgKyBuYW1lICsgJ1wiJyk7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSB7XG4gIG1ldGE6IHtcbiAgICB0eXBlOiAnc3VnZ2VzdGlvbicsXG4gICAgZG9jczoge1xuICAgICAgdXJsOiBkb2NzVXJsKCduby1ub2RlanMtbW9kdWxlcycpLFxuICAgIH0sXG4gICAgc2NoZW1hOiBbXG4gICAgICB7XG4gICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgYWxsb3c6IHtcbiAgICAgICAgICAgIHR5cGU6ICdhcnJheScsXG4gICAgICAgICAgICB1bmlxdWVJdGVtczogdHJ1ZSxcbiAgICAgICAgICAgIGl0ZW1zOiB7XG4gICAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgICBhZGRpdGlvbmFsUHJvcGVydGllczogZmFsc2UsXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG5cbiAgY3JlYXRlOiBmdW5jdGlvbiAoY29udGV4dCkge1xuICAgIGNvbnN0IG9wdGlvbnMgPSBjb250ZXh0Lm9wdGlvbnNbMF0gfHwge307XG4gICAgY29uc3QgYWxsb3dlZCA9IG9wdGlvbnMuYWxsb3cgfHwgW107XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcigoc291cmNlLCBub2RlKSA9PiB7XG4gICAgICByZXBvcnRJZk1pc3NpbmcoY29udGV4dCwgbm9kZSwgYWxsb3dlZCwgc291cmNlLnZhbHVlKTtcbiAgICB9LCB7IGNvbW1vbmpzOiB0cnVlIH0pO1xuICB9LFxufTtcbiJdfQ==
|
||||
44
node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js
generated
vendored
44
node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js
generated
vendored
File diff suppressed because one or more lines are too long
62
node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js
generated
vendored
62
node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js
generated
vendored
@@ -3,47 +3,47 @@ var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_doc
|
||||
var _path = require('path');
|
||||
var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);
|
||||
|
||||
var _importType = require('../core/importType');var _importType2 = _interopRequireDefault(_importType);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _importType = require('../core/importType');var _importType2 = _interopRequireDefault(_importType);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-relative-parent-imports') },
|
||||
url: (0, _docsUrl2['default'])('no-relative-parent-imports') },
|
||||
|
||||
schema: [(0, _moduleVisitor.makeOptionsSchema)()] },
|
||||
|
||||
|
||||
create: function noRelativePackages(context) {
|
||||
const myPath = context.getFilename();
|
||||
if (myPath === '<text>') return {}; // can't check a non-file
|
||||
create: function () {function noRelativePackages(context) {
|
||||
var myPath = context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename();
|
||||
if (myPath === '<text>') return {}; // can't check a non-file
|
||||
|
||||
function checkSourceValue(sourceNode) {
|
||||
const depPath = sourceNode.value;
|
||||
function checkSourceValue(sourceNode) {
|
||||
var depPath = sourceNode.value;
|
||||
|
||||
if ((0, _importType2.default)(depPath, context) === 'external') {// ignore packages
|
||||
return;
|
||||
if ((0, _importType2['default'])(depPath, context) === 'external') {// ignore packages
|
||||
return;
|
||||
}
|
||||
|
||||
var absDepPath = (0, _resolve2['default'])(depPath, context);
|
||||
|
||||
if (!absDepPath) {// unable to resolve path
|
||||
return;
|
||||
}
|
||||
|
||||
var relDepPath = (0, _path.relative)((0, _path.dirname)(myPath), absDepPath);
|
||||
|
||||
if ((0, _importType2['default'])(relDepPath, context) === 'parent') {
|
||||
context.report({
|
||||
node: sourceNode,
|
||||
message: 'Relative imports from parent directories are not allowed. ' + 'Please either pass what you\'re importing through at runtime ' + ('(dependency injection), move `' + String(
|
||||
|
||||
(0, _path.basename)(myPath)) + '` to same ') + ('directory as `' + String(
|
||||
depPath) + '` or consider making `' + String(depPath) + '` a package.') });
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
const absDepPath = (0, _resolve2.default)(depPath, context);
|
||||
|
||||
if (!absDepPath) {// unable to resolve path
|
||||
return;
|
||||
}
|
||||
|
||||
const relDepPath = (0, _path.relative)((0, _path.dirname)(myPath), absDepPath);
|
||||
|
||||
if ((0, _importType2.default)(relDepPath, context) === 'parent') {
|
||||
context.report({
|
||||
node: sourceNode,
|
||||
message: 'Relative imports from parent directories are not allowed. ' +
|
||||
`Please either pass what you're importing through at runtime ` +
|
||||
`(dependency injection), move \`${(0, _path.basename)(myPath)}\` to same ` +
|
||||
`directory as \`${depPath}\` or consider making \`${depPath}\` a package.` });
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return (0, _moduleVisitor2.default)(checkSourceValue, context.options[0]);
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZWxhdGl2ZS1wYXJlbnQtaW1wb3J0cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwibm9SZWxhdGl2ZVBhY2thZ2VzIiwiY29udGV4dCIsIm15UGF0aCIsImdldEZpbGVuYW1lIiwiY2hlY2tTb3VyY2VWYWx1ZSIsInNvdXJjZU5vZGUiLCJkZXBQYXRoIiwidmFsdWUiLCJhYnNEZXBQYXRoIiwicmVsRGVw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JHtkZXBQYXRofVxcYCBhIHBhY2thZ2UuYCxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IoY2hlY2tTb3VyY2VWYWx1ZSwgY29udGV4dC5vcHRpb25zWzBdKTtcbiAgfSxcbn07XG4iXX0=
|
||||
return (0, _moduleVisitor2['default'])(checkSourceValue, context.options[0]);
|
||||
}return noRelativePackages;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1yZWxhdGl2ZS1wYXJlbnQtaW1wb3J0cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwibm9SZWxhdGl2ZVBhY2thZ2VzIiwiY29udGV4dCIsIm15UGF0aCIsImdldFBoeXNpY2FsRmlsZW5hbWUiLCJnZXRGaWxlbmFtZSIsImNoZWNrU291cmNlVmFsdWUiLCJzb3VyY2VOb2RlIiwiZGVwUGF0aCIsInZhbHVlIiwiYWJzRGVwUGF0aCIsInJlbERlcFBhdGgiLCJyZXBvcnQiLCJub2RlIiwibWVzc2FnZSIsIm9wdGlvbnMiXSwibWFwcGluZ3MiOiJhQUFBLGtFO0FBQ0EscUM7QUFDQTtBQUNBLHNEOztBQUVBLGdEOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxZQURGO0FBRUpDLFVBQU07QUFDSkMsV0FBSywwQkFBUSw0QkFBUixDQURELEVBRkY7O0FBS0pDLFlBQVEsQ0FBQyx1Q0FBRCxDQUxKLEVBRFM7OztBQVNmQyx1QkFBUSxTQUFTQyxrQkFBVCxDQUE0QkMsT0FBNUIsRUFBcUM7QUFDM0MsVUFBTUMsU0FBU0QsUUFBUUUsbUJBQV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IH1cblxuICAgICAgY29uc3QgYWJzRGVwUGF0aCA9IHJlc29sdmUoZGVwUGF0aCwgY29udGV4dCk7XG5cbiAgICAgIGlmICghYWJzRGVwUGF0aCkgeyAvLyB1bmFibGUgdG8gcmVzb2x2ZSBwYXRoXG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cblxuICAgICAgY29uc3QgcmVsRGVwUGF0aCA9IHJlbGF0aXZlKGRpcm5hbWUobXlQYXRoKSwgYWJzRGVwUGF0aCk7XG5cbiAgICAgIGlmIChpbXBvcnRUeXBlKHJlbERlcFBhdGgsIGNvbnRleHQpID09PSAncGFyZW50Jykge1xuICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgbm9kZTogc291cmNlTm9kZSxcbiAgICAgICAgICBtZXNzYWdlOiAnUmVsYXRpdmUgaW1wb3J0cyBmcm9tIHBhcmVudCBkaXJlY3RvcmllcyBhcmUgbm90IGFsbG93ZWQuICcgK1xuICAgICAgICAgICAgYFBsZWFzZSBlaXRoZXIgcGFzcyB3aGF0IHlvdSdyZSBpbXBvcnRpbmcgdGhyb3VnaCBhdCBydW50aW1lIGAgK1xuICAgICAgICAgICAgYChkZXBlbmRlbmN5IGluamVjdGlvbiksIG1vdmUgXFxgJHtiYXNlbmFtZShteVBhdGgpfVxcYCB0byBzYW1lIGAgK1xuICAgICAgICAgICAgYGRpcmVjdG9yeSBhcyBcXGAke2RlcFBhdGh9XFxgIG9yIGNvbnNpZGVyIG1ha2luZyBcXGAke2RlcFBhdGh9XFxgIGEgcGFja2FnZS5gLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbW9kdWxlVmlzaXRvcihjaGVja1NvdXJjZVZhbHVlLCBjb250ZXh0Lm9wdGlvbnNbMF0pO1xuICB9LFxufTtcbiJdfQ==
|
||||
146
node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js
generated
vendored
146
node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js
generated
vendored
File diff suppressed because one or more lines are too long
22
node_modules/eslint-plugin-import/lib/rules/no-self-import.js
generated
vendored
22
node_modules/eslint-plugin-import/lib/rules/no-self-import.js
generated
vendored
@@ -5,15 +5,15 @@
|
||||
|
||||
var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);
|
||||
var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
function isImportingSelf(context, node, requireName) {
|
||||
const filePath = context.getFilename();
|
||||
var filePath = context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename();
|
||||
|
||||
// If the input is from stdin, this test can't fail
|
||||
if (filePath !== '<text>' && filePath === (0, _resolve2.default)(requireName, context)) {
|
||||
if (filePath !== '<text>' && filePath === (0, _resolve2['default'])(requireName, context)) {
|
||||
context.report({
|
||||
node,
|
||||
node: node,
|
||||
message: 'Module imports itself.' });
|
||||
|
||||
}
|
||||
@@ -25,14 +25,14 @@ function isImportingSelf(context, node, requireName) {
|
||||
docs: {
|
||||
description: 'Forbid a module from importing itself',
|
||||
recommended: true,
|
||||
url: (0, _docsUrl2.default)('no-self-import') },
|
||||
url: (0, _docsUrl2['default'])('no-self-import') },
|
||||
|
||||
|
||||
schema: [] },
|
||||
|
||||
create: function (context) {
|
||||
return (0, _moduleVisitor2.default)((source, node) => {
|
||||
isImportingSelf(context, node, source.value);
|
||||
}, { commonjs: true });
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy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mlkIGEgbW9kdWxlIGZyb20gaW1wb3J0aW5nIGl0c2VsZicsXG4gICAgICByZWNvbW1lbmRlZDogdHJ1ZSxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tc2VsZi1pbXBvcnQnKSxcbiAgICB9LFxuXG4gICAgc2NoZW1hOiBbXSxcbiAgfSxcbiAgY3JlYXRlOiBmdW5jdGlvbiAoY29udGV4dCkge1xuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKChzb3VyY2UsIG5vZGUpID0+IHtcbiAgICAgIGlzSW1wb3J0aW5nU2VsZihjb250ZXh0LCBub2RlLCBzb3VyY2UudmFsdWUpO1xuICAgIH0sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19
|
||||
create: function () {function create(context) {
|
||||
return (0, _moduleVisitor2['default'])(function (source, node) {
|
||||
isImportingSelf(context, node, source.value);
|
||||
}, { commonjs: true });
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1zZWxmLWltcG9ydC5qcyJdLCJuYW1lcyI6WyJpc0ltcG9ydGluZ1NlbGYiLCJjb250ZXh0Iiwibm9kZSIsInJlcXVpcmVOYW1lIiwiZmlsZVBhdGgiLCJnZXRQaHlzaWNhbEZpbGVuYW1lIiwiZ2V0RmlsZW5hbWUiLCJyZXBvcnQiLCJtZXNzYWdlIiwibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJ0eXBlIiwiZG9jcyIsImRlc2NyaXB0aW9uIiwicmVjb21tZW5kZWQiLCJ1cmwiLCJzY2hlbWEiLCJjcmVhdGUiLCJzb3VyY2UiLCJ2YWx1ZSIsImNvbW1vbmpzIl0sIm1hcHBpbmdzIjoiOzs7OztBQUtBLHNEO0FBQ0Esa0U7QUFDQSxxQzs7QUFFQSxTQUFTQSxlQUFULENBQXlCQyxPQUF6QixFQUFrQ0MsSU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gaXNJbXBvcnRpbmdTZWxmKGNvbnRleHQsIG5vZGUsIHNvdXJjZS52YWx1ZSk7XG4gICAgfSwgeyBjb21tb25qczogdHJ1ZSB9KTtcbiAgfSxcbn07XG4iXX0=
|
||||
50
node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js
generated
vendored
50
node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js
generated
vendored
File diff suppressed because one or more lines are too long
50
node_modules/eslint-plugin-import/lib/rules/no-unresolved.js
generated
vendored
50
node_modules/eslint-plugin-import/lib/rules/no-unresolved.js
generated
vendored
@@ -6,44 +6,44 @@
|
||||
var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);
|
||||
var _ModuleCache = require('eslint-module-utils/ModuleCache');var _ModuleCache2 = _interopRequireDefault(_ModuleCache);
|
||||
var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /**
|
||||
* @fileOverview Ensures that an imported path exists, given resolution rules.
|
||||
* @author Ben Mosher
|
||||
*/module.exports = { meta: {
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} /**
|
||||
* @fileOverview Ensures that an imported path exists, given resolution rules.
|
||||
* @author Ben Mosher
|
||||
*/module.exports = { meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-unresolved') },
|
||||
url: (0, _docsUrl2['default'])('no-unresolved') },
|
||||
|
||||
|
||||
schema: [(0, _moduleVisitor.makeOptionsSchema)({
|
||||
caseSensitive: { type: 'boolean', default: true } })] },
|
||||
caseSensitive: { type: 'boolean', 'default': true } })] },
|
||||
|
||||
|
||||
|
||||
create: function (context) {
|
||||
create: function () {function create(context) {
|
||||
|
||||
function checkSourceValue(source) {
|
||||
const shouldCheckCase = !_resolve.CASE_SENSITIVE_FS && (
|
||||
!context.options[0] || context.options[0].caseSensitive !== false);
|
||||
function checkSourceValue(source) {
|
||||
var shouldCheckCase = !_resolve.CASE_SENSITIVE_FS && (
|
||||
!context.options[0] || context.options[0].caseSensitive !== false);
|
||||
|
||||
const resolvedPath = (0, _resolve2.default)(source.value, context);
|
||||
var resolvedPath = (0, _resolve2['default'])(source.value, context);
|
||||
|
||||
if (resolvedPath === undefined) {
|
||||
context.report(source,
|
||||
`Unable to resolve path to module '${source.value}'.`);
|
||||
} else
|
||||
if (resolvedPath === undefined) {
|
||||
context.report(source, 'Unable to resolve path to module \'' + String(
|
||||
source.value) + '\'.');
|
||||
} else
|
||||
|
||||
if (shouldCheckCase) {
|
||||
var cacheSettings = _ModuleCache2['default'].getSettings(context.settings);
|
||||
if (!(0, _resolve.fileExistsWithCaseSync)(resolvedPath, cacheSettings)) {
|
||||
context.report(source, 'Casing of ' + String(
|
||||
source.value) + ' does not match the underlying filesystem.');
|
||||
}
|
||||
|
||||
if (shouldCheckCase) {
|
||||
const cacheSettings = _ModuleCache2.default.getSettings(context.settings);
|
||||
if (!(0, _resolve.fileExistsWithCaseSync)(resolvedPath, cacheSettings)) {
|
||||
context.report(source,
|
||||
`Casing of ${source.value} does not match the underlying filesystem.`);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return (0, _moduleVisitor2.default)(checkSourceValue, context.options[0]);
|
||||
return (0, _moduleVisitor2['default'])(checkSourceValue, context.options[0]);
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby11bnJlc29sdmVkLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJ1cmwiLCJz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HZlZFBhdGggPSByZXNvbHZlKHNvdXJjZS52YWx1ZSwgY29udGV4dCk7XG5cbiAgICAgIGlmIChyZXNvbHZlZFBhdGggPT09IHVuZGVmaW5lZCkge1xuICAgICAgICBjb250ZXh0LnJlcG9ydChzb3VyY2UsXG4gICAgICAgICAgYFVuYWJsZSB0byByZXNvbHZlIHBhdGggdG8gbW9kdWxlICcke3NvdXJjZS52YWx1ZX0nLmApO1xuICAgICAgfVxuXG4gICAgICBlbHNlIGlmIChzaG91bGRDaGVja0Nhc2UpIHtcbiAgICAgICAgY29uc3QgY2FjaGVTZXR0aW5ncyA9IE1vZHVsZUNhY2hlLmdldFNldHRpbmdzKGNvbnRleHQuc2V0dGluZ3MpO1xuICAgICAgICBpZiAoIWZpbGVFeGlzdHNXaXRoQ2FzZVN5bmMocmVzb2x2ZWRQYXRoLCBjYWNoZVNldHRpbmdzKSkge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHNvdXJjZSxcbiAgICAgICAgICAgIGBDYXNpbmcgb2YgJHtzb3VyY2UudmFsdWV9IGRvZXMgbm90IG1hdGNoIHRoZSB1bmRlcmx5aW5nIGZpbGVzeXN0ZW0uYCk7XG4gICAgICAgIH1cblxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKGNoZWNrU291cmNlVmFsdWUsIGNvbnRleHQub3B0aW9uc1swXSk7XG5cbiAgfSxcbn07XG4iXX0=
|
||||
1098
node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js
generated
vendored
1098
node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js
generated
vendored
File diff suppressed because one or more lines are too long
194
node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js
generated
vendored
194
node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js
generated
vendored
File diff suppressed because one or more lines are too long
18
node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js
generated
vendored
18
node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js
generated
vendored
@@ -1,9 +1,9 @@
|
||||
'use strict';var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
|
||||
|
||||
function reportIfNonStandard(context, node, name) {
|
||||
if (name && name.indexOf('!') !== -1) {
|
||||
context.report(node, `Unexpected '!' in '${name}'. ` +
|
||||
context.report(node, 'Unexpected \'!\' in \'' + String(name) + '\'. ' +
|
||||
'Do not use import syntax to configure webpack loaders.');
|
||||
|
||||
}
|
||||
@@ -13,14 +13,14 @@ module.exports = {
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('no-webpack-loader-syntax') },
|
||||
url: (0, _docsUrl2['default'])('no-webpack-loader-syntax') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
return (0, _moduleVisitor2.default)((source, node) => {
|
||||
reportIfNonStandard(context, node, source.value);
|
||||
}, { commonjs: true });
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby13ZWJwYWNrLWxvYWRlci1zeW50YXguanMiXSwibmFtZXMiOlsicmVwb3J0SWZOb25TdGFuZGFyZCIsImNvbnRleHQiLCJub2RlIiwibmFtZSIsImluZGV4T2YiLCJyZXBvcnQiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwic291cmNlIiwidmFsdWUiLCJjb21tb25qcyJdLCJt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Chub2RlLCBgVW5leHBlY3RlZCAnIScgaW4gJyR7bmFtZX0nLiBgICtcbiAgICAgICdEbyBub3QgdXNlIGltcG9ydCBzeW50YXggdG8gY29uZmlndXJlIHdlYnBhY2sgbG9hZGVycy4nXG4gICAgKTtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgbWV0YToge1xuICAgIHR5cGU6ICdwcm9ibGVtJyxcbiAgICBkb2NzOiB7XG4gICAgICB1cmw6IGRvY3NVcmwoJ25vLXdlYnBhY2stbG9hZGVyLXN5bnRheCcpLFxuICAgIH0sXG4gICAgc2NoZW1hOiBbXSxcbiAgfSxcblxuICBjcmVhdGU6IGZ1bmN0aW9uIChjb250ZXh0KSB7XG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IoKHNvdXJjZSwgbm9kZSkgPT4ge1xuICAgICAgcmVwb3J0SWZOb25TdGFuZGFyZChjb250ZXh0LCBub2RlLCBzb3VyY2UudmFsdWUpO1xuICAgIH0sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19
|
||||
create: function () {function create(context) {
|
||||
return (0, _moduleVisitor2['default'])(function (source, node) {
|
||||
reportIfNonStandard(context, node, source.value);
|
||||
}, { commonjs: true });
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby13ZWJwYWNrLWxvYWRlci1zeW50YXguanMiXSwibmFtZXMiOlsicmVwb3J0SWZOb25TdGFuZGFyZCIsImNvbnRleHQiLCJub2RlIiwibmFtZSIsImluZGV4T2YiLCJyZXBvcnQiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwic291cmNlIiwidmFsdWUiLCJjb21tb25qcyJdLCJtYXBwaW5ncyI6ImFBQUEsa0U7QUFDQSxxQzs7Q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mFtZX0nLiBgICtcbiAgICAgICdEbyBub3QgdXNlIGltcG9ydCBzeW50YXggdG8gY29uZmlndXJlIHdlYnBhY2sgbG9hZGVycy4nXG4gICAgKTtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgbWV0YToge1xuICAgIHR5cGU6ICdwcm9ibGVtJyxcbiAgICBkb2NzOiB7XG4gICAgICB1cmw6IGRvY3NVcmwoJ25vLXdlYnBhY2stbG9hZGVyLXN5bnRheCcpLFxuICAgIH0sXG4gICAgc2NoZW1hOiBbXSxcbiAgfSxcblxuICBjcmVhdGU6IGZ1bmN0aW9uIChjb250ZXh0KSB7XG4gICAgcmV0dXJuIG1vZHVsZVZpc2l0b3IoKHNvdXJjZSwgbm9kZSkgPT4ge1xuICAgICAgcmVwb3J0SWZOb25TdGFuZGFyZChjb250ZXh0LCBub2RlLCBzb3VyY2UudmFsdWUpO1xuICAgIH0sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19
|
||||
462
node_modules/eslint-plugin-import/lib/rules/order.js
generated
vendored
462
node_modules/eslint-plugin-import/lib/rules/order.js
generated
vendored
File diff suppressed because one or more lines are too long
152
node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js
generated
vendored
152
node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js
generated
vendored
File diff suppressed because one or more lines are too long
40
node_modules/eslint-plugin-import/lib/rules/unambiguous.js
generated
vendored
40
node_modules/eslint-plugin-import/lib/rules/unambiguous.js
generated
vendored
@@ -4,33 +4,33 @@
|
||||
|
||||
|
||||
var _unambiguous = require('eslint-module-utils/unambiguous');
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /**
|
||||
* @fileOverview Report modules that could parse incorrectly as scripts.
|
||||
* @author Ben Mosher
|
||||
*/module.exports = { meta: {
|
||||
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} /**
|
||||
* @fileOverview Report modules that could parse incorrectly as scripts.
|
||||
* @author Ben Mosher
|
||||
*/module.exports = { meta: {
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
url: (0, _docsUrl2.default)('unambiguous') },
|
||||
url: (0, _docsUrl2['default'])('unambiguous') },
|
||||
|
||||
schema: [] },
|
||||
|
||||
|
||||
create: function (context) {
|
||||
// ignore non-modules
|
||||
if (context.parserOptions.sourceType !== 'module') {
|
||||
return {};
|
||||
}
|
||||
create: function () {function create(context) {
|
||||
// ignore non-modules
|
||||
if (context.parserOptions.sourceType !== 'module') {
|
||||
return {};
|
||||
}
|
||||
|
||||
return {
|
||||
Program: function (ast) {
|
||||
if (!(0, _unambiguous.isModule)(ast)) {
|
||||
context.report({
|
||||
node: ast,
|
||||
message: 'This module could be parsed as a valid script.' });
|
||||
return {
|
||||
Program: function () {function Program(ast) {
|
||||
if (!(0, _unambiguous.isModule)(ast)) {
|
||||
context.report({
|
||||
node: ast,
|
||||
message: 'This module could be parsed as a valid script.' });
|
||||
|
||||
}
|
||||
} };
|
||||
}
|
||||
}return Program;}() };
|
||||
|
||||
|
||||
} };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy91bmFtYmlndW91cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsInBhcnNlck9wdGlvbnMiLCJzb3VyY2VUeXBlIiwiUHJvZ3JhbSIsImFzdCIsInJlcG9ydCIsIm5vZGUiLCJtZXNzYWdlIl0sIm1hcHBpbmdzIjoiOzs7OztBQUtBO0FBQ0EscUMsK0lBTkE7Ozt1TEFRQUEsT0FBT0MsT0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5jdGlvbiAoY29udGV4dCkge1xuICAgIC8vIGlnbm9yZSBub24tbW9kdWxlc1xuICAgIGlmIChjb250ZXh0LnBhcnNlck9wdGlvbnMuc291cmNlVHlwZSAhPT0gJ21vZHVsZScpIHtcbiAgICAgIHJldHVybiB7fTtcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgUHJvZ3JhbTogZnVuY3Rpb24gKGFzdCkge1xuICAgICAgICBpZiAoIWlzTW9kdWxlKGFzdCkpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICBub2RlOiBhc3QsXG4gICAgICAgICAgICBtZXNzYWdlOiAnVGhpcyBtb2R1bGUgY291bGQgYmUgcGFyc2VkIGFzIGEgdmFsaWQgc2NyaXB0LicsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcblxuICB9LFxufTtcbiJdfQ==
|
||||
}return create;}() };
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy91bmFtYmlndW91cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwidXJsIiwic2NoZW1hIiwiY3JlYXRlIiwiY29udGV4dCIsInBhcnNlck9wdGlvbnMiLCJzb3VyY2VUeXBlIiwiUHJvZ3JhbSIsImFzdCIsInJlcG9ydCIsIm5vZGUiLCJtZXNzYWdlIl0sIm1hcHBpbmdzIjoiOzs7OztBQUtBO0FBQ0EscUMsaUpBTkE7Ozt5TEFRQUEsT0FBT0MsT0FBUCxHQUFpQixFQUNmQyxNQUFNO0FBQ0pDLFVBQU0sWUFERjtBQUVKQyxVQUFNO0FBQ0pDLFdBQUssMEJBQVEsYUFBUixDQURELEVBRkY7O0FBS0pDLFlBQVEsRUFMSixFQURTOzs7QUFTZkMsdUJBQVEsZ0JBQVVDLE9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uICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICBQcm9ncmFtOiBmdW5jdGlvbiAoYXN0KSB7XG4gICAgICAgIGlmICghaXNNb2R1bGUoYXN0KSkge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGU6IGFzdCxcbiAgICAgICAgICAgIG1lc3NhZ2U6ICdUaGlzIG1vZHVsZSBjb3VsZCBiZSBwYXJzZWQgYXMgYSB2YWxpZCBzY3JpcHQuJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuXG4gIH0sXG59O1xuIl19
|
||||
13
node_modules/eslint-plugin-import/package.json
generated
vendored
13
node_modules/eslint-plugin-import/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-plugin-import",
|
||||
"version": "2.23.4",
|
||||
"version": "2.24.0",
|
||||
"description": "Import with sanity.",
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
@@ -36,7 +36,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/benmosher/eslint-plugin-import"
|
||||
"url": "https://github.com/import-js/eslint-plugin-import"
|
||||
},
|
||||
"keywords": [
|
||||
"eslint",
|
||||
@@ -50,9 +50,9 @@
|
||||
"author": "Ben Mosher <me@benmosher.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/benmosher/eslint-plugin-import/issues"
|
||||
"url": "https://github.com/import-js/eslint-plugin-import/issues"
|
||||
},
|
||||
"homepage": "https://github.com/benmosher/eslint-plugin-import",
|
||||
"homepage": "https://github.com/import-js/eslint-plugin-import",
|
||||
"devDependencies": {
|
||||
"@eslint/import-test-order-redirect-scoped": "file:./tests/files/order-redirect-scoped",
|
||||
"@test-scope/some-module": "file:./tests/files/symlinked-module",
|
||||
@@ -63,6 +63,7 @@
|
||||
"babel-eslint": "=8.0.3 || ^8.2.6",
|
||||
"babel-plugin-istanbul": "^4.1.6",
|
||||
"babel-plugin-module-resolver": "^2.7.1",
|
||||
"babel-preset-airbnb": "^2.6.0",
|
||||
"babel-preset-es2015-argon": "latest",
|
||||
"babel-preset-flow": "^6.23.0",
|
||||
"babel-register": "^6.26.0",
|
||||
@@ -103,8 +104,8 @@
|
||||
"array.prototype.flat": "^1.2.4",
|
||||
"debug": "^2.6.9",
|
||||
"doctrine": "^2.1.0",
|
||||
"eslint-import-resolver-node": "^0.3.4",
|
||||
"eslint-module-utils": "^2.6.1",
|
||||
"eslint-import-resolver-node": "^0.3.5",
|
||||
"eslint-module-utils": "^2.6.2",
|
||||
"find-up": "^2.0.0",
|
||||
"has": "^1.0.3",
|
||||
"is-core-module": "^2.4.0",
|
||||
|
||||
Reference in New Issue
Block a user