├── .editorconfig ├── .gitignore ├── .npmrc ├── .travis.yml ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── rollup.config.js └── src ├── index.js ├── rules ├── react.js ├── security.js ├── style.js └── tests.js └── test-rules.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [{package.json,.*rc,*.yml}] 11 | indent_style = space 12 | indent_size = 2 13 | 14 | [*.md] 15 | trim_trailing_whitespace = false 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | !package-lock.json 2 | /node_modules 3 | npm-debug.log 4 | /index.js 5 | /test-rules.js 6 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | registry=https://registry.npmjs.org 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "8" 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # eslint-config-synacor 2 | 3 | [![npm](https://img.shields.io/npm/v/eslint-config-synacor.svg)](http://npm.im/eslint-config-synacor) 4 | [![Build Status](https://travis-ci.org/synacor/eslint-config-synacor.svg?branch=master)](https://travis-ci.org/synacor/eslint-config-synacor) 5 | ![Greenkeeper badge](https://badges.greenkeeper.io/synacor/eslint-config-synacor.svg) 6 | [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsynacor%2Feslint-config-synacor.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsynacor%2Feslint-config-synacor?ref=badge_shield) 7 | 8 | Standard eslint rules for all Synacor javascript projects 9 | 10 | # Use these rules in your project 11 | 12 | ## Installation 13 | Add eslint-config-synacor as a development dependency for your project: `npm i -D eslint-config-synacor` 14 | 15 | If you aren't already including eslint with your project, install that as a development dependency as well: `npm i -D eslint`. 16 | 17 | ## Configuration 18 | ### `package.json` 19 | To specify for your entire project to use the global rules, add this as a clause in your `package.json` file: 20 | ```` 21 | "eslintConfig": { 22 | "extends": "eslint-config-synacor" 23 | }, 24 | ```` 25 | 26 | ### `.eslintrc` 27 | Optionally (or in addition to your package.json setup), to specify to use the global rules in all subdirectories of a given directory, you can create a `.eslintrc` file with the contents 28 | ```` 29 | { 30 | extends: 'eslint-config-synacor' 31 | } 32 | ```` 33 | 34 | ### Add/Override Rules For Tests `test/.eslintrc` 35 | There are a set of overrides/rules for directories that contain unit tests. These are available in the `test-rules` submodule of the package. You can reference them via `estlint-config-synacor/test-rules`. So, to apply these as overrides in your `tests/` directory, you would create a `.eslintrc` file in `tests/`. The contents of that file would look like: 36 | 37 | ```` 38 | { 39 | extends: 'eslint-config-synacor/test-rules' 40 | } 41 | 42 | ```` 43 | 44 | # Developing 45 | All rule definition files are in [`src/rules`](src/rules). Edit/create rule files there. 46 | 47 | Rules that are meant to be used for an entire project should go in files that are included by [`src/index.js`](src/index.js). 48 | 49 | Rules that are only meant to be run/overriden in test directories of a project should be included by [`src/test-rules.js`](src/test-rules.js). 50 | 51 | 52 | ## License 53 | [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsynacor%2Feslint-config-synacor.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsynacor%2Feslint-config-synacor?ref=badge_large) -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eslint-config-synacor", 3 | "version": "3.0.5", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.8.3", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", 10 | "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", 11 | "requires": { 12 | "@babel/highlight": "^7.8.3" 13 | } 14 | }, 15 | "@babel/generator": { 16 | "version": "7.9.4", 17 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.4.tgz", 18 | "integrity": "sha512-rjP8ahaDy/ouhrvCoU1E5mqaitWrxwuNGU+dy1EpaoK48jZay4MdkskKGIMHLZNewg8sAsqpGSREJwP0zH3YQA==", 19 | "requires": { 20 | "@babel/types": "^7.9.0", 21 | "jsesc": "^2.5.1", 22 | "lodash": "^4.17.13", 23 | "source-map": "^0.5.0" 24 | } 25 | }, 26 | "@babel/helper-function-name": { 27 | "version": "7.8.3", 28 | "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", 29 | "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", 30 | "requires": { 31 | "@babel/helper-get-function-arity": "^7.8.3", 32 | "@babel/template": "^7.8.3", 33 | "@babel/types": "^7.8.3" 34 | } 35 | }, 36 | "@babel/helper-get-function-arity": { 37 | "version": "7.8.3", 38 | "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", 39 | "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", 40 | "requires": { 41 | "@babel/types": "^7.8.3" 42 | } 43 | }, 44 | "@babel/helper-split-export-declaration": { 45 | "version": "7.8.3", 46 | "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", 47 | "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", 48 | "requires": { 49 | "@babel/types": "^7.8.3" 50 | } 51 | }, 52 | "@babel/helper-validator-identifier": { 53 | "version": "7.9.0", 54 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0.tgz", 55 | "integrity": "sha512-6G8bQKjOh+of4PV/ThDm/rRqlU7+IGoJuofpagU5GlEl29Vv0RGqqt86ZGRV8ZuSOY3o+8yXl5y782SMcG7SHw==" 56 | }, 57 | "@babel/highlight": { 58 | "version": "7.9.0", 59 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", 60 | "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", 61 | "requires": { 62 | "@babel/helper-validator-identifier": "^7.9.0", 63 | "chalk": "^2.0.0", 64 | "js-tokens": "^4.0.0" 65 | } 66 | }, 67 | "@babel/parser": { 68 | "version": "7.9.4", 69 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.4.tgz", 70 | "integrity": "sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA==" 71 | }, 72 | "@babel/runtime-corejs3": { 73 | "version": "7.9.2", 74 | "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.9.2.tgz", 75 | "integrity": "sha512-HHxmgxbIzOfFlZ+tdeRKtaxWOMUoCG5Mu3wKeUmOxjYrwb3AAHgnmtCUbPPK11/raIWLIBK250t8E2BPO0p7jA==", 76 | "requires": { 77 | "core-js-pure": "^3.0.0", 78 | "regenerator-runtime": "^0.13.4" 79 | } 80 | }, 81 | "@babel/template": { 82 | "version": "7.8.6", 83 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", 84 | "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", 85 | "requires": { 86 | "@babel/code-frame": "^7.8.3", 87 | "@babel/parser": "^7.8.6", 88 | "@babel/types": "^7.8.6" 89 | } 90 | }, 91 | "@babel/traverse": { 92 | "version": "7.9.0", 93 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.0.tgz", 94 | "integrity": "sha512-jAZQj0+kn4WTHO5dUZkZKhbFrqZE7K5LAQ5JysMnmvGij+wOdr+8lWqPeW0BcF4wFwrEXXtdGO7wcV6YPJcf3w==", 95 | "requires": { 96 | "@babel/code-frame": "^7.8.3", 97 | "@babel/generator": "^7.9.0", 98 | "@babel/helper-function-name": "^7.8.3", 99 | "@babel/helper-split-export-declaration": "^7.8.3", 100 | "@babel/parser": "^7.9.0", 101 | "@babel/types": "^7.9.0", 102 | "debug": "^4.1.0", 103 | "globals": "^11.1.0", 104 | "lodash": "^4.17.13" 105 | } 106 | }, 107 | "@babel/types": { 108 | "version": "7.9.0", 109 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.0.tgz", 110 | "integrity": "sha512-BS9JKfXkzzJl8RluW4JGknzpiUV7ZrvTayM6yfqLTVBEnFtyowVIOu6rqxRd5cVO6yGoWf4T8u8dgK9oB+GCng==", 111 | "requires": { 112 | "@babel/helper-validator-identifier": "^7.9.0", 113 | "lodash": "^4.17.13", 114 | "to-fast-properties": "^2.0.0" 115 | } 116 | }, 117 | "@types/color-name": { 118 | "version": "1.1.1", 119 | "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", 120 | "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", 121 | "dev": true 122 | }, 123 | "@types/estree": { 124 | "version": "0.0.44", 125 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.44.tgz", 126 | "integrity": "sha512-iaIVzr+w2ZJ5HkidlZ3EJM8VTZb2MJLCjw3V+505yVts0gRC4UMvjw0d1HPtGqI/HQC/KdsYtayfzl+AXY2R8g==", 127 | "dev": true 128 | }, 129 | "@types/node": { 130 | "version": "13.11.0", 131 | "resolved": "https://registry.npmjs.org/@types/node/-/node-13.11.0.tgz", 132 | "integrity": "sha512-uM4mnmsIIPK/yeO+42F2RQhGUIs39K2RFmugcJANppXe6J1nvH87PvzPZYpza7Xhhs8Yn9yIAVdLZ84z61+0xQ==", 133 | "dev": true 134 | }, 135 | "acorn": { 136 | "version": "7.1.1", 137 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", 138 | "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", 139 | "dev": true 140 | }, 141 | "acorn-dynamic-import": { 142 | "version": "4.0.0", 143 | "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", 144 | "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==", 145 | "dev": true 146 | }, 147 | "acorn-jsx": { 148 | "version": "5.2.0", 149 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", 150 | "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==", 151 | "dev": true 152 | }, 153 | "ajv": { 154 | "version": "6.12.0", 155 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz", 156 | "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==", 157 | "dev": true, 158 | "requires": { 159 | "fast-deep-equal": "^3.1.1", 160 | "fast-json-stable-stringify": "^2.0.0", 161 | "json-schema-traverse": "^0.4.1", 162 | "uri-js": "^4.2.2" 163 | } 164 | }, 165 | "ansi-escapes": { 166 | "version": "4.3.1", 167 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", 168 | "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", 169 | "dev": true, 170 | "requires": { 171 | "type-fest": "^0.11.0" 172 | }, 173 | "dependencies": { 174 | "type-fest": { 175 | "version": "0.11.0", 176 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", 177 | "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", 178 | "dev": true 179 | } 180 | } 181 | }, 182 | "ansi-regex": { 183 | "version": "5.0.0", 184 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 185 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", 186 | "dev": true 187 | }, 188 | "ansi-styles": { 189 | "version": "3.2.1", 190 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 191 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 192 | "requires": { 193 | "color-convert": "^1.9.0" 194 | } 195 | }, 196 | "argparse": { 197 | "version": "1.0.10", 198 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 199 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 200 | "dev": true, 201 | "requires": { 202 | "sprintf-js": "~1.0.2" 203 | } 204 | }, 205 | "array-includes": { 206 | "version": "3.1.1", 207 | "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.1.tgz", 208 | "integrity": "sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ==", 209 | "requires": { 210 | "define-properties": "^1.1.3", 211 | "es-abstract": "^1.17.0", 212 | "is-string": "^1.0.5" 213 | } 214 | }, 215 | "astral-regex": { 216 | "version": "1.0.0", 217 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", 218 | "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", 219 | "dev": true 220 | }, 221 | "babel-eslint": { 222 | "version": "10.1.0", 223 | "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", 224 | "integrity": "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==", 225 | "requires": { 226 | "@babel/code-frame": "^7.0.0", 227 | "@babel/parser": "^7.7.0", 228 | "@babel/traverse": "^7.7.0", 229 | "@babel/types": "^7.7.0", 230 | "eslint-visitor-keys": "^1.0.0", 231 | "resolve": "^1.12.0" 232 | } 233 | }, 234 | "balanced-match": { 235 | "version": "1.0.0", 236 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 237 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 238 | "dev": true 239 | }, 240 | "brace-expansion": { 241 | "version": "1.1.11", 242 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 243 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 244 | "dev": true, 245 | "requires": { 246 | "balanced-match": "^1.0.0", 247 | "concat-map": "0.0.1" 248 | } 249 | }, 250 | "buble": { 251 | "version": "0.19.8", 252 | "resolved": "https://registry.npmjs.org/buble/-/buble-0.19.8.tgz", 253 | "integrity": "sha512-IoGZzrUTY5fKXVkgGHw3QeXFMUNBFv+9l8a4QJKG1JhG3nCMHTdEX1DCOg8568E2Q9qvAQIiSokv6Jsgx8p2cA==", 254 | "dev": true, 255 | "requires": { 256 | "acorn": "^6.1.1", 257 | "acorn-dynamic-import": "^4.0.0", 258 | "acorn-jsx": "^5.0.1", 259 | "chalk": "^2.4.2", 260 | "magic-string": "^0.25.3", 261 | "minimist": "^1.2.0", 262 | "os-homedir": "^2.0.0", 263 | "regexpu-core": "^4.5.4" 264 | }, 265 | "dependencies": { 266 | "acorn": { 267 | "version": "6.4.1", 268 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz", 269 | "integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==", 270 | "dev": true 271 | } 272 | } 273 | }, 274 | "callsites": { 275 | "version": "3.1.0", 276 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 277 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 278 | "dev": true 279 | }, 280 | "chalk": { 281 | "version": "2.4.2", 282 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 283 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 284 | "requires": { 285 | "ansi-styles": "^3.2.1", 286 | "escape-string-regexp": "^1.0.5", 287 | "supports-color": "^5.3.0" 288 | } 289 | }, 290 | "chardet": { 291 | "version": "0.7.0", 292 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", 293 | "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", 294 | "dev": true 295 | }, 296 | "cli-cursor": { 297 | "version": "3.1.0", 298 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", 299 | "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", 300 | "dev": true, 301 | "requires": { 302 | "restore-cursor": "^3.1.0" 303 | } 304 | }, 305 | "cli-width": { 306 | "version": "2.2.0", 307 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", 308 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", 309 | "dev": true 310 | }, 311 | "color-convert": { 312 | "version": "1.9.3", 313 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 314 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 315 | "requires": { 316 | "color-name": "1.1.3" 317 | } 318 | }, 319 | "color-name": { 320 | "version": "1.1.3", 321 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 322 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 323 | }, 324 | "concat-map": { 325 | "version": "0.0.1", 326 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 327 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 328 | "dev": true 329 | }, 330 | "core-js-pure": { 331 | "version": "3.6.4", 332 | "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.6.4.tgz", 333 | "integrity": "sha512-epIhRLkXdgv32xIUFaaAry2wdxZYBi6bgM7cB136dzzXXa+dFyRLTZeLUJxnd8ShrmyVXBub63n2NHo2JAt8Cw==" 334 | }, 335 | "cross-spawn": { 336 | "version": "6.0.5", 337 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 338 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 339 | "dev": true, 340 | "requires": { 341 | "nice-try": "^1.0.4", 342 | "path-key": "^2.0.1", 343 | "semver": "^5.5.0", 344 | "shebang-command": "^1.2.0", 345 | "which": "^1.2.9" 346 | }, 347 | "dependencies": { 348 | "semver": { 349 | "version": "5.7.1", 350 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 351 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 352 | "dev": true 353 | } 354 | } 355 | }, 356 | "debug": { 357 | "version": "4.1.1", 358 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 359 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 360 | "requires": { 361 | "ms": "^2.1.1" 362 | } 363 | }, 364 | "deep-is": { 365 | "version": "0.1.3", 366 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", 367 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", 368 | "dev": true 369 | }, 370 | "define-properties": { 371 | "version": "1.1.3", 372 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 373 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 374 | "requires": { 375 | "object-keys": "^1.0.12" 376 | } 377 | }, 378 | "doctrine": { 379 | "version": "2.1.0", 380 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", 381 | "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", 382 | "requires": { 383 | "esutils": "^2.0.2" 384 | } 385 | }, 386 | "emoji-regex": { 387 | "version": "8.0.0", 388 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 389 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 390 | "dev": true 391 | }, 392 | "es-abstract": { 393 | "version": "1.17.5", 394 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", 395 | "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", 396 | "requires": { 397 | "es-to-primitive": "^1.2.1", 398 | "function-bind": "^1.1.1", 399 | "has": "^1.0.3", 400 | "has-symbols": "^1.0.1", 401 | "is-callable": "^1.1.5", 402 | "is-regex": "^1.0.5", 403 | "object-inspect": "^1.7.0", 404 | "object-keys": "^1.1.1", 405 | "object.assign": "^4.1.0", 406 | "string.prototype.trimleft": "^2.1.1", 407 | "string.prototype.trimright": "^2.1.1" 408 | } 409 | }, 410 | "es-to-primitive": { 411 | "version": "1.2.1", 412 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", 413 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", 414 | "requires": { 415 | "is-callable": "^1.1.4", 416 | "is-date-object": "^1.0.1", 417 | "is-symbol": "^1.0.2" 418 | } 419 | }, 420 | "escape-string-regexp": { 421 | "version": "1.0.5", 422 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 423 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 424 | }, 425 | "eslint": { 426 | "version": "6.8.0", 427 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", 428 | "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", 429 | "dev": true, 430 | "requires": { 431 | "@babel/code-frame": "^7.0.0", 432 | "ajv": "^6.10.0", 433 | "chalk": "^2.1.0", 434 | "cross-spawn": "^6.0.5", 435 | "debug": "^4.0.1", 436 | "doctrine": "^3.0.0", 437 | "eslint-scope": "^5.0.0", 438 | "eslint-utils": "^1.4.3", 439 | "eslint-visitor-keys": "^1.1.0", 440 | "espree": "^6.1.2", 441 | "esquery": "^1.0.1", 442 | "esutils": "^2.0.2", 443 | "file-entry-cache": "^5.0.1", 444 | "functional-red-black-tree": "^1.0.1", 445 | "glob-parent": "^5.0.0", 446 | "globals": "^12.1.0", 447 | "ignore": "^4.0.6", 448 | "import-fresh": "^3.0.0", 449 | "imurmurhash": "^0.1.4", 450 | "inquirer": "^7.0.0", 451 | "is-glob": "^4.0.0", 452 | "js-yaml": "^3.13.1", 453 | "json-stable-stringify-without-jsonify": "^1.0.1", 454 | "levn": "^0.3.0", 455 | "lodash": "^4.17.14", 456 | "minimatch": "^3.0.4", 457 | "mkdirp": "^0.5.1", 458 | "natural-compare": "^1.4.0", 459 | "optionator": "^0.8.3", 460 | "progress": "^2.0.0", 461 | "regexpp": "^2.0.1", 462 | "semver": "^6.1.2", 463 | "strip-ansi": "^5.2.0", 464 | "strip-json-comments": "^3.0.1", 465 | "table": "^5.2.3", 466 | "text-table": "^0.2.0", 467 | "v8-compile-cache": "^2.0.3" 468 | }, 469 | "dependencies": { 470 | "doctrine": { 471 | "version": "3.0.0", 472 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 473 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 474 | "dev": true, 475 | "requires": { 476 | "esutils": "^2.0.2" 477 | } 478 | }, 479 | "eslint-utils": { 480 | "version": "1.4.3", 481 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", 482 | "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", 483 | "dev": true, 484 | "requires": { 485 | "eslint-visitor-keys": "^1.1.0" 486 | } 487 | }, 488 | "globals": { 489 | "version": "12.4.0", 490 | "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", 491 | "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", 492 | "dev": true, 493 | "requires": { 494 | "type-fest": "^0.8.1" 495 | } 496 | } 497 | } 498 | }, 499 | "eslint-plugin-mocha": { 500 | "version": "6.3.0", 501 | "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-6.3.0.tgz", 502 | "integrity": "sha512-Cd2roo8caAyG21oKaaNTj7cqeYRWW1I2B5SfpKRp0Ip1gkfwoR1Ow0IGlPWnNjzywdF4n+kHL8/9vM6zCJUxdg==", 503 | "requires": { 504 | "eslint-utils": "^2.0.0", 505 | "ramda": "^0.27.0" 506 | } 507 | }, 508 | "eslint-plugin-react": { 509 | "version": "7.19.0", 510 | "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.19.0.tgz", 511 | "integrity": "sha512-SPT8j72CGuAP+JFbT0sJHOB80TX/pu44gQ4vXH/cq+hQTiY2PuZ6IHkqXJV6x1b28GDdo1lbInjKUrrdUf0LOQ==", 512 | "requires": { 513 | "array-includes": "^3.1.1", 514 | "doctrine": "^2.1.0", 515 | "has": "^1.0.3", 516 | "jsx-ast-utils": "^2.2.3", 517 | "object.entries": "^1.1.1", 518 | "object.fromentries": "^2.0.2", 519 | "object.values": "^1.1.1", 520 | "prop-types": "^15.7.2", 521 | "resolve": "^1.15.1", 522 | "semver": "^6.3.0", 523 | "string.prototype.matchall": "^4.0.2", 524 | "xregexp": "^4.3.0" 525 | } 526 | }, 527 | "eslint-scope": { 528 | "version": "5.0.0", 529 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", 530 | "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", 531 | "dev": true, 532 | "requires": { 533 | "esrecurse": "^4.1.0", 534 | "estraverse": "^4.1.1" 535 | } 536 | }, 537 | "eslint-utils": { 538 | "version": "2.0.0", 539 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz", 540 | "integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==", 541 | "requires": { 542 | "eslint-visitor-keys": "^1.1.0" 543 | } 544 | }, 545 | "eslint-visitor-keys": { 546 | "version": "1.1.0", 547 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", 548 | "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==" 549 | }, 550 | "espree": { 551 | "version": "6.2.1", 552 | "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", 553 | "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", 554 | "dev": true, 555 | "requires": { 556 | "acorn": "^7.1.1", 557 | "acorn-jsx": "^5.2.0", 558 | "eslint-visitor-keys": "^1.1.0" 559 | } 560 | }, 561 | "esprima": { 562 | "version": "4.0.1", 563 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 564 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 565 | "dev": true 566 | }, 567 | "esquery": { 568 | "version": "1.2.0", 569 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.2.0.tgz", 570 | "integrity": "sha512-weltsSqdeWIX9G2qQZz7KlTRJdkkOCTPgLYJUz1Hacf48R4YOwGPHO3+ORfWedqJKbq5WQmsgK90n+pFLIKt/Q==", 571 | "dev": true, 572 | "requires": { 573 | "estraverse": "^5.0.0" 574 | }, 575 | "dependencies": { 576 | "estraverse": { 577 | "version": "5.0.0", 578 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.0.0.tgz", 579 | "integrity": "sha512-j3acdrMzqrxmJTNj5dbr1YbjacrYgAxVMeF0gK16E3j494mOe7xygM/ZLIguEQ0ETwAg2hlJCtHRGav+y0Ny5A==", 580 | "dev": true 581 | } 582 | } 583 | }, 584 | "esrecurse": { 585 | "version": "4.2.1", 586 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", 587 | "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", 588 | "dev": true, 589 | "requires": { 590 | "estraverse": "^4.1.0" 591 | } 592 | }, 593 | "estraverse": { 594 | "version": "4.3.0", 595 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 596 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 597 | "dev": true 598 | }, 599 | "estree-walker": { 600 | "version": "0.6.1", 601 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", 602 | "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", 603 | "dev": true 604 | }, 605 | "esutils": { 606 | "version": "2.0.3", 607 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 608 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" 609 | }, 610 | "external-editor": { 611 | "version": "3.1.0", 612 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", 613 | "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", 614 | "dev": true, 615 | "requires": { 616 | "chardet": "^0.7.0", 617 | "iconv-lite": "^0.4.24", 618 | "tmp": "^0.0.33" 619 | } 620 | }, 621 | "fast-deep-equal": { 622 | "version": "3.1.1", 623 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", 624 | "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", 625 | "dev": true 626 | }, 627 | "fast-json-stable-stringify": { 628 | "version": "2.1.0", 629 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 630 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 631 | "dev": true 632 | }, 633 | "fast-levenshtein": { 634 | "version": "2.0.6", 635 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 636 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 637 | "dev": true 638 | }, 639 | "figures": { 640 | "version": "3.2.0", 641 | "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", 642 | "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", 643 | "dev": true, 644 | "requires": { 645 | "escape-string-regexp": "^1.0.5" 646 | } 647 | }, 648 | "file-entry-cache": { 649 | "version": "5.0.1", 650 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", 651 | "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", 652 | "dev": true, 653 | "requires": { 654 | "flat-cache": "^2.0.1" 655 | } 656 | }, 657 | "flat-cache": { 658 | "version": "2.0.1", 659 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", 660 | "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", 661 | "dev": true, 662 | "requires": { 663 | "flatted": "^2.0.0", 664 | "rimraf": "2.6.3", 665 | "write": "1.0.3" 666 | } 667 | }, 668 | "flatted": { 669 | "version": "2.0.2", 670 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", 671 | "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", 672 | "dev": true 673 | }, 674 | "fs.realpath": { 675 | "version": "1.0.0", 676 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 677 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 678 | "dev": true 679 | }, 680 | "function-bind": { 681 | "version": "1.1.1", 682 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 683 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 684 | }, 685 | "functional-red-black-tree": { 686 | "version": "1.0.1", 687 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 688 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 689 | "dev": true 690 | }, 691 | "glob": { 692 | "version": "7.1.6", 693 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 694 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 695 | "dev": true, 696 | "requires": { 697 | "fs.realpath": "^1.0.0", 698 | "inflight": "^1.0.4", 699 | "inherits": "2", 700 | "minimatch": "^3.0.4", 701 | "once": "^1.3.0", 702 | "path-is-absolute": "^1.0.0" 703 | } 704 | }, 705 | "glob-parent": { 706 | "version": "5.1.1", 707 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 708 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 709 | "dev": true, 710 | "requires": { 711 | "is-glob": "^4.0.1" 712 | } 713 | }, 714 | "globals": { 715 | "version": "11.12.0", 716 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", 717 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" 718 | }, 719 | "has": { 720 | "version": "1.0.3", 721 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 722 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 723 | "requires": { 724 | "function-bind": "^1.1.1" 725 | } 726 | }, 727 | "has-flag": { 728 | "version": "3.0.0", 729 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 730 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 731 | }, 732 | "has-symbols": { 733 | "version": "1.0.1", 734 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", 735 | "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==" 736 | }, 737 | "iconv-lite": { 738 | "version": "0.4.24", 739 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 740 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 741 | "dev": true, 742 | "requires": { 743 | "safer-buffer": ">= 2.1.2 < 3" 744 | } 745 | }, 746 | "ignore": { 747 | "version": "4.0.6", 748 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", 749 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", 750 | "dev": true 751 | }, 752 | "import-fresh": { 753 | "version": "3.2.1", 754 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", 755 | "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", 756 | "dev": true, 757 | "requires": { 758 | "parent-module": "^1.0.0", 759 | "resolve-from": "^4.0.0" 760 | } 761 | }, 762 | "imurmurhash": { 763 | "version": "0.1.4", 764 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 765 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 766 | "dev": true 767 | }, 768 | "inflight": { 769 | "version": "1.0.6", 770 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 771 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 772 | "dev": true, 773 | "requires": { 774 | "once": "^1.3.0", 775 | "wrappy": "1" 776 | } 777 | }, 778 | "inherits": { 779 | "version": "2.0.4", 780 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 781 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 782 | "dev": true 783 | }, 784 | "inquirer": { 785 | "version": "7.1.0", 786 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.1.0.tgz", 787 | "integrity": "sha512-5fJMWEmikSYu0nv/flMc475MhGbB7TSPd/2IpFV4I4rMklboCH2rQjYY5kKiYGHqUF9gvaambupcJFFG9dvReg==", 788 | "dev": true, 789 | "requires": { 790 | "ansi-escapes": "^4.2.1", 791 | "chalk": "^3.0.0", 792 | "cli-cursor": "^3.1.0", 793 | "cli-width": "^2.0.0", 794 | "external-editor": "^3.0.3", 795 | "figures": "^3.0.0", 796 | "lodash": "^4.17.15", 797 | "mute-stream": "0.0.8", 798 | "run-async": "^2.4.0", 799 | "rxjs": "^6.5.3", 800 | "string-width": "^4.1.0", 801 | "strip-ansi": "^6.0.0", 802 | "through": "^2.3.6" 803 | }, 804 | "dependencies": { 805 | "ansi-styles": { 806 | "version": "4.2.1", 807 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", 808 | "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", 809 | "dev": true, 810 | "requires": { 811 | "@types/color-name": "^1.1.1", 812 | "color-convert": "^2.0.1" 813 | } 814 | }, 815 | "chalk": { 816 | "version": "3.0.0", 817 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 818 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 819 | "dev": true, 820 | "requires": { 821 | "ansi-styles": "^4.1.0", 822 | "supports-color": "^7.1.0" 823 | } 824 | }, 825 | "color-convert": { 826 | "version": "2.0.1", 827 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 828 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 829 | "dev": true, 830 | "requires": { 831 | "color-name": "~1.1.4" 832 | } 833 | }, 834 | "color-name": { 835 | "version": "1.1.4", 836 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 837 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 838 | "dev": true 839 | }, 840 | "has-flag": { 841 | "version": "4.0.0", 842 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 843 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 844 | "dev": true 845 | }, 846 | "strip-ansi": { 847 | "version": "6.0.0", 848 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 849 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 850 | "dev": true, 851 | "requires": { 852 | "ansi-regex": "^5.0.0" 853 | } 854 | }, 855 | "supports-color": { 856 | "version": "7.1.0", 857 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", 858 | "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", 859 | "dev": true, 860 | "requires": { 861 | "has-flag": "^4.0.0" 862 | } 863 | } 864 | } 865 | }, 866 | "internal-slot": { 867 | "version": "1.0.2", 868 | "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.2.tgz", 869 | "integrity": "sha512-2cQNfwhAfJIkU4KZPkDI+Gj5yNNnbqi40W9Gge6dfnk4TocEVm00B3bdiL+JINrbGJil2TeHvM4rETGzk/f/0g==", 870 | "requires": { 871 | "es-abstract": "^1.17.0-next.1", 872 | "has": "^1.0.3", 873 | "side-channel": "^1.0.2" 874 | } 875 | }, 876 | "is-callable": { 877 | "version": "1.1.5", 878 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", 879 | "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==" 880 | }, 881 | "is-date-object": { 882 | "version": "1.0.2", 883 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", 884 | "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==" 885 | }, 886 | "is-extglob": { 887 | "version": "2.1.1", 888 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 889 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 890 | "dev": true 891 | }, 892 | "is-fullwidth-code-point": { 893 | "version": "3.0.0", 894 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 895 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 896 | "dev": true 897 | }, 898 | "is-glob": { 899 | "version": "4.0.1", 900 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 901 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 902 | "dev": true, 903 | "requires": { 904 | "is-extglob": "^2.1.1" 905 | } 906 | }, 907 | "is-promise": { 908 | "version": "2.1.0", 909 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", 910 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", 911 | "dev": true 912 | }, 913 | "is-regex": { 914 | "version": "1.0.5", 915 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", 916 | "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", 917 | "requires": { 918 | "has": "^1.0.3" 919 | } 920 | }, 921 | "is-string": { 922 | "version": "1.0.5", 923 | "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", 924 | "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==" 925 | }, 926 | "is-symbol": { 927 | "version": "1.0.3", 928 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", 929 | "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", 930 | "requires": { 931 | "has-symbols": "^1.0.1" 932 | } 933 | }, 934 | "isexe": { 935 | "version": "2.0.0", 936 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 937 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 938 | "dev": true 939 | }, 940 | "js-tokens": { 941 | "version": "4.0.0", 942 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 943 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 944 | }, 945 | "js-yaml": { 946 | "version": "3.13.1", 947 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 948 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 949 | "dev": true, 950 | "requires": { 951 | "argparse": "^1.0.7", 952 | "esprima": "^4.0.0" 953 | } 954 | }, 955 | "jsesc": { 956 | "version": "2.5.2", 957 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", 958 | "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" 959 | }, 960 | "json-schema-traverse": { 961 | "version": "0.4.1", 962 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 963 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 964 | "dev": true 965 | }, 966 | "json-stable-stringify-without-jsonify": { 967 | "version": "1.0.1", 968 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 969 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", 970 | "dev": true 971 | }, 972 | "jsx-ast-utils": { 973 | "version": "2.2.3", 974 | "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz", 975 | "integrity": "sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==", 976 | "requires": { 977 | "array-includes": "^3.0.3", 978 | "object.assign": "^4.1.0" 979 | } 980 | }, 981 | "levn": { 982 | "version": "0.3.0", 983 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", 984 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", 985 | "dev": true, 986 | "requires": { 987 | "prelude-ls": "~1.1.2", 988 | "type-check": "~0.3.2" 989 | } 990 | }, 991 | "lodash": { 992 | "version": "4.17.15", 993 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 994 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" 995 | }, 996 | "loose-envify": { 997 | "version": "1.4.0", 998 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 999 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 1000 | "requires": { 1001 | "js-tokens": "^3.0.0 || ^4.0.0" 1002 | } 1003 | }, 1004 | "magic-string": { 1005 | "version": "0.25.7", 1006 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", 1007 | "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==", 1008 | "dev": true, 1009 | "requires": { 1010 | "sourcemap-codec": "^1.4.4" 1011 | } 1012 | }, 1013 | "mimic-fn": { 1014 | "version": "2.1.0", 1015 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 1016 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 1017 | "dev": true 1018 | }, 1019 | "minimatch": { 1020 | "version": "3.0.4", 1021 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1022 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1023 | "dev": true, 1024 | "requires": { 1025 | "brace-expansion": "^1.1.7" 1026 | } 1027 | }, 1028 | "minimist": { 1029 | "version": "1.2.5", 1030 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1031 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 1032 | "dev": true 1033 | }, 1034 | "mkdirp": { 1035 | "version": "0.5.5", 1036 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1037 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1038 | "dev": true, 1039 | "requires": { 1040 | "minimist": "^1.2.5" 1041 | } 1042 | }, 1043 | "ms": { 1044 | "version": "2.1.2", 1045 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1046 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1047 | }, 1048 | "mute-stream": { 1049 | "version": "0.0.8", 1050 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", 1051 | "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", 1052 | "dev": true 1053 | }, 1054 | "natural-compare": { 1055 | "version": "1.4.0", 1056 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1057 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1058 | "dev": true 1059 | }, 1060 | "nice-try": { 1061 | "version": "1.0.5", 1062 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 1063 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 1064 | "dev": true 1065 | }, 1066 | "object-assign": { 1067 | "version": "4.1.1", 1068 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1069 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1070 | }, 1071 | "object-inspect": { 1072 | "version": "1.7.0", 1073 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", 1074 | "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==" 1075 | }, 1076 | "object-keys": { 1077 | "version": "1.1.1", 1078 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 1079 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" 1080 | }, 1081 | "object.assign": { 1082 | "version": "4.1.0", 1083 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 1084 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 1085 | "requires": { 1086 | "define-properties": "^1.1.2", 1087 | "function-bind": "^1.1.1", 1088 | "has-symbols": "^1.0.0", 1089 | "object-keys": "^1.0.11" 1090 | } 1091 | }, 1092 | "object.entries": { 1093 | "version": "1.1.1", 1094 | "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.1.tgz", 1095 | "integrity": "sha512-ilqR7BgdyZetJutmDPfXCDffGa0/Yzl2ivVNpbx/g4UeWrCdRnFDUBrKJGLhGieRHDATnyZXWBeCb29k9CJysQ==", 1096 | "requires": { 1097 | "define-properties": "^1.1.3", 1098 | "es-abstract": "^1.17.0-next.1", 1099 | "function-bind": "^1.1.1", 1100 | "has": "^1.0.3" 1101 | } 1102 | }, 1103 | "object.fromentries": { 1104 | "version": "2.0.2", 1105 | "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.2.tgz", 1106 | "integrity": "sha512-r3ZiBH7MQppDJVLx6fhD618GKNG40CZYH9wgwdhKxBDDbQgjeWGGd4AtkZad84d291YxvWe7bJGuE65Anh0dxQ==", 1107 | "requires": { 1108 | "define-properties": "^1.1.3", 1109 | "es-abstract": "^1.17.0-next.1", 1110 | "function-bind": "^1.1.1", 1111 | "has": "^1.0.3" 1112 | } 1113 | }, 1114 | "object.values": { 1115 | "version": "1.1.1", 1116 | "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.1.tgz", 1117 | "integrity": "sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==", 1118 | "requires": { 1119 | "define-properties": "^1.1.3", 1120 | "es-abstract": "^1.17.0-next.1", 1121 | "function-bind": "^1.1.1", 1122 | "has": "^1.0.3" 1123 | } 1124 | }, 1125 | "once": { 1126 | "version": "1.4.0", 1127 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1128 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1129 | "dev": true, 1130 | "requires": { 1131 | "wrappy": "1" 1132 | } 1133 | }, 1134 | "onetime": { 1135 | "version": "5.1.0", 1136 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", 1137 | "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", 1138 | "dev": true, 1139 | "requires": { 1140 | "mimic-fn": "^2.1.0" 1141 | } 1142 | }, 1143 | "optionator": { 1144 | "version": "0.8.3", 1145 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", 1146 | "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", 1147 | "dev": true, 1148 | "requires": { 1149 | "deep-is": "~0.1.3", 1150 | "fast-levenshtein": "~2.0.6", 1151 | "levn": "~0.3.0", 1152 | "prelude-ls": "~1.1.2", 1153 | "type-check": "~0.3.2", 1154 | "word-wrap": "~1.2.3" 1155 | } 1156 | }, 1157 | "os-homedir": { 1158 | "version": "2.0.0", 1159 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-2.0.0.tgz", 1160 | "integrity": "sha512-saRNz0DSC5C/I++gFIaJTXoFJMRwiP5zHar5vV3xQ2TkgEw6hDCcU5F272JjUylpiVgBrZNQHnfjkLabTfb92Q==", 1161 | "dev": true 1162 | }, 1163 | "os-tmpdir": { 1164 | "version": "1.0.2", 1165 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1166 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", 1167 | "dev": true 1168 | }, 1169 | "parent-module": { 1170 | "version": "1.0.1", 1171 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1172 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1173 | "dev": true, 1174 | "requires": { 1175 | "callsites": "^3.0.0" 1176 | } 1177 | }, 1178 | "path-is-absolute": { 1179 | "version": "1.0.1", 1180 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1181 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1182 | "dev": true 1183 | }, 1184 | "path-key": { 1185 | "version": "2.0.1", 1186 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1187 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 1188 | "dev": true 1189 | }, 1190 | "path-parse": { 1191 | "version": "1.0.6", 1192 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 1193 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" 1194 | }, 1195 | "prelude-ls": { 1196 | "version": "1.1.2", 1197 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", 1198 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", 1199 | "dev": true 1200 | }, 1201 | "progress": { 1202 | "version": "2.0.3", 1203 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1204 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1205 | "dev": true 1206 | }, 1207 | "prop-types": { 1208 | "version": "15.7.2", 1209 | "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", 1210 | "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", 1211 | "requires": { 1212 | "loose-envify": "^1.4.0", 1213 | "object-assign": "^4.1.1", 1214 | "react-is": "^16.8.1" 1215 | } 1216 | }, 1217 | "punycode": { 1218 | "version": "2.1.1", 1219 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1220 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1221 | "dev": true 1222 | }, 1223 | "ramda": { 1224 | "version": "0.27.0", 1225 | "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", 1226 | "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==" 1227 | }, 1228 | "react-is": { 1229 | "version": "16.13.1", 1230 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", 1231 | "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" 1232 | }, 1233 | "regenerate": { 1234 | "version": "1.4.0", 1235 | "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", 1236 | "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", 1237 | "dev": true 1238 | }, 1239 | "regenerate-unicode-properties": { 1240 | "version": "8.2.0", 1241 | "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz", 1242 | "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==", 1243 | "dev": true, 1244 | "requires": { 1245 | "regenerate": "^1.4.0" 1246 | } 1247 | }, 1248 | "regenerator-runtime": { 1249 | "version": "0.13.5", 1250 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz", 1251 | "integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==" 1252 | }, 1253 | "regexp.prototype.flags": { 1254 | "version": "1.3.0", 1255 | "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz", 1256 | "integrity": "sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ==", 1257 | "requires": { 1258 | "define-properties": "^1.1.3", 1259 | "es-abstract": "^1.17.0-next.1" 1260 | } 1261 | }, 1262 | "regexpp": { 1263 | "version": "2.0.1", 1264 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", 1265 | "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", 1266 | "dev": true 1267 | }, 1268 | "regexpu-core": { 1269 | "version": "4.7.0", 1270 | "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.0.tgz", 1271 | "integrity": "sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==", 1272 | "dev": true, 1273 | "requires": { 1274 | "regenerate": "^1.4.0", 1275 | "regenerate-unicode-properties": "^8.2.0", 1276 | "regjsgen": "^0.5.1", 1277 | "regjsparser": "^0.6.4", 1278 | "unicode-match-property-ecmascript": "^1.0.4", 1279 | "unicode-match-property-value-ecmascript": "^1.2.0" 1280 | } 1281 | }, 1282 | "regjsgen": { 1283 | "version": "0.5.1", 1284 | "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", 1285 | "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", 1286 | "dev": true 1287 | }, 1288 | "regjsparser": { 1289 | "version": "0.6.4", 1290 | "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.4.tgz", 1291 | "integrity": "sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==", 1292 | "dev": true, 1293 | "requires": { 1294 | "jsesc": "~0.5.0" 1295 | }, 1296 | "dependencies": { 1297 | "jsesc": { 1298 | "version": "0.5.0", 1299 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", 1300 | "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", 1301 | "dev": true 1302 | } 1303 | } 1304 | }, 1305 | "resolve": { 1306 | "version": "1.15.1", 1307 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz", 1308 | "integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==", 1309 | "requires": { 1310 | "path-parse": "^1.0.6" 1311 | } 1312 | }, 1313 | "resolve-from": { 1314 | "version": "4.0.0", 1315 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1316 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1317 | "dev": true 1318 | }, 1319 | "restore-cursor": { 1320 | "version": "3.1.0", 1321 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", 1322 | "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", 1323 | "dev": true, 1324 | "requires": { 1325 | "onetime": "^5.1.0", 1326 | "signal-exit": "^3.0.2" 1327 | } 1328 | }, 1329 | "rimraf": { 1330 | "version": "2.6.3", 1331 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 1332 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 1333 | "dev": true, 1334 | "requires": { 1335 | "glob": "^7.1.3" 1336 | } 1337 | }, 1338 | "rollup": { 1339 | "version": "1.32.1", 1340 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.32.1.tgz", 1341 | "integrity": "sha512-/2HA0Ec70TvQnXdzynFffkjA6XN+1e2pEv/uKS5Ulca40g2L7KuOE3riasHoNVHOsFD5KKZgDsMk1CP3Tw9s+A==", 1342 | "dev": true, 1343 | "requires": { 1344 | "@types/estree": "*", 1345 | "@types/node": "*", 1346 | "acorn": "^7.1.0" 1347 | } 1348 | }, 1349 | "rollup-plugin-buble": { 1350 | "version": "0.19.8", 1351 | "resolved": "https://registry.npmjs.org/rollup-plugin-buble/-/rollup-plugin-buble-0.19.8.tgz", 1352 | "integrity": "sha512-8J4zPk2DQdk3rxeZvxgzhHh/rm5nJkjwgcsUYisCQg1QbT5yagW+hehYEW7ZNns/NVbDCTv4JQ7h4fC8qKGOKw==", 1353 | "dev": true, 1354 | "requires": { 1355 | "buble": "^0.19.8", 1356 | "rollup-pluginutils": "^2.3.3" 1357 | } 1358 | }, 1359 | "rollup-pluginutils": { 1360 | "version": "2.8.2", 1361 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", 1362 | "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", 1363 | "dev": true, 1364 | "requires": { 1365 | "estree-walker": "^0.6.1" 1366 | } 1367 | }, 1368 | "run-async": { 1369 | "version": "2.4.0", 1370 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.0.tgz", 1371 | "integrity": "sha512-xJTbh/d7Lm7SBhc1tNvTpeCHaEzoyxPrqNlvSdMfBTYwaY++UJFyXUOxAtsRUXjlqOfj8luNaR9vjCh4KeV+pg==", 1372 | "dev": true, 1373 | "requires": { 1374 | "is-promise": "^2.1.0" 1375 | } 1376 | }, 1377 | "rxjs": { 1378 | "version": "6.5.5", 1379 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.5.tgz", 1380 | "integrity": "sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==", 1381 | "dev": true, 1382 | "requires": { 1383 | "tslib": "^1.9.0" 1384 | } 1385 | }, 1386 | "safer-buffer": { 1387 | "version": "2.1.2", 1388 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1389 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1390 | "dev": true 1391 | }, 1392 | "semver": { 1393 | "version": "6.3.0", 1394 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1395 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 1396 | }, 1397 | "shebang-command": { 1398 | "version": "1.2.0", 1399 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1400 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1401 | "dev": true, 1402 | "requires": { 1403 | "shebang-regex": "^1.0.0" 1404 | } 1405 | }, 1406 | "shebang-regex": { 1407 | "version": "1.0.0", 1408 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1409 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 1410 | "dev": true 1411 | }, 1412 | "side-channel": { 1413 | "version": "1.0.2", 1414 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.2.tgz", 1415 | "integrity": "sha512-7rL9YlPHg7Ancea1S96Pa8/QWb4BtXL/TZvS6B8XFetGBeuhAsfmUspK6DokBeZ64+Kj9TCNRD/30pVz1BvQNA==", 1416 | "requires": { 1417 | "es-abstract": "^1.17.0-next.1", 1418 | "object-inspect": "^1.7.0" 1419 | } 1420 | }, 1421 | "signal-exit": { 1422 | "version": "3.0.3", 1423 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1424 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", 1425 | "dev": true 1426 | }, 1427 | "slice-ansi": { 1428 | "version": "2.1.0", 1429 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", 1430 | "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", 1431 | "dev": true, 1432 | "requires": { 1433 | "ansi-styles": "^3.2.0", 1434 | "astral-regex": "^1.0.0", 1435 | "is-fullwidth-code-point": "^2.0.0" 1436 | }, 1437 | "dependencies": { 1438 | "is-fullwidth-code-point": { 1439 | "version": "2.0.0", 1440 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1441 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1442 | "dev": true 1443 | } 1444 | } 1445 | }, 1446 | "source-map": { 1447 | "version": "0.5.7", 1448 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 1449 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" 1450 | }, 1451 | "sourcemap-codec": { 1452 | "version": "1.4.8", 1453 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 1454 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", 1455 | "dev": true 1456 | }, 1457 | "sprintf-js": { 1458 | "version": "1.0.3", 1459 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1460 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1461 | "dev": true 1462 | }, 1463 | "string-width": { 1464 | "version": "4.2.0", 1465 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 1466 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 1467 | "dev": true, 1468 | "requires": { 1469 | "emoji-regex": "^8.0.0", 1470 | "is-fullwidth-code-point": "^3.0.0", 1471 | "strip-ansi": "^6.0.0" 1472 | }, 1473 | "dependencies": { 1474 | "strip-ansi": { 1475 | "version": "6.0.0", 1476 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1477 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1478 | "dev": true, 1479 | "requires": { 1480 | "ansi-regex": "^5.0.0" 1481 | } 1482 | } 1483 | } 1484 | }, 1485 | "string.prototype.matchall": { 1486 | "version": "4.0.2", 1487 | "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.2.tgz", 1488 | "integrity": "sha512-N/jp6O5fMf9os0JU3E72Qhf590RSRZU/ungsL/qJUYVTNv7hTG0P/dbPjxINVN9jpscu3nzYwKESU3P3RY5tOg==", 1489 | "requires": { 1490 | "define-properties": "^1.1.3", 1491 | "es-abstract": "^1.17.0", 1492 | "has-symbols": "^1.0.1", 1493 | "internal-slot": "^1.0.2", 1494 | "regexp.prototype.flags": "^1.3.0", 1495 | "side-channel": "^1.0.2" 1496 | } 1497 | }, 1498 | "string.prototype.trimend": { 1499 | "version": "1.0.0", 1500 | "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.0.tgz", 1501 | "integrity": "sha512-EEJnGqa/xNfIg05SxiPSqRS7S9qwDhYts1TSLR1BQfYUfPe1stofgGKvwERK9+9yf+PpfBMlpBaCHucXGPQfUA==", 1502 | "requires": { 1503 | "define-properties": "^1.1.3", 1504 | "es-abstract": "^1.17.5" 1505 | } 1506 | }, 1507 | "string.prototype.trimleft": { 1508 | "version": "2.1.2", 1509 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", 1510 | "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==", 1511 | "requires": { 1512 | "define-properties": "^1.1.3", 1513 | "es-abstract": "^1.17.5", 1514 | "string.prototype.trimstart": "^1.0.0" 1515 | } 1516 | }, 1517 | "string.prototype.trimright": { 1518 | "version": "2.1.2", 1519 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", 1520 | "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==", 1521 | "requires": { 1522 | "define-properties": "^1.1.3", 1523 | "es-abstract": "^1.17.5", 1524 | "string.prototype.trimend": "^1.0.0" 1525 | } 1526 | }, 1527 | "string.prototype.trimstart": { 1528 | "version": "1.0.0", 1529 | "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.0.tgz", 1530 | "integrity": "sha512-iCP8g01NFYiiBOnwG1Xc3WZLyoo+RuBymwIlWncShXDDJYWN6DbnM3odslBJdgCdRlq94B5s63NWAZlcn2CS4w==", 1531 | "requires": { 1532 | "define-properties": "^1.1.3", 1533 | "es-abstract": "^1.17.5" 1534 | } 1535 | }, 1536 | "strip-ansi": { 1537 | "version": "5.2.0", 1538 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1539 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1540 | "dev": true, 1541 | "requires": { 1542 | "ansi-regex": "^4.1.0" 1543 | }, 1544 | "dependencies": { 1545 | "ansi-regex": { 1546 | "version": "4.1.0", 1547 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1548 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1549 | "dev": true 1550 | } 1551 | } 1552 | }, 1553 | "strip-json-comments": { 1554 | "version": "3.1.0", 1555 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", 1556 | "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", 1557 | "dev": true 1558 | }, 1559 | "supports-color": { 1560 | "version": "5.5.0", 1561 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1562 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1563 | "requires": { 1564 | "has-flag": "^3.0.0" 1565 | } 1566 | }, 1567 | "table": { 1568 | "version": "5.4.6", 1569 | "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", 1570 | "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", 1571 | "dev": true, 1572 | "requires": { 1573 | "ajv": "^6.10.2", 1574 | "lodash": "^4.17.14", 1575 | "slice-ansi": "^2.1.0", 1576 | "string-width": "^3.0.0" 1577 | }, 1578 | "dependencies": { 1579 | "emoji-regex": { 1580 | "version": "7.0.3", 1581 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 1582 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 1583 | "dev": true 1584 | }, 1585 | "is-fullwidth-code-point": { 1586 | "version": "2.0.0", 1587 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1588 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1589 | "dev": true 1590 | }, 1591 | "string-width": { 1592 | "version": "3.1.0", 1593 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1594 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1595 | "dev": true, 1596 | "requires": { 1597 | "emoji-regex": "^7.0.1", 1598 | "is-fullwidth-code-point": "^2.0.0", 1599 | "strip-ansi": "^5.1.0" 1600 | } 1601 | } 1602 | } 1603 | }, 1604 | "text-table": { 1605 | "version": "0.2.0", 1606 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1607 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 1608 | "dev": true 1609 | }, 1610 | "through": { 1611 | "version": "2.3.8", 1612 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1613 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 1614 | "dev": true 1615 | }, 1616 | "tmp": { 1617 | "version": "0.0.33", 1618 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 1619 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 1620 | "dev": true, 1621 | "requires": { 1622 | "os-tmpdir": "~1.0.2" 1623 | } 1624 | }, 1625 | "to-fast-properties": { 1626 | "version": "2.0.0", 1627 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", 1628 | "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" 1629 | }, 1630 | "tslib": { 1631 | "version": "1.11.1", 1632 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", 1633 | "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==", 1634 | "dev": true 1635 | }, 1636 | "type-check": { 1637 | "version": "0.3.2", 1638 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", 1639 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", 1640 | "dev": true, 1641 | "requires": { 1642 | "prelude-ls": "~1.1.2" 1643 | } 1644 | }, 1645 | "type-fest": { 1646 | "version": "0.8.1", 1647 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1648 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", 1649 | "dev": true 1650 | }, 1651 | "unicode-canonical-property-names-ecmascript": { 1652 | "version": "1.0.4", 1653 | "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", 1654 | "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", 1655 | "dev": true 1656 | }, 1657 | "unicode-match-property-ecmascript": { 1658 | "version": "1.0.4", 1659 | "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", 1660 | "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", 1661 | "dev": true, 1662 | "requires": { 1663 | "unicode-canonical-property-names-ecmascript": "^1.0.4", 1664 | "unicode-property-aliases-ecmascript": "^1.0.4" 1665 | } 1666 | }, 1667 | "unicode-match-property-value-ecmascript": { 1668 | "version": "1.2.0", 1669 | "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz", 1670 | "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==", 1671 | "dev": true 1672 | }, 1673 | "unicode-property-aliases-ecmascript": { 1674 | "version": "1.1.0", 1675 | "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz", 1676 | "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", 1677 | "dev": true 1678 | }, 1679 | "uri-js": { 1680 | "version": "4.2.2", 1681 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 1682 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 1683 | "dev": true, 1684 | "requires": { 1685 | "punycode": "^2.1.0" 1686 | } 1687 | }, 1688 | "v8-compile-cache": { 1689 | "version": "2.1.0", 1690 | "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz", 1691 | "integrity": "sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g==", 1692 | "dev": true 1693 | }, 1694 | "which": { 1695 | "version": "1.3.1", 1696 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1697 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1698 | "dev": true, 1699 | "requires": { 1700 | "isexe": "^2.0.0" 1701 | } 1702 | }, 1703 | "word-wrap": { 1704 | "version": "1.2.3", 1705 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 1706 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 1707 | "dev": true 1708 | }, 1709 | "wrappy": { 1710 | "version": "1.0.2", 1711 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1712 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1713 | "dev": true 1714 | }, 1715 | "write": { 1716 | "version": "1.0.3", 1717 | "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", 1718 | "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", 1719 | "dev": true, 1720 | "requires": { 1721 | "mkdirp": "^0.5.1" 1722 | } 1723 | }, 1724 | "xregexp": { 1725 | "version": "4.3.0", 1726 | "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.3.0.tgz", 1727 | "integrity": "sha512-7jXDIFXh5yJ/orPn4SXjuVrWWoi4Cr8jfV1eHv9CixKSbU+jY4mxfrBwAuDvupPNKpMUY+FeIqsVw/JLT9+B8g==", 1728 | "requires": { 1729 | "@babel/runtime-corejs3": "^7.8.3" 1730 | } 1731 | } 1732 | } 1733 | } 1734 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eslint-config-synacor", 3 | "version": "3.0.5", 4 | "description": "ESLint configuration for Synacor javascript projects", 5 | "main": "index.js", 6 | "module": "src/index.js", 7 | "keywords": [ 8 | "eslint", 9 | "eslint-config" 10 | ], 11 | "files": [ 12 | "index.js", 13 | "test-rules.js", 14 | "src/" 15 | ], 16 | "scripts": { 17 | "test": "npm run lint", 18 | "lint": "npm run -s build && eslint src", 19 | "build": "npm run clean && npm run buildMain && npm run buildTestRules", 20 | "clean": "rm -f index.js test-rules.js", 21 | "buildMain": "rollup -c rollup.config.js -f cjs -o $npm_package_main $npm_package_module", 22 | "buildTestRules": "rollup -c rollup.config.js -f cjs -o test-rules.js src/test-rules.js", 23 | "prepublishOnly": "npm run -s test && npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags", 24 | "release": "npm publish", 25 | "release-beta": "npm publish --tag beta" 26 | }, 27 | "eslintConfig": { 28 | "extends": "./index.js" 29 | }, 30 | "author": "Jason Miller ", 31 | "contributors": [ 32 | "Bill Neff " 33 | ], 34 | "bugs": { 35 | "url": "https://github.com/synacor/eslint-config-synacor/issues" 36 | }, 37 | "license": "GPL-3.0", 38 | "repository": { 39 | "type": "git", 40 | "url": "https://github.com/synacor/eslint-config-synacor.git" 41 | }, 42 | "dependencies": { 43 | "babel-eslint": "^10.1.0", 44 | "eslint-plugin-mocha": "^6.3.0", 45 | "eslint-plugin-react": "^7.19.0" 46 | }, 47 | "devDependencies": { 48 | "eslint": "^6.8.0", 49 | "rollup": "^1.32.1", 50 | "rollup-plugin-buble": "^0.19.8" 51 | }, 52 | "peerDependencies": { 53 | "eslint": "^4.0.0 || ^5.0.0 || ^6.00" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import buble from 'rollup-plugin-buble'; 2 | export default { plugins: [ buble({ objectAssign: 'Object.assign' }) ] }; 3 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import react from './rules/react'; 2 | import security from './rules/security'; 3 | import style from './rules/style'; 4 | 5 | export default { 6 | parser: require.resolve('babel-eslint'), 7 | extends: 'eslint:recommended', 8 | plugins: [ 9 | 'react', 10 | 'mocha' 11 | ], 12 | env: { 13 | browser: true, 14 | es6: true, 15 | mocha: true, 16 | node: true 17 | }, 18 | parserOptions: { 19 | ecmaVersion: 7, 20 | sourceType: 'module', 21 | ecmaFeatures: { 22 | modules: true, 23 | impliedStrict: true, 24 | experimentalObjectRestSpread: true, 25 | experimentalDecorators: true, 26 | jsx: true, 27 | legacyDecorators: true 28 | } 29 | }, 30 | globals: { 31 | CONFIG: true, 32 | sinon: true, 33 | expect: true, 34 | browser: true, 35 | global: true, 36 | element: true, 37 | sleep: true, 38 | by: true, 39 | $: true 40 | }, 41 | rules: { 42 | ...react, 43 | ...security, 44 | ...style 45 | }, 46 | settings: { 47 | react: { 48 | version: '15' 49 | } 50 | } 51 | }; 52 | -------------------------------------------------------------------------------- /src/rules/react.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'react/jsx-boolean-value': [2, 'never'], 3 | 'react/jsx-closing-bracket-location': 2, 4 | 'react/jsx-curly-spacing': 2, 5 | 'react/display-name': [2, { ignoreTranspilerName: false }], 6 | 'react/jsx-equals-spacing': 2, 7 | 'react/jsx-indent-props': [2, 'tab'], 8 | 'react/jsx-max-props-per-line': [2, { maximum: 6 }], 9 | 'react/jsx-no-bind': [2, { ignoreRefs: true }], 10 | 'react/jsx-no-comment-textnodes': 2, 11 | 'react/jsx-no-duplicate-props': 2, 12 | 'react/jsx-no-target-blank': 2, // avoids security vuln, see https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md 13 | 'react/jsx-no-undef': 2, 14 | 'react/jsx-pascal-case': 2, 15 | 'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }], 16 | 'react/jsx-uses-react': 2, 17 | 'react/jsx-uses-vars': 2, 18 | 'react/jsx-wrap-multilines': 2, 19 | 'react/no-danger': 2, 20 | 'react/no-did-mount-set-state': 2, 21 | 'react/no-did-update-set-state': 2, 22 | 'react/no-find-dom-node': 2, 23 | 'react/no-is-mounted': 2, 24 | 'react/no-string-refs': 0, // disabled for now because it does not work with linkref 25 | 'react/prefer-es6-class': 2, 26 | 'react/prefer-stateless-function': 1, 27 | 'react/require-render-return': 2, 28 | 'react/self-closing-comp': 2, 29 | 'react/sort-comp': [2, { 30 | order: [ 31 | 'properties', 32 | 'static-methods', 33 | 'everything-else', 34 | 'lifecycle', 35 | 'rendering' 36 | ], 37 | groups: { 38 | properties: [ 39 | 'state' 40 | ], 41 | rendering: [ 42 | '/^render.+$/', 43 | 'render' 44 | ] 45 | } 46 | 47 | }] 48 | }; 49 | -------------------------------------------------------------------------------- /src/rules/security.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'no-eval': 2, 3 | 'no-implied-eval': 2, 4 | 'no-new-func': 2 5 | }; 6 | -------------------------------------------------------------------------------- /src/rules/style.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'arrow-body-style': [2, 'as-needed'], 3 | 'arrow-parens': [0, 'always'], 4 | 'arrow-spacing': 2, 5 | 'brace-style': [2, 'stroustrup', { allowSingleLine: true }], 6 | camelcase: [1, { properties: 'never' }], 7 | 'comma-dangle': [2, 'never'], 8 | 'comma-style': [2, 'last'], 9 | 'constructor-super': 2, 10 | curly: [0, 'multi-line'], 11 | 'dot-notation': [2, { allowPattern: '^[a-z]+(_[a-z]+)+$' }], 12 | eqeqeq: 2, 13 | 'func-style': [2, 'declaration', { allowArrowFunctions: true }], 14 | 'guard-for-in': 2, 15 | 'handle-callback-err': 0, 16 | indent: [2, 'tab', { SwitchCase: 1 }], 17 | 'jsx-quotes': [2, 'prefer-double'], 18 | 'key-spacing': 2, 19 | 'keyword-spacing': 2, 20 | 'lines-around-comment': 2, 21 | 'new-cap': 1, 22 | 'new-parens': 2, 23 | 'no-alert': 2, 24 | 'no-array-constructor': 2, 25 | 'no-caller': 2, 26 | 'no-cond-assign': 2, 27 | 'no-console': [1, { allow: ['warn', 'error'] }], 28 | 'no-const-assign': 2, 29 | 'no-delete-var': 2, 30 | 'no-dupe-class-members': 2, 31 | 'no-dupe-keys': 2, 32 | 'no-duplicate-imports': 2, 33 | 'no-else-return': 2, 34 | 'no-empty-pattern': 0, 35 | 'no-empty': 0, 36 | 'no-extra-parens': 0, // we use extra parens in JSX ternaries, no way to disable that here. 37 | 'no-iterator': 2, 38 | 'no-lonely-if': 2, 39 | 'no-mixed-spaces-and-tabs': [2, 'smart-tabs'], 40 | 'no-multi-str': 2, 41 | 'no-multiple-empty-lines': [2, { max: 2 }], 42 | 'no-new-wrappers': 2, 43 | 'no-proto': 2, 44 | 'no-redeclare': 2, 45 | 'no-restricted-globals': [2, 'find', 'Text'], 46 | 'no-shadow-restricted-names': 2, 47 | 'no-shadow': 0, 48 | 'no-spaced-func': 2, 49 | 'no-this-before-super': 2, 50 | 'no-trailing-spaces': [2, { skipBlankLines: true }], 51 | 'no-undef-init': 2, 52 | 'no-unneeded-ternary': 2, 53 | 'no-unused-vars': [2, { args: 'none', varsIgnorePattern: '^h$' }], 54 | 'no-useless-call': 2, 55 | 'no-useless-computed-key': 2, 56 | 'no-useless-concat': 2, 57 | 'no-useless-constructor': 2, 58 | 'no-useless-escape': 2, 59 | 'no-useless-rename': 2, 60 | 'no-var': 2, 61 | 'no-with': 2, 62 | 'object-curly-spacing': [2, 'always'], 63 | 'object-shorthand': 2, 64 | 'prefer-arrow-callback': 2, 65 | 'prefer-rest-params': 2, 66 | 'prefer-spread': 2, 67 | 'prefer-template': 0, // we can enable this when they add an option to allow concat for complex variables 68 | 'quote-props': [2, 'as-needed'], 69 | quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }], 70 | radix: 2, 71 | 'rest-spread-spacing': 2, 72 | semi: 2, 73 | 'space-before-function-paren': [0, 'always'], // for fmt 74 | 'space-in-parens': [0, 'never'], 75 | strict: [2, 'never'], 76 | 'unicode-bom': 2, 77 | 'valid-jsdoc': [0, { requireReturn: false }] // no way to turn this off for pure functional component 78 | }; 79 | -------------------------------------------------------------------------------- /src/rules/tests.js: -------------------------------------------------------------------------------- 1 | // Rules to use/override for unit/e2e tests 2 | export default { 3 | }; 4 | -------------------------------------------------------------------------------- /src/test-rules.js: -------------------------------------------------------------------------------- 1 | import tests from './rules/tests'; 2 | 3 | export default { 4 | rules: { 5 | ...tests 6 | } 7 | }; 8 | --------------------------------------------------------------------------------