├── .eslintrc.js ├── .github └── workflows │ ├── nodejs-test.yml │ └── npm-publish.yml ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── rollup.config.js ├── src └── rule.js └── tests └── rule.test.js /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "es6": true, 4 | "node": true 5 | }, 6 | "extends": "eslint:recommended", 7 | "parserOptions": { 8 | "ecmaVersion": 2019, 9 | "sourceType": "module" 10 | }, 11 | "rules": { 12 | "indent": [ 13 | "error", 14 | 4 15 | ], 16 | "linebreak-style": [ 17 | "error", 18 | "unix" 19 | ], 20 | "quotes": [ 21 | "error", 22 | "double" 23 | ], 24 | "semi": [ 25 | "error", 26 | "always" 27 | ] 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /.github/workflows/nodejs-test.yml: -------------------------------------------------------------------------------- 1 | name: Node CI 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | strategy: 11 | matrix: 12 | node-version: [8.x, 10.x, 12.x] 13 | 14 | steps: 15 | - uses: actions/checkout@v1 16 | - name: Use Node.js ${{ matrix.node-version }} 17 | uses: actions/setup-node@v1 18 | with: 19 | node-version: ${{ matrix.node-version }} 20 | - name: npm install, build, and test 21 | run: | 22 | npm install 23 | npm run build --if-present 24 | npm test 25 | env: 26 | CI: true 27 | -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- 1 | name: Node.js Package 2 | 3 | on: 4 | release: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: actions/setup-node@v1 14 | with: 15 | node-version: 12 16 | - run: npm ci 17 | - run: npm test 18 | 19 | publish-npm: 20 | needs: build 21 | runs-on: ubuntu-latest 22 | steps: 23 | - uses: actions/checkout@v1 24 | - uses: actions/setup-node@v1 25 | with: 26 | node-version: 12 27 | registry-url: https://registry.npmjs.org/ 28 | - run: npm ci 29 | - run: npm publish --access public 30 | env: 31 | NODE_AUTH_TOKEN: ${{secrets.npm_token}} 32 | 33 | # publish-gpr: 34 | # needs: build 35 | # runs-on: ubuntu-latest 36 | # steps: 37 | # - uses: actions/checkout@v1 38 | # - uses: actions/setup-node@v1 39 | # with: 40 | # node-version: 12 41 | # registry-url: https://npm.pkg.github.com/ 42 | # scope: '@your-github-username' 43 | # - run: npm publish 44 | # env: 45 | # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # next.js build output 61 | .next 62 | 63 | # distribution files 64 | dist 65 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "8" 4 | - "9" 5 | - "10" 6 | - "11" 7 | sudo: false 8 | branches: 9 | only: 10 | - master 11 | 12 | # Run npm test always 13 | script: 14 | - "npm test" 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ESLint Simple Rule 2 | 3 | by [Nicholas C. Zakas](https://humanwhocodes.com) 4 | 5 | If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate). 6 | 7 | ## Description 8 | 9 | ESLint rules require some boilerplate that ranges from trivial to complicated depending on what type of rule you're trying to create. This utility helps create ESLint rules with as little boilerplate as possible and is designed for creating the simplest of rules: those that simply flag some syntax as a problem and doesn't try to fix it. The goal is to allow anyone to create custom rules faster and with less code than with using the built-in ESLint rule syntax. 10 | 11 | ## Usage 12 | 13 | ### Node.js 14 | 15 | Install using [npm][npm] or [yarn][yarn]: 16 | 17 | ``` 18 | npm install @humanwhocodes/eslint-simple-rule --save 19 | 20 | # or 21 | 22 | yarn add @humanwhocodes/eslint-simple-rule 23 | ``` 24 | 25 | Import into your Node.js project: 26 | 27 | ```js 28 | // CommonJS 29 | const { rule } = require("@humanwhocodes/eslint-simple-rule"); 30 | 31 | // ESM 32 | import { rule } from "@humanwhocodes/eslint-simple-rule"; 33 | ``` 34 | 35 | ### Deno 36 | 37 | Import into your Deno project: 38 | 39 | ```js 40 | import { rule } from "https://unpkg.com/@humanwhocodes/eslint-simple-rule/dist/rule.js"; 41 | ``` 42 | 43 | ### Browser 44 | 45 | It's recommended to import the minified version to save bandwidth: 46 | 47 | ```js 48 | import { rule } from "https://unpkg.com/@humanwhocodes/eslint-simple-rule/dist/rule.min.js"; 49 | ``` 50 | 51 | However, you can also import the unminified version for debugging purposes: 52 | 53 | ```js 54 | import { rule } from "https://unpkg.com/@humanwhocodes/eslint-simple-rule/dist/rule.js"; 55 | ``` 56 | 57 | ## API 58 | 59 | After importing, you can create a new rule by using the `rule()` function and passing in an object literal where the keys are [esquery selectors](https://eslint.org/docs/developer-guide/selectors) indicating the node to warn on and the values are the messages to display in ESLint when a node matches the selector: 60 | 61 | ```js 62 | export default rule({ 63 | 64 | // warn whenever "null" is used 65 | "Literal[raw=\"null\"]": "Do not use null.", 66 | 67 | // warn whenever a "var" declaration is used 68 | "VariableDeclaration[kind=var]": "Use either 'let' or 'const' instead of 'var'." 69 | }); 70 | ``` 71 | 72 | Or if you are using CommonJS: 73 | 74 | ```js 75 | module.exports = rule({ 76 | 77 | // warn whenever "null" is used 78 | "Literal[raw=\"null\"]": "Do not use null.", 79 | 80 | // warn whenever a "var" declaration is used 81 | "VariableDeclaration[kind=var]": "Use either 'let' or 'const' instead of 'var'." 82 | }); 83 | ``` 84 | 85 | [npm]: https://www.npmjs.com/ 86 | [yarn]: https://yarnpkg.com/ 87 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@humanwhocodes/eslint-simple-rule", 3 | "version": "0.1.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.0.0", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", 10 | "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.0.0" 14 | } 15 | }, 16 | "@babel/core": { 17 | "version": "7.5.5", 18 | "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.5.5.tgz", 19 | "integrity": "sha512-i4qoSr2KTtce0DmkuuQBV4AuQgGPUcPXMr9L5MyYAtk06z068lQ10a4O009fe5OB/DfNV+h+qqT7ddNV8UnRjg==", 20 | "dev": true, 21 | "requires": { 22 | "@babel/code-frame": "^7.5.5", 23 | "@babel/generator": "^7.5.5", 24 | "@babel/helpers": "^7.5.5", 25 | "@babel/parser": "^7.5.5", 26 | "@babel/template": "^7.4.4", 27 | "@babel/traverse": "^7.5.5", 28 | "@babel/types": "^7.5.5", 29 | "convert-source-map": "^1.1.0", 30 | "debug": "^4.1.0", 31 | "json5": "^2.1.0", 32 | "lodash": "^4.17.13", 33 | "resolve": "^1.3.2", 34 | "semver": "^5.4.1", 35 | "source-map": "^0.5.0" 36 | }, 37 | "dependencies": { 38 | "@babel/code-frame": { 39 | "version": "7.5.5", 40 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", 41 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", 42 | "dev": true, 43 | "requires": { 44 | "@babel/highlight": "^7.0.0" 45 | } 46 | } 47 | } 48 | }, 49 | "@babel/generator": { 50 | "version": "7.5.5", 51 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.5.5.tgz", 52 | "integrity": "sha512-ETI/4vyTSxTzGnU2c49XHv2zhExkv9JHLTwDAFz85kmcwuShvYG2H08FwgIguQf4JC75CBnXAUM5PqeF4fj0nQ==", 53 | "dev": true, 54 | "requires": { 55 | "@babel/types": "^7.5.5", 56 | "jsesc": "^2.5.1", 57 | "lodash": "^4.17.13", 58 | "source-map": "^0.5.0", 59 | "trim-right": "^1.0.1" 60 | } 61 | }, 62 | "@babel/helper-function-name": { 63 | "version": "7.1.0", 64 | "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", 65 | "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", 66 | "dev": true, 67 | "requires": { 68 | "@babel/helper-get-function-arity": "^7.0.0", 69 | "@babel/template": "^7.1.0", 70 | "@babel/types": "^7.0.0" 71 | } 72 | }, 73 | "@babel/helper-get-function-arity": { 74 | "version": "7.0.0", 75 | "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", 76 | "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", 77 | "dev": true, 78 | "requires": { 79 | "@babel/types": "^7.0.0" 80 | } 81 | }, 82 | "@babel/helper-plugin-utils": { 83 | "version": "7.0.0", 84 | "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", 85 | "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", 86 | "dev": true 87 | }, 88 | "@babel/helper-split-export-declaration": { 89 | "version": "7.4.4", 90 | "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz", 91 | "integrity": "sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==", 92 | "dev": true, 93 | "requires": { 94 | "@babel/types": "^7.4.4" 95 | } 96 | }, 97 | "@babel/helpers": { 98 | "version": "7.5.5", 99 | "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.5.5.tgz", 100 | "integrity": "sha512-nRq2BUhxZFnfEn/ciJuhklHvFOqjJUD5wpx+1bxUF2axL9C+v4DE/dmp5sT2dKnpOs4orZWzpAZqlCy8QqE/7g==", 101 | "dev": true, 102 | "requires": { 103 | "@babel/template": "^7.4.4", 104 | "@babel/traverse": "^7.5.5", 105 | "@babel/types": "^7.5.5" 106 | } 107 | }, 108 | "@babel/highlight": { 109 | "version": "7.0.0", 110 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", 111 | "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", 112 | "dev": true, 113 | "requires": { 114 | "chalk": "^2.0.0", 115 | "esutils": "^2.0.2", 116 | "js-tokens": "^4.0.0" 117 | } 118 | }, 119 | "@babel/parser": { 120 | "version": "7.5.5", 121 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.5.5.tgz", 122 | "integrity": "sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g==", 123 | "dev": true 124 | }, 125 | "@babel/plugin-syntax-dynamic-import": { 126 | "version": "7.2.0", 127 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz", 128 | "integrity": "sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==", 129 | "dev": true, 130 | "requires": { 131 | "@babel/helper-plugin-utils": "^7.0.0" 132 | } 133 | }, 134 | "@babel/template": { 135 | "version": "7.4.4", 136 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.4.4.tgz", 137 | "integrity": "sha512-CiGzLN9KgAvgZsnivND7rkA+AeJ9JB0ciPOD4U59GKbQP2iQl+olF1l76kJOupqidozfZ32ghwBEJDhnk9MEcw==", 138 | "dev": true, 139 | "requires": { 140 | "@babel/code-frame": "^7.0.0", 141 | "@babel/parser": "^7.4.4", 142 | "@babel/types": "^7.4.4" 143 | } 144 | }, 145 | "@babel/traverse": { 146 | "version": "7.5.5", 147 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.5.5.tgz", 148 | "integrity": "sha512-MqB0782whsfffYfSjH4TM+LMjrJnhCNEDMDIjeTpl+ASaUvxcjoiVCo/sM1GhS1pHOXYfWVCYneLjMckuUxDaQ==", 149 | "dev": true, 150 | "requires": { 151 | "@babel/code-frame": "^7.5.5", 152 | "@babel/generator": "^7.5.5", 153 | "@babel/helper-function-name": "^7.1.0", 154 | "@babel/helper-split-export-declaration": "^7.4.4", 155 | "@babel/parser": "^7.5.5", 156 | "@babel/types": "^7.5.5", 157 | "debug": "^4.1.0", 158 | "globals": "^11.1.0", 159 | "lodash": "^4.17.13" 160 | }, 161 | "dependencies": { 162 | "@babel/code-frame": { 163 | "version": "7.5.5", 164 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", 165 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", 166 | "dev": true, 167 | "requires": { 168 | "@babel/highlight": "^7.0.0" 169 | } 170 | } 171 | } 172 | }, 173 | "@babel/types": { 174 | "version": "7.5.5", 175 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.5.5.tgz", 176 | "integrity": "sha512-s63F9nJioLqOlW3UkyMd+BYhXt44YuaFm/VV0VwuteqjYwRrObkU7ra9pY4wAJR3oXi8hJrMcrcJdO/HH33vtw==", 177 | "dev": true, 178 | "requires": { 179 | "esutils": "^2.0.2", 180 | "lodash": "^4.17.13", 181 | "to-fast-properties": "^2.0.0" 182 | } 183 | }, 184 | "@comandeer/babel-plugin-banner": { 185 | "version": "5.0.0", 186 | "resolved": "https://registry.npmjs.org/@comandeer/babel-plugin-banner/-/babel-plugin-banner-5.0.0.tgz", 187 | "integrity": "sha512-sR9Go0U6puXoXyW9UgIiIQhRcJ8jVOvGl4BptUiXAtheMs72WcakZ1udh6J0ZOivr3o8jAM+MTCHLP8FZMbVpQ==", 188 | "dev": true 189 | }, 190 | "@types/estree": { 191 | "version": "0.0.39", 192 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", 193 | "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", 194 | "dev": true 195 | }, 196 | "@types/node": { 197 | "version": "12.7.2", 198 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.2.tgz", 199 | "integrity": "sha512-dyYO+f6ihZEtNPDcWNR1fkoTDf3zAK3lAABDze3mz6POyIercH0lEUawUFXlG8xaQZmm1yEBON/4TsYv/laDYg==", 200 | "dev": true 201 | }, 202 | "acorn": { 203 | "version": "6.3.0", 204 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.3.0.tgz", 205 | "integrity": "sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==", 206 | "dev": true 207 | }, 208 | "acorn-jsx": { 209 | "version": "5.0.2", 210 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.2.tgz", 211 | "integrity": "sha512-tiNTrP1MP0QrChmD2DdupCr6HWSFeKVw5d/dHTu4Y7rkAkRhU/Dt7dphAfIUyxtHpl/eBVip5uTNSpQJHylpAw==", 212 | "dev": true 213 | }, 214 | "ajv": { 215 | "version": "6.10.2", 216 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", 217 | "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", 218 | "dev": true, 219 | "requires": { 220 | "fast-deep-equal": "^2.0.1", 221 | "fast-json-stable-stringify": "^2.0.0", 222 | "json-schema-traverse": "^0.4.1", 223 | "uri-js": "^4.2.2" 224 | } 225 | }, 226 | "ansi-escapes": { 227 | "version": "3.2.0", 228 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", 229 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", 230 | "dev": true 231 | }, 232 | "ansi-regex": { 233 | "version": "3.0.0", 234 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 235 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 236 | "dev": true 237 | }, 238 | "ansi-styles": { 239 | "version": "3.2.1", 240 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 241 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 242 | "dev": true, 243 | "requires": { 244 | "color-convert": "^1.9.0" 245 | } 246 | }, 247 | "argparse": { 248 | "version": "1.0.10", 249 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 250 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 251 | "dev": true, 252 | "requires": { 253 | "sprintf-js": "~1.0.2" 254 | } 255 | }, 256 | "assertion-error": { 257 | "version": "1.1.0", 258 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 259 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 260 | "dev": true 261 | }, 262 | "astral-regex": { 263 | "version": "1.0.0", 264 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", 265 | "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", 266 | "dev": true 267 | }, 268 | "babel-helper-evaluate-path": { 269 | "version": "0.5.0", 270 | "resolved": "https://registry.npmjs.org/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.5.0.tgz", 271 | "integrity": "sha512-mUh0UhS607bGh5wUMAQfOpt2JX2ThXMtppHRdRU1kL7ZLRWIXxoV2UIV1r2cAeeNeU1M5SB5/RSUgUxrK8yOkA==", 272 | "dev": true 273 | }, 274 | "babel-helper-flip-expressions": { 275 | "version": "0.4.3", 276 | "resolved": "https://registry.npmjs.org/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.4.3.tgz", 277 | "integrity": "sha1-NpZzahKKwYvCUlS19AoizrPB0/0=", 278 | "dev": true 279 | }, 280 | "babel-helper-is-nodes-equiv": { 281 | "version": "0.0.1", 282 | "resolved": "https://registry.npmjs.org/babel-helper-is-nodes-equiv/-/babel-helper-is-nodes-equiv-0.0.1.tgz", 283 | "integrity": "sha1-NOmzALFHnd2Y7HfqC76TQt/jloQ=", 284 | "dev": true 285 | }, 286 | "babel-helper-is-void-0": { 287 | "version": "0.4.3", 288 | "resolved": "https://registry.npmjs.org/babel-helper-is-void-0/-/babel-helper-is-void-0-0.4.3.tgz", 289 | "integrity": "sha1-fZwBtFYee5Xb2g9u7kj1tg5nMT4=", 290 | "dev": true 291 | }, 292 | "babel-helper-mark-eval-scopes": { 293 | "version": "0.4.3", 294 | "resolved": "https://registry.npmjs.org/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.4.3.tgz", 295 | "integrity": "sha1-0kSjvvmESHJgP/tG4izorN9VFWI=", 296 | "dev": true 297 | }, 298 | "babel-helper-remove-or-void": { 299 | "version": "0.4.3", 300 | "resolved": "https://registry.npmjs.org/babel-helper-remove-or-void/-/babel-helper-remove-or-void-0.4.3.tgz", 301 | "integrity": "sha1-pPA7QAd6D/6I5F0HAQ3uJB/1rmA=", 302 | "dev": true 303 | }, 304 | "babel-helper-to-multiple-sequence-expressions": { 305 | "version": "0.5.0", 306 | "resolved": "https://registry.npmjs.org/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.5.0.tgz", 307 | "integrity": "sha512-m2CvfDW4+1qfDdsrtf4dwOslQC3yhbgyBFptncp4wvtdrDHqueW7slsYv4gArie056phvQFhT2nRcGS4bnm6mA==", 308 | "dev": true 309 | }, 310 | "babel-plugin-minify-builtins": { 311 | "version": "0.5.0", 312 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-builtins/-/babel-plugin-minify-builtins-0.5.0.tgz", 313 | "integrity": "sha512-wpqbN7Ov5hsNwGdzuzvFcjgRlzbIeVv1gMIlICbPj0xkexnfoIDe7q+AZHMkQmAE/F9R5jkrB6TLfTegImlXag==", 314 | "dev": true 315 | }, 316 | "babel-plugin-minify-constant-folding": { 317 | "version": "0.5.0", 318 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.5.0.tgz", 319 | "integrity": "sha512-Vj97CTn/lE9hR1D+jKUeHfNy+m1baNiJ1wJvoGyOBUx7F7kJqDZxr9nCHjO/Ad+irbR3HzR6jABpSSA29QsrXQ==", 320 | "dev": true, 321 | "requires": { 322 | "babel-helper-evaluate-path": "^0.5.0" 323 | } 324 | }, 325 | "babel-plugin-minify-dead-code-elimination": { 326 | "version": "0.5.1", 327 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.5.1.tgz", 328 | "integrity": "sha512-x8OJOZIrRmQBcSqxBcLbMIK8uPmTvNWPXH2bh5MDCW1latEqYiRMuUkPImKcfpo59pTUB2FT7HfcgtG8ZlR5Qg==", 329 | "dev": true, 330 | "requires": { 331 | "babel-helper-evaluate-path": "^0.5.0", 332 | "babel-helper-mark-eval-scopes": "^0.4.3", 333 | "babel-helper-remove-or-void": "^0.4.3", 334 | "lodash": "^4.17.11" 335 | } 336 | }, 337 | "babel-plugin-minify-flip-comparisons": { 338 | "version": "0.4.3", 339 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-flip-comparisons/-/babel-plugin-minify-flip-comparisons-0.4.3.tgz", 340 | "integrity": "sha1-AMqHDLjxO0XAOLPB68DyJyk8llo=", 341 | "dev": true, 342 | "requires": { 343 | "babel-helper-is-void-0": "^0.4.3" 344 | } 345 | }, 346 | "babel-plugin-minify-guarded-expressions": { 347 | "version": "0.4.4", 348 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.4.4.tgz", 349 | "integrity": "sha512-RMv0tM72YuPPfLT9QLr3ix9nwUIq+sHT6z8Iu3sLbqldzC1Dls8DPCywzUIzkTx9Zh1hWX4q/m9BPoPed9GOfA==", 350 | "dev": true, 351 | "requires": { 352 | "babel-helper-evaluate-path": "^0.5.0", 353 | "babel-helper-flip-expressions": "^0.4.3" 354 | } 355 | }, 356 | "babel-plugin-minify-infinity": { 357 | "version": "0.4.3", 358 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-infinity/-/babel-plugin-minify-infinity-0.4.3.tgz", 359 | "integrity": "sha1-37h2obCKBldjhO8/kuZTumB7Oco=", 360 | "dev": true 361 | }, 362 | "babel-plugin-minify-mangle-names": { 363 | "version": "0.5.0", 364 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.5.0.tgz", 365 | "integrity": "sha512-3jdNv6hCAw6fsX1p2wBGPfWuK69sfOjfd3zjUXkbq8McbohWy23tpXfy5RnToYWggvqzuMOwlId1PhyHOfgnGw==", 366 | "dev": true, 367 | "requires": { 368 | "babel-helper-mark-eval-scopes": "^0.4.3" 369 | } 370 | }, 371 | "babel-plugin-minify-numeric-literals": { 372 | "version": "0.4.3", 373 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-numeric-literals/-/babel-plugin-minify-numeric-literals-0.4.3.tgz", 374 | "integrity": "sha1-jk/VYcefeAEob/YOjF/Z3u6TwLw=", 375 | "dev": true 376 | }, 377 | "babel-plugin-minify-replace": { 378 | "version": "0.5.0", 379 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.5.0.tgz", 380 | "integrity": "sha512-aXZiaqWDNUbyNNNpWs/8NyST+oU7QTpK7J9zFEFSA0eOmtUNMU3fczlTTTlnCxHmq/jYNFEmkkSG3DDBtW3Y4Q==", 381 | "dev": true 382 | }, 383 | "babel-plugin-minify-simplify": { 384 | "version": "0.5.1", 385 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.1.tgz", 386 | "integrity": "sha512-OSYDSnoCxP2cYDMk9gxNAed6uJDiDz65zgL6h8d3tm8qXIagWGMLWhqysT6DY3Vs7Fgq7YUDcjOomhVUb+xX6A==", 387 | "dev": true, 388 | "requires": { 389 | "babel-helper-evaluate-path": "^0.5.0", 390 | "babel-helper-flip-expressions": "^0.4.3", 391 | "babel-helper-is-nodes-equiv": "^0.0.1", 392 | "babel-helper-to-multiple-sequence-expressions": "^0.5.0" 393 | } 394 | }, 395 | "babel-plugin-minify-type-constructors": { 396 | "version": "0.4.3", 397 | "resolved": "https://registry.npmjs.org/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.4.3.tgz", 398 | "integrity": "sha1-G8bxW4f3qxCF1CszC3F2V6IVZQA=", 399 | "dev": true, 400 | "requires": { 401 | "babel-helper-is-void-0": "^0.4.3" 402 | } 403 | }, 404 | "babel-plugin-transform-inline-consecutive-adds": { 405 | "version": "0.4.3", 406 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.4.3.tgz", 407 | "integrity": "sha1-Mj1Ho+pjqDp6w8gRro5pQfrysNE=", 408 | "dev": true 409 | }, 410 | "babel-plugin-transform-member-expression-literals": { 411 | "version": "6.9.4", 412 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.9.4.tgz", 413 | "integrity": "sha1-NwOcmgwzE6OUlfqsL/OmtbnQOL8=", 414 | "dev": true 415 | }, 416 | "babel-plugin-transform-merge-sibling-variables": { 417 | "version": "6.9.4", 418 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.9.4.tgz", 419 | "integrity": "sha1-hbQi/DN3tEnJ0c3kQIcgNTJAHa4=", 420 | "dev": true 421 | }, 422 | "babel-plugin-transform-minify-booleans": { 423 | "version": "6.9.4", 424 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.9.4.tgz", 425 | "integrity": "sha1-rLs+VqNVXdI5KOS1gtKFFi3SsZg=", 426 | "dev": true 427 | }, 428 | "babel-plugin-transform-property-literals": { 429 | "version": "6.9.4", 430 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.9.4.tgz", 431 | "integrity": "sha1-mMHSHiVXNlc/k+zlRFn2ziSYXTk=", 432 | "dev": true, 433 | "requires": { 434 | "esutils": "^2.0.2" 435 | } 436 | }, 437 | "babel-plugin-transform-regexp-constructors": { 438 | "version": "0.4.3", 439 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.4.3.tgz", 440 | "integrity": "sha1-WLd3W2OvzzMyj66aX4j71PsLSWU=", 441 | "dev": true 442 | }, 443 | "babel-plugin-transform-remove-console": { 444 | "version": "6.9.4", 445 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz", 446 | "integrity": "sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=", 447 | "dev": true 448 | }, 449 | "babel-plugin-transform-remove-debugger": { 450 | "version": "6.9.4", 451 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.9.4.tgz", 452 | "integrity": "sha1-QrcnYxyXl44estGZp67IShgznvI=", 453 | "dev": true 454 | }, 455 | "babel-plugin-transform-remove-undefined": { 456 | "version": "0.5.0", 457 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.5.0.tgz", 458 | "integrity": "sha512-+M7fJYFaEE/M9CXa0/IRkDbiV3wRELzA1kKQFCJ4ifhrzLKn/9VCCgj9OFmYWwBd8IB48YdgPkHYtbYq+4vtHQ==", 459 | "dev": true, 460 | "requires": { 461 | "babel-helper-evaluate-path": "^0.5.0" 462 | } 463 | }, 464 | "babel-plugin-transform-simplify-comparison-operators": { 465 | "version": "6.9.4", 466 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.9.4.tgz", 467 | "integrity": "sha1-9ir+CWyrDh9ootdT/fKDiIRxzrk=", 468 | "dev": true 469 | }, 470 | "babel-plugin-transform-undefined-to-void": { 471 | "version": "6.9.4", 472 | "resolved": "https://registry.npmjs.org/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.9.4.tgz", 473 | "integrity": "sha1-viQcqBQEAwZ4t0hxcyK4nQyP4oA=", 474 | "dev": true 475 | }, 476 | "babel-preset-minify": { 477 | "version": "0.5.1", 478 | "resolved": "https://registry.npmjs.org/babel-preset-minify/-/babel-preset-minify-0.5.1.tgz", 479 | "integrity": "sha512-1IajDumYOAPYImkHbrKeiN5AKKP9iOmRoO2IPbIuVp0j2iuCcj0n7P260z38siKMZZ+85d3mJZdtW8IgOv+Tzg==", 480 | "dev": true, 481 | "requires": { 482 | "babel-plugin-minify-builtins": "^0.5.0", 483 | "babel-plugin-minify-constant-folding": "^0.5.0", 484 | "babel-plugin-minify-dead-code-elimination": "^0.5.1", 485 | "babel-plugin-minify-flip-comparisons": "^0.4.3", 486 | "babel-plugin-minify-guarded-expressions": "^0.4.4", 487 | "babel-plugin-minify-infinity": "^0.4.3", 488 | "babel-plugin-minify-mangle-names": "^0.5.0", 489 | "babel-plugin-minify-numeric-literals": "^0.4.3", 490 | "babel-plugin-minify-replace": "^0.5.0", 491 | "babel-plugin-minify-simplify": "^0.5.1", 492 | "babel-plugin-minify-type-constructors": "^0.4.3", 493 | "babel-plugin-transform-inline-consecutive-adds": "^0.4.3", 494 | "babel-plugin-transform-member-expression-literals": "^6.9.4", 495 | "babel-plugin-transform-merge-sibling-variables": "^6.9.4", 496 | "babel-plugin-transform-minify-booleans": "^6.9.4", 497 | "babel-plugin-transform-property-literals": "^6.9.4", 498 | "babel-plugin-transform-regexp-constructors": "^0.4.3", 499 | "babel-plugin-transform-remove-console": "^6.9.4", 500 | "babel-plugin-transform-remove-debugger": "^6.9.4", 501 | "babel-plugin-transform-remove-undefined": "^0.5.0", 502 | "babel-plugin-transform-simplify-comparison-operators": "^6.9.4", 503 | "babel-plugin-transform-undefined-to-void": "^6.9.4", 504 | "lodash": "^4.17.11" 505 | } 506 | }, 507 | "balanced-match": { 508 | "version": "1.0.0", 509 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 510 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 511 | "dev": true 512 | }, 513 | "brace-expansion": { 514 | "version": "1.1.11", 515 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 516 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 517 | "dev": true, 518 | "requires": { 519 | "balanced-match": "^1.0.0", 520 | "concat-map": "0.0.1" 521 | } 522 | }, 523 | "browser-stdout": { 524 | "version": "1.3.1", 525 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 526 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 527 | "dev": true 528 | }, 529 | "callsites": { 530 | "version": "3.1.0", 531 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 532 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 533 | "dev": true 534 | }, 535 | "chai": { 536 | "version": "4.2.0", 537 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", 538 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", 539 | "dev": true, 540 | "requires": { 541 | "assertion-error": "^1.1.0", 542 | "check-error": "^1.0.2", 543 | "deep-eql": "^3.0.1", 544 | "get-func-name": "^2.0.0", 545 | "pathval": "^1.1.0", 546 | "type-detect": "^4.0.5" 547 | } 548 | }, 549 | "chalk": { 550 | "version": "2.4.2", 551 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 552 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 553 | "dev": true, 554 | "requires": { 555 | "ansi-styles": "^3.2.1", 556 | "escape-string-regexp": "^1.0.5", 557 | "supports-color": "^5.3.0" 558 | } 559 | }, 560 | "chardet": { 561 | "version": "0.7.0", 562 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", 563 | "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", 564 | "dev": true 565 | }, 566 | "check-error": { 567 | "version": "1.0.2", 568 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 569 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 570 | "dev": true 571 | }, 572 | "cli-cursor": { 573 | "version": "2.1.0", 574 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", 575 | "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", 576 | "dev": true, 577 | "requires": { 578 | "restore-cursor": "^2.0.0" 579 | } 580 | }, 581 | "cli-width": { 582 | "version": "2.2.0", 583 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", 584 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", 585 | "dev": true 586 | }, 587 | "color-convert": { 588 | "version": "1.9.3", 589 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 590 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 591 | "dev": true, 592 | "requires": { 593 | "color-name": "1.1.3" 594 | } 595 | }, 596 | "color-name": { 597 | "version": "1.1.3", 598 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 599 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 600 | "dev": true 601 | }, 602 | "commander": { 603 | "version": "2.15.1", 604 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", 605 | "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", 606 | "dev": true 607 | }, 608 | "concat-map": { 609 | "version": "0.0.1", 610 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 611 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 612 | "dev": true 613 | }, 614 | "convert-source-map": { 615 | "version": "1.6.0", 616 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", 617 | "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", 618 | "dev": true, 619 | "requires": { 620 | "safe-buffer": "~5.1.1" 621 | } 622 | }, 623 | "cross-spawn": { 624 | "version": "6.0.5", 625 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 626 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 627 | "dev": true, 628 | "requires": { 629 | "nice-try": "^1.0.4", 630 | "path-key": "^2.0.1", 631 | "semver": "^5.5.0", 632 | "shebang-command": "^1.2.0", 633 | "which": "^1.2.9" 634 | } 635 | }, 636 | "debug": { 637 | "version": "4.1.1", 638 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 639 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 640 | "dev": true, 641 | "requires": { 642 | "ms": "^2.1.1" 643 | } 644 | }, 645 | "deep-eql": { 646 | "version": "3.0.1", 647 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 648 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 649 | "dev": true, 650 | "requires": { 651 | "type-detect": "^4.0.0" 652 | } 653 | }, 654 | "deep-is": { 655 | "version": "0.1.3", 656 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", 657 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", 658 | "dev": true 659 | }, 660 | "diff": { 661 | "version": "3.5.0", 662 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 663 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 664 | "dev": true 665 | }, 666 | "doctrine": { 667 | "version": "3.0.0", 668 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 669 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 670 | "dev": true, 671 | "requires": { 672 | "esutils": "^2.0.2" 673 | } 674 | }, 675 | "emoji-regex": { 676 | "version": "7.0.3", 677 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 678 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 679 | "dev": true 680 | }, 681 | "escape-string-regexp": { 682 | "version": "1.0.5", 683 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 684 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 685 | "dev": true 686 | }, 687 | "eslint": { 688 | "version": "5.16.0", 689 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.16.0.tgz", 690 | "integrity": "sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==", 691 | "dev": true, 692 | "requires": { 693 | "@babel/code-frame": "^7.0.0", 694 | "ajv": "^6.9.1", 695 | "chalk": "^2.1.0", 696 | "cross-spawn": "^6.0.5", 697 | "debug": "^4.0.1", 698 | "doctrine": "^3.0.0", 699 | "eslint-scope": "^4.0.3", 700 | "eslint-utils": "^1.3.1", 701 | "eslint-visitor-keys": "^1.0.0", 702 | "espree": "^5.0.1", 703 | "esquery": "^1.0.1", 704 | "esutils": "^2.0.2", 705 | "file-entry-cache": "^5.0.1", 706 | "functional-red-black-tree": "^1.0.1", 707 | "glob": "^7.1.2", 708 | "globals": "^11.7.0", 709 | "ignore": "^4.0.6", 710 | "import-fresh": "^3.0.0", 711 | "imurmurhash": "^0.1.4", 712 | "inquirer": "^6.2.2", 713 | "js-yaml": "^3.13.0", 714 | "json-stable-stringify-without-jsonify": "^1.0.1", 715 | "levn": "^0.3.0", 716 | "lodash": "^4.17.11", 717 | "minimatch": "^3.0.4", 718 | "mkdirp": "^0.5.1", 719 | "natural-compare": "^1.4.0", 720 | "optionator": "^0.8.2", 721 | "path-is-inside": "^1.0.2", 722 | "progress": "^2.0.0", 723 | "regexpp": "^2.0.1", 724 | "semver": "^5.5.1", 725 | "strip-ansi": "^4.0.0", 726 | "strip-json-comments": "^2.0.1", 727 | "table": "^5.2.3", 728 | "text-table": "^0.2.0" 729 | } 730 | }, 731 | "eslint-scope": { 732 | "version": "4.0.3", 733 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", 734 | "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", 735 | "dev": true, 736 | "requires": { 737 | "esrecurse": "^4.1.0", 738 | "estraverse": "^4.1.1" 739 | } 740 | }, 741 | "eslint-utils": { 742 | "version": "1.4.2", 743 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.2.tgz", 744 | "integrity": "sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q==", 745 | "dev": true, 746 | "requires": { 747 | "eslint-visitor-keys": "^1.0.0" 748 | } 749 | }, 750 | "eslint-visitor-keys": { 751 | "version": "1.1.0", 752 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", 753 | "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==", 754 | "dev": true 755 | }, 756 | "esm": { 757 | "version": "3.2.25", 758 | "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", 759 | "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", 760 | "dev": true 761 | }, 762 | "espree": { 763 | "version": "5.0.1", 764 | "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.1.tgz", 765 | "integrity": "sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==", 766 | "dev": true, 767 | "requires": { 768 | "acorn": "^6.0.7", 769 | "acorn-jsx": "^5.0.0", 770 | "eslint-visitor-keys": "^1.0.0" 771 | } 772 | }, 773 | "esprima": { 774 | "version": "4.0.1", 775 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 776 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 777 | "dev": true 778 | }, 779 | "esquery": { 780 | "version": "1.0.1", 781 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", 782 | "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", 783 | "dev": true, 784 | "requires": { 785 | "estraverse": "^4.0.0" 786 | } 787 | }, 788 | "esrecurse": { 789 | "version": "4.2.1", 790 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", 791 | "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", 792 | "dev": true, 793 | "requires": { 794 | "estraverse": "^4.1.0" 795 | } 796 | }, 797 | "estraverse": { 798 | "version": "4.3.0", 799 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 800 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 801 | "dev": true 802 | }, 803 | "esutils": { 804 | "version": "2.0.2", 805 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", 806 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", 807 | "dev": true 808 | }, 809 | "external-editor": { 810 | "version": "3.1.0", 811 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", 812 | "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", 813 | "dev": true, 814 | "requires": { 815 | "chardet": "^0.7.0", 816 | "iconv-lite": "^0.4.24", 817 | "tmp": "^0.0.33" 818 | } 819 | }, 820 | "fast-deep-equal": { 821 | "version": "2.0.1", 822 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 823 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", 824 | "dev": true 825 | }, 826 | "fast-json-stable-stringify": { 827 | "version": "2.0.0", 828 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 829 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", 830 | "dev": true 831 | }, 832 | "fast-levenshtein": { 833 | "version": "2.0.6", 834 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 835 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 836 | "dev": true 837 | }, 838 | "figures": { 839 | "version": "2.0.0", 840 | "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", 841 | "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", 842 | "dev": true, 843 | "requires": { 844 | "escape-string-regexp": "^1.0.5" 845 | } 846 | }, 847 | "file-entry-cache": { 848 | "version": "5.0.1", 849 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", 850 | "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", 851 | "dev": true, 852 | "requires": { 853 | "flat-cache": "^2.0.1" 854 | } 855 | }, 856 | "flat-cache": { 857 | "version": "2.0.1", 858 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", 859 | "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", 860 | "dev": true, 861 | "requires": { 862 | "flatted": "^2.0.0", 863 | "rimraf": "2.6.3", 864 | "write": "1.0.3" 865 | } 866 | }, 867 | "flatted": { 868 | "version": "2.0.1", 869 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", 870 | "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", 871 | "dev": true 872 | }, 873 | "fs.realpath": { 874 | "version": "1.0.0", 875 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 876 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 877 | "dev": true 878 | }, 879 | "functional-red-black-tree": { 880 | "version": "1.0.1", 881 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 882 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 883 | "dev": true 884 | }, 885 | "get-func-name": { 886 | "version": "2.0.0", 887 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 888 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 889 | "dev": true 890 | }, 891 | "glob": { 892 | "version": "7.1.4", 893 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 894 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 895 | "dev": true, 896 | "requires": { 897 | "fs.realpath": "^1.0.0", 898 | "inflight": "^1.0.4", 899 | "inherits": "2", 900 | "minimatch": "^3.0.4", 901 | "once": "^1.3.0", 902 | "path-is-absolute": "^1.0.0" 903 | } 904 | }, 905 | "globals": { 906 | "version": "11.9.0", 907 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.9.0.tgz", 908 | "integrity": "sha512-5cJVtyXWH8PiJPVLZzzoIizXx944O4OmRro5MWKx5fT4MgcN7OfaMutPeaTdJCCURwbWdhhcCWcKIffPnmTzBg==", 909 | "dev": true 910 | }, 911 | "growl": { 912 | "version": "1.10.5", 913 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 914 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 915 | "dev": true 916 | }, 917 | "has-flag": { 918 | "version": "3.0.0", 919 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 920 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 921 | "dev": true 922 | }, 923 | "he": { 924 | "version": "1.1.1", 925 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 926 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", 927 | "dev": true 928 | }, 929 | "iconv-lite": { 930 | "version": "0.4.24", 931 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 932 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 933 | "dev": true, 934 | "requires": { 935 | "safer-buffer": ">= 2.1.2 < 3" 936 | } 937 | }, 938 | "ignore": { 939 | "version": "4.0.6", 940 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", 941 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", 942 | "dev": true 943 | }, 944 | "import-fresh": { 945 | "version": "3.1.0", 946 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", 947 | "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", 948 | "dev": true, 949 | "requires": { 950 | "parent-module": "^1.0.0", 951 | "resolve-from": "^4.0.0" 952 | } 953 | }, 954 | "imurmurhash": { 955 | "version": "0.1.4", 956 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 957 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 958 | "dev": true 959 | }, 960 | "inflight": { 961 | "version": "1.0.6", 962 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 963 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 964 | "dev": true, 965 | "requires": { 966 | "once": "^1.3.0", 967 | "wrappy": "1" 968 | } 969 | }, 970 | "inherits": { 971 | "version": "2.0.3", 972 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 973 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 974 | "dev": true 975 | }, 976 | "inquirer": { 977 | "version": "6.5.2", 978 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", 979 | "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", 980 | "dev": true, 981 | "requires": { 982 | "ansi-escapes": "^3.2.0", 983 | "chalk": "^2.4.2", 984 | "cli-cursor": "^2.1.0", 985 | "cli-width": "^2.0.0", 986 | "external-editor": "^3.0.3", 987 | "figures": "^2.0.0", 988 | "lodash": "^4.17.12", 989 | "mute-stream": "0.0.7", 990 | "run-async": "^2.2.0", 991 | "rxjs": "^6.4.0", 992 | "string-width": "^2.1.0", 993 | "strip-ansi": "^5.1.0", 994 | "through": "^2.3.6" 995 | }, 996 | "dependencies": { 997 | "ansi-regex": { 998 | "version": "4.1.0", 999 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1000 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1001 | "dev": true 1002 | }, 1003 | "strip-ansi": { 1004 | "version": "5.2.0", 1005 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1006 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1007 | "dev": true, 1008 | "requires": { 1009 | "ansi-regex": "^4.1.0" 1010 | } 1011 | } 1012 | } 1013 | }, 1014 | "is-fullwidth-code-point": { 1015 | "version": "2.0.0", 1016 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1017 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1018 | "dev": true 1019 | }, 1020 | "is-promise": { 1021 | "version": "2.1.0", 1022 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", 1023 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", 1024 | "dev": true 1025 | }, 1026 | "isexe": { 1027 | "version": "2.0.0", 1028 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1029 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1030 | "dev": true 1031 | }, 1032 | "js-tokens": { 1033 | "version": "4.0.0", 1034 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1035 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1036 | "dev": true 1037 | }, 1038 | "js-yaml": { 1039 | "version": "3.13.1", 1040 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 1041 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 1042 | "dev": true, 1043 | "requires": { 1044 | "argparse": "^1.0.7", 1045 | "esprima": "^4.0.0" 1046 | } 1047 | }, 1048 | "jsesc": { 1049 | "version": "2.5.2", 1050 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", 1051 | "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", 1052 | "dev": true 1053 | }, 1054 | "json-schema-traverse": { 1055 | "version": "0.4.1", 1056 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1057 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1058 | "dev": true 1059 | }, 1060 | "json-stable-stringify-without-jsonify": { 1061 | "version": "1.0.1", 1062 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1063 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", 1064 | "dev": true 1065 | }, 1066 | "json5": { 1067 | "version": "2.1.0", 1068 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.0.tgz", 1069 | "integrity": "sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ==", 1070 | "dev": true, 1071 | "requires": { 1072 | "minimist": "^1.2.0" 1073 | }, 1074 | "dependencies": { 1075 | "minimist": { 1076 | "version": "1.2.0", 1077 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1078 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", 1079 | "dev": true 1080 | } 1081 | } 1082 | }, 1083 | "levn": { 1084 | "version": "0.3.0", 1085 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", 1086 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", 1087 | "dev": true, 1088 | "requires": { 1089 | "prelude-ls": "~1.1.2", 1090 | "type-check": "~0.3.2" 1091 | } 1092 | }, 1093 | "lodash": { 1094 | "version": "4.17.21", 1095 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1096 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 1097 | "dev": true 1098 | }, 1099 | "mimic-fn": { 1100 | "version": "1.2.0", 1101 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", 1102 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", 1103 | "dev": true 1104 | }, 1105 | "minimatch": { 1106 | "version": "3.0.4", 1107 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1108 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1109 | "dev": true, 1110 | "requires": { 1111 | "brace-expansion": "^1.1.7" 1112 | } 1113 | }, 1114 | "minimist": { 1115 | "version": "0.0.8", 1116 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1117 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 1118 | "dev": true 1119 | }, 1120 | "mkdirp": { 1121 | "version": "0.5.1", 1122 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1123 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1124 | "dev": true, 1125 | "requires": { 1126 | "minimist": "0.0.8" 1127 | } 1128 | }, 1129 | "mocha": { 1130 | "version": "5.2.0", 1131 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", 1132 | "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", 1133 | "dev": true, 1134 | "requires": { 1135 | "browser-stdout": "1.3.1", 1136 | "commander": "2.15.1", 1137 | "debug": "3.1.0", 1138 | "diff": "3.5.0", 1139 | "escape-string-regexp": "1.0.5", 1140 | "glob": "7.1.2", 1141 | "growl": "1.10.5", 1142 | "he": "1.1.1", 1143 | "minimatch": "3.0.4", 1144 | "mkdirp": "0.5.1", 1145 | "supports-color": "5.4.0" 1146 | }, 1147 | "dependencies": { 1148 | "debug": { 1149 | "version": "3.1.0", 1150 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1151 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1152 | "dev": true, 1153 | "requires": { 1154 | "ms": "2.0.0" 1155 | } 1156 | }, 1157 | "glob": { 1158 | "version": "7.1.2", 1159 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 1160 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", 1161 | "dev": true, 1162 | "requires": { 1163 | "fs.realpath": "^1.0.0", 1164 | "inflight": "^1.0.4", 1165 | "inherits": "2", 1166 | "minimatch": "^3.0.4", 1167 | "once": "^1.3.0", 1168 | "path-is-absolute": "^1.0.0" 1169 | } 1170 | }, 1171 | "ms": { 1172 | "version": "2.0.0", 1173 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1174 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1175 | "dev": true 1176 | }, 1177 | "supports-color": { 1178 | "version": "5.4.0", 1179 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", 1180 | "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", 1181 | "dev": true, 1182 | "requires": { 1183 | "has-flag": "^3.0.0" 1184 | } 1185 | } 1186 | } 1187 | }, 1188 | "ms": { 1189 | "version": "2.1.1", 1190 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1191 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 1192 | "dev": true 1193 | }, 1194 | "mute-stream": { 1195 | "version": "0.0.7", 1196 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", 1197 | "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", 1198 | "dev": true 1199 | }, 1200 | "natural-compare": { 1201 | "version": "1.4.0", 1202 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1203 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1204 | "dev": true 1205 | }, 1206 | "nice-try": { 1207 | "version": "1.0.5", 1208 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 1209 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 1210 | "dev": true 1211 | }, 1212 | "once": { 1213 | "version": "1.4.0", 1214 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1215 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1216 | "dev": true, 1217 | "requires": { 1218 | "wrappy": "1" 1219 | } 1220 | }, 1221 | "onetime": { 1222 | "version": "2.0.1", 1223 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", 1224 | "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", 1225 | "dev": true, 1226 | "requires": { 1227 | "mimic-fn": "^1.0.0" 1228 | } 1229 | }, 1230 | "optionator": { 1231 | "version": "0.8.2", 1232 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", 1233 | "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", 1234 | "dev": true, 1235 | "requires": { 1236 | "deep-is": "~0.1.3", 1237 | "fast-levenshtein": "~2.0.4", 1238 | "levn": "~0.3.0", 1239 | "prelude-ls": "~1.1.2", 1240 | "type-check": "~0.3.2", 1241 | "wordwrap": "~1.0.0" 1242 | } 1243 | }, 1244 | "os-tmpdir": { 1245 | "version": "1.0.2", 1246 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1247 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", 1248 | "dev": true 1249 | }, 1250 | "parent-module": { 1251 | "version": "1.0.1", 1252 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1253 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1254 | "dev": true, 1255 | "requires": { 1256 | "callsites": "^3.0.0" 1257 | } 1258 | }, 1259 | "path-is-absolute": { 1260 | "version": "1.0.1", 1261 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1262 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1263 | "dev": true 1264 | }, 1265 | "path-is-inside": { 1266 | "version": "1.0.2", 1267 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", 1268 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", 1269 | "dev": true 1270 | }, 1271 | "path-key": { 1272 | "version": "2.0.1", 1273 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1274 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 1275 | "dev": true 1276 | }, 1277 | "path-parse": { 1278 | "version": "1.0.7", 1279 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1280 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1281 | "dev": true 1282 | }, 1283 | "pathval": { 1284 | "version": "1.1.0", 1285 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", 1286 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", 1287 | "dev": true 1288 | }, 1289 | "prelude-ls": { 1290 | "version": "1.1.2", 1291 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", 1292 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", 1293 | "dev": true 1294 | }, 1295 | "progress": { 1296 | "version": "2.0.3", 1297 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1298 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1299 | "dev": true 1300 | }, 1301 | "punycode": { 1302 | "version": "2.1.1", 1303 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1304 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1305 | "dev": true 1306 | }, 1307 | "regexpp": { 1308 | "version": "2.0.1", 1309 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", 1310 | "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", 1311 | "dev": true 1312 | }, 1313 | "resolve": { 1314 | "version": "1.12.0", 1315 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", 1316 | "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", 1317 | "dev": true, 1318 | "requires": { 1319 | "path-parse": "^1.0.6" 1320 | } 1321 | }, 1322 | "resolve-from": { 1323 | "version": "4.0.0", 1324 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1325 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1326 | "dev": true 1327 | }, 1328 | "restore-cursor": { 1329 | "version": "2.0.0", 1330 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", 1331 | "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", 1332 | "dev": true, 1333 | "requires": { 1334 | "onetime": "^2.0.0", 1335 | "signal-exit": "^3.0.2" 1336 | } 1337 | }, 1338 | "rimraf": { 1339 | "version": "2.6.3", 1340 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 1341 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 1342 | "dev": true, 1343 | "requires": { 1344 | "glob": "^7.1.3" 1345 | } 1346 | }, 1347 | "rollup": { 1348 | "version": "1.20.3", 1349 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.20.3.tgz", 1350 | "integrity": "sha512-/OMCkY0c6E8tleeVm4vQVDz24CkVgvueK3r8zTYu2AQNpjrcaPwO9hE+pWj5LTFrvvkaxt4MYIp2zha4y0lRvg==", 1351 | "dev": true, 1352 | "requires": { 1353 | "@types/estree": "0.0.39", 1354 | "@types/node": "^12.7.2", 1355 | "acorn": "^7.0.0" 1356 | }, 1357 | "dependencies": { 1358 | "acorn": { 1359 | "version": "7.0.0", 1360 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.0.0.tgz", 1361 | "integrity": "sha512-PaF/MduxijYYt7unVGRuds1vBC9bFxbNf+VWqhOClfdgy7RlVkQqt610ig1/yxTgsDIfW1cWDel5EBbOy3jdtQ==", 1362 | "dev": true 1363 | } 1364 | } 1365 | }, 1366 | "rollup-plugin-babel-minify": { 1367 | "version": "9.0.0", 1368 | "resolved": "https://registry.npmjs.org/rollup-plugin-babel-minify/-/rollup-plugin-babel-minify-9.0.0.tgz", 1369 | "integrity": "sha512-5aJVWpuoZUbQrIaRF7Jvjo7bBnYqaChOhrhsGtz72wJ3lyo7ygIL85hsuPkvrk/3Fj5AUlNZV3IaSZ98fHyoTw==", 1370 | "dev": true, 1371 | "requires": { 1372 | "@babel/core": "^7.4.5", 1373 | "@babel/plugin-syntax-dynamic-import": "^7.2.0", 1374 | "@comandeer/babel-plugin-banner": "^5.0.0", 1375 | "babel-preset-minify": "^0.5.0", 1376 | "sourcemap-codec": "^1.4.4" 1377 | } 1378 | }, 1379 | "run-async": { 1380 | "version": "2.3.0", 1381 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", 1382 | "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", 1383 | "dev": true, 1384 | "requires": { 1385 | "is-promise": "^2.1.0" 1386 | } 1387 | }, 1388 | "rxjs": { 1389 | "version": "6.5.2", 1390 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.2.tgz", 1391 | "integrity": "sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg==", 1392 | "dev": true, 1393 | "requires": { 1394 | "tslib": "^1.9.0" 1395 | } 1396 | }, 1397 | "safe-buffer": { 1398 | "version": "5.1.2", 1399 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1400 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1401 | "dev": true 1402 | }, 1403 | "safer-buffer": { 1404 | "version": "2.1.2", 1405 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1406 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1407 | "dev": true 1408 | }, 1409 | "semver": { 1410 | "version": "5.6.0", 1411 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", 1412 | "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", 1413 | "dev": true 1414 | }, 1415 | "shebang-command": { 1416 | "version": "1.2.0", 1417 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1418 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1419 | "dev": true, 1420 | "requires": { 1421 | "shebang-regex": "^1.0.0" 1422 | } 1423 | }, 1424 | "shebang-regex": { 1425 | "version": "1.0.0", 1426 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1427 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 1428 | "dev": true 1429 | }, 1430 | "signal-exit": { 1431 | "version": "3.0.2", 1432 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 1433 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 1434 | "dev": true 1435 | }, 1436 | "slice-ansi": { 1437 | "version": "2.1.0", 1438 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", 1439 | "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", 1440 | "dev": true, 1441 | "requires": { 1442 | "ansi-styles": "^3.2.0", 1443 | "astral-regex": "^1.0.0", 1444 | "is-fullwidth-code-point": "^2.0.0" 1445 | } 1446 | }, 1447 | "source-map": { 1448 | "version": "0.5.7", 1449 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 1450 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", 1451 | "dev": true 1452 | }, 1453 | "sourcemap-codec": { 1454 | "version": "1.4.6", 1455 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.6.tgz", 1456 | "integrity": "sha512-1ZooVLYFxC448piVLBbtOxFcXwnymH9oUF8nRd3CuYDVvkRBxRl6pB4Mtas5a4drtL+E8LDgFkQNcgIw6tc8Hg==", 1457 | "dev": true 1458 | }, 1459 | "sprintf-js": { 1460 | "version": "1.0.3", 1461 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1462 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1463 | "dev": true 1464 | }, 1465 | "string-width": { 1466 | "version": "2.1.1", 1467 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1468 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1469 | "dev": true, 1470 | "requires": { 1471 | "is-fullwidth-code-point": "^2.0.0", 1472 | "strip-ansi": "^4.0.0" 1473 | } 1474 | }, 1475 | "strip-ansi": { 1476 | "version": "4.0.0", 1477 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1478 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1479 | "dev": true, 1480 | "requires": { 1481 | "ansi-regex": "^3.0.0" 1482 | } 1483 | }, 1484 | "strip-json-comments": { 1485 | "version": "2.0.1", 1486 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1487 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1488 | "dev": true 1489 | }, 1490 | "supports-color": { 1491 | "version": "5.5.0", 1492 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1493 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1494 | "dev": true, 1495 | "requires": { 1496 | "has-flag": "^3.0.0" 1497 | } 1498 | }, 1499 | "table": { 1500 | "version": "5.4.6", 1501 | "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", 1502 | "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", 1503 | "dev": true, 1504 | "requires": { 1505 | "ajv": "^6.10.2", 1506 | "lodash": "^4.17.14", 1507 | "slice-ansi": "^2.1.0", 1508 | "string-width": "^3.0.0" 1509 | }, 1510 | "dependencies": { 1511 | "ansi-regex": { 1512 | "version": "4.1.0", 1513 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1514 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1515 | "dev": true 1516 | }, 1517 | "string-width": { 1518 | "version": "3.1.0", 1519 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1520 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1521 | "dev": true, 1522 | "requires": { 1523 | "emoji-regex": "^7.0.1", 1524 | "is-fullwidth-code-point": "^2.0.0", 1525 | "strip-ansi": "^5.1.0" 1526 | } 1527 | }, 1528 | "strip-ansi": { 1529 | "version": "5.2.0", 1530 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1531 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1532 | "dev": true, 1533 | "requires": { 1534 | "ansi-regex": "^4.1.0" 1535 | } 1536 | } 1537 | } 1538 | }, 1539 | "text-table": { 1540 | "version": "0.2.0", 1541 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1542 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 1543 | "dev": true 1544 | }, 1545 | "through": { 1546 | "version": "2.3.8", 1547 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1548 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 1549 | "dev": true 1550 | }, 1551 | "tmp": { 1552 | "version": "0.0.33", 1553 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 1554 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 1555 | "dev": true, 1556 | "requires": { 1557 | "os-tmpdir": "~1.0.2" 1558 | } 1559 | }, 1560 | "to-fast-properties": { 1561 | "version": "2.0.0", 1562 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", 1563 | "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", 1564 | "dev": true 1565 | }, 1566 | "trim-right": { 1567 | "version": "1.0.1", 1568 | "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", 1569 | "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", 1570 | "dev": true 1571 | }, 1572 | "tslib": { 1573 | "version": "1.10.0", 1574 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 1575 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", 1576 | "dev": true 1577 | }, 1578 | "type-check": { 1579 | "version": "0.3.2", 1580 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", 1581 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", 1582 | "dev": true, 1583 | "requires": { 1584 | "prelude-ls": "~1.1.2" 1585 | } 1586 | }, 1587 | "type-detect": { 1588 | "version": "4.0.8", 1589 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 1590 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 1591 | "dev": true 1592 | }, 1593 | "uri-js": { 1594 | "version": "4.2.2", 1595 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 1596 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 1597 | "dev": true, 1598 | "requires": { 1599 | "punycode": "^2.1.0" 1600 | } 1601 | }, 1602 | "which": { 1603 | "version": "1.3.1", 1604 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1605 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1606 | "dev": true, 1607 | "requires": { 1608 | "isexe": "^2.0.0" 1609 | } 1610 | }, 1611 | "wordwrap": { 1612 | "version": "1.0.0", 1613 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", 1614 | "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", 1615 | "dev": true 1616 | }, 1617 | "wrappy": { 1618 | "version": "1.0.2", 1619 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1620 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1621 | "dev": true 1622 | }, 1623 | "write": { 1624 | "version": "1.0.3", 1625 | "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", 1626 | "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", 1627 | "dev": true, 1628 | "requires": { 1629 | "mkdirp": "^0.5.1" 1630 | } 1631 | } 1632 | } 1633 | } 1634 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@humanwhocodes/eslint-simple-rule", 3 | "version": "0.1.1", 4 | "description": "A utility to create dead-simple ESLint rules.", 5 | "main": "dist/rule.cjs.js", 6 | "module": "dist/rule.js", 7 | "files": [ 8 | "dist" 9 | ], 10 | "scripts": { 11 | "build": "rollup -c", 12 | "prepare": "npm run build", 13 | "lint": "eslint src/ tests/", 14 | "test": "npm run lint && mocha -r esm tests/" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/humanwhocodes/eslint-simple-rule.git" 19 | }, 20 | "keywords": [ 21 | "eslint", 22 | "linter" 23 | ], 24 | "author": "Nicholas C. Zakas", 25 | "license": "Apache-2.0", 26 | "devDependencies": { 27 | "chai": "^4.2.0", 28 | "eslint": "^5.16.0", 29 | "esm": "^3.2.25", 30 | "mocha": "^5.2.0", 31 | "rollup": "^1.20.3", 32 | "rollup-plugin-babel-minify": "^9.0.0" 33 | } 34 | } -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import minify from "rollup-plugin-babel-minify"; 2 | 3 | export default [ 4 | { 5 | input: "src/rule.js", 6 | output: [ 7 | { 8 | file: "dist/rule.cjs.js", 9 | format: "cjs" 10 | }, 11 | { 12 | file: "dist/rule.js", 13 | format: "esm" 14 | } 15 | ] 16 | }, 17 | { 18 | input: "src/rule.js", 19 | plugins: [minify({ 20 | comments: false 21 | })], 22 | output: { 23 | file: "dist/rule.min.js", 24 | format: "esm" 25 | } 26 | } 27 | ]; 28 | -------------------------------------------------------------------------------- /src/rule.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @fileoverview A utility for creating simple ESLint rules. 3 | */ 4 | 5 | /** 6 | * Creates an ESLint rule that warns when certain esquery selectors are found. 7 | * @param {Object} config An object whose keys are esquery selectors of nodes 8 | * to match and whose values are messages to display when nodes matching 9 | * those queries are found. 10 | * @returns {Object} An ESLint rule. 11 | */ 12 | export function rule(config) { 13 | 14 | if (typeof config !== "object" || config === null) { 15 | throw new TypeError("rule() requires an object argument."); 16 | } 17 | 18 | return { 19 | meta: {}, 20 | create(context) { 21 | const ruleConfig = {}; 22 | 23 | Object.keys(config).forEach(key => { 24 | ruleConfig[key] = node => { 25 | context.report({ 26 | node, 27 | message: config[key] 28 | }); 29 | }; 30 | }); 31 | 32 | return ruleConfig; 33 | } 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /tests/rule.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @fileoverview Tests for the rule function. 3 | */ 4 | /*global describe, it*/ 5 | 6 | //----------------------------------------------------------------------------- 7 | // Requirements 8 | //----------------------------------------------------------------------------- 9 | 10 | import { rule } from "../src/rule.js"; 11 | import { assert } from "chai"; 12 | import { RuleTester } from "eslint"; 13 | 14 | //----------------------------------------------------------------------------- 15 | // Tests 16 | //----------------------------------------------------------------------------- 17 | 18 | describe("rule", () => { 19 | 20 | const ruleTester = new RuleTester({ 21 | parserOptions: { 22 | ecmaVersion: 2019 23 | } 24 | }); 25 | 26 | describe("rule()", () => { 27 | 28 | it("should throw an error when the argument is missing", () => { 29 | assert.throws(() => { 30 | rule(); 31 | }, /rule\(\) requires an object argument/); 32 | }); 33 | 34 | it("should throw an error when the argument is null", () => { 35 | assert.throws(() => { 36 | rule(null); 37 | }, /rule\(\) requires an object argument/); 38 | }); 39 | 40 | it("should throw an error when the argument is a string", () => { 41 | assert.throws(() => { 42 | rule("null"); 43 | }, /rule\(\) requires an object argument/); 44 | }); 45 | 46 | it("should warn when a matching node is found", () => { 47 | 48 | ruleTester.run("test-rule", rule({ 49 | "Literal[raw=\"null\"]": "Do not use null", 50 | "VariableDeclaration[kind=var]": "Use either 'let' or 'const' instead of 'var'." 51 | }), { 52 | valid: [ "let x = undefined", "let = 'null'" ], 53 | invalid: [ 54 | { 55 | code: "null", 56 | errors: [ 57 | { 58 | message: "Do not use null" 59 | } 60 | ] 61 | }, 62 | { 63 | code: "var x = 5;", 64 | errors: [ 65 | { 66 | message: "Use either 'let' or 'const' instead of 'var'." 67 | } 68 | ] 69 | } 70 | ] 71 | }); 72 | }); 73 | 74 | }); 75 | 76 | }); 77 | --------------------------------------------------------------------------------