{"_id":"@anjianshi/eslint-config","_rev":"9-28ca62ffc455ab417c39d24ee46d4913","name":"@anjianshi/eslint-config","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@anjianshi/eslint-config","version":"1.0.0","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"git+https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^2.28.0","@typescript-eslint/parser":"^2.28.0","babel-eslint":"^10.1.0","eslint-import-resolver-webpack":"^0.12.1","eslint-plugin-import":"^2.20.2","eslint-plugin-react":"^7.19.0","eslint-plugin-react-hooks":"^3.0.0"},"peerDependencies":{"eslint":"^6.8.0","typescript":"^3.8.3"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"aa18fc4196931e4912eea7dbdf5eb1e605861e44","bugs":{"url":"https://github.com/anjianshi/eslint-config/issues"},"_id":"@anjianshi/eslint-config@1.0.0","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4uoNFXUvKy3sCDTOyESgIUa6Fx08Em2QpxYkRikFipzCgknEVgybkjWm8Buq+zprc1WjKf9/AUiGRevgclLEhA==","shasum":"03e9858174ce05e016f46f65fb61b0d676e8cadd","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.0.0.tgz","fileCount":11,"unpackedSize":10062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemRhwCRA9TVsSAnZWagAAPTQP/3x3o8zh+RBiuuWJ7I9h\n0WL/hA/W1u/GKZIUHKctMWhgJrClDs7dGm0ie5iXUjr6/esoba9TFZNU1RvX\nulkt0YJxzLtauZYNZVet4/8zv9DojpjaMV+Yy4GlpCXEiQQPYaWPlI2pcnAl\n3z3GQAzhXOrGhwtlXLK4+msBtGhpc3cWuRenIc4C6z6QNHJqcIhhj5CzDCRS\nWEWLpSnun/KxAQTxGSP7sV8ZbfuVO0MLkGfmOhKjSv/QulB/hrV9X6c9v19c\nLi9FN/hyiV46tha8MvkfFAgYZZUZ1Dz7iXXSA8w4DGvLwxVwxm7eehjWkmXo\nteyRDjp0kkZOaw6Zzj30CTDgf/QCN82kEGhhmhjPIhYU7HYNf9C/qHXVGR3D\njQE+j8eBnZzKwSVXmqXEe6gB1YQqgMv7rEyHrFoxUdm+5Wm6juEjxZLV0MXR\nveGEOZRQZRoRCwqeCQZnsuvXI+8NZ2v1+A2aemMeUOZMgeFEck8Me+s021i/\ncSwEV6IrvtMfbFTpV9SkMbiojXX1uugGstE7E74V4uplOLRkc0uvUcaXvMhL\nhGCt59KfiOmd0kRzrjei4hwee6tfDuRFcqaCPMGkNDNn44daqnfDZUYu2wMg\nWa5lN48hriB5PTa37Pj/XLf3i7H9ftcZCuQDKlap72g9+PAnULVrb3NcO3TB\nxzbK\r\n=y6Ol\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGX/LyI4NywRUx9b7sYY2rh8RTVSvCtsDlYVU0vbxoV7AiBaBgGaJ5gHSx7ah5XKbR/4ASJB7JEWcEPTcYSGheBGCg=="}]},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.0_1587091567804_0.41693285020863047"},"_hasShrinkwrap":false},"1.0.1":{"name":"@anjianshi/eslint-config","version":"1.0.1","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"git+https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^2.28.0","@typescript-eslint/parser":"^2.28.0","babel-eslint":"^10.1.0","eslint-import-resolver-webpack":"^0.12.1","eslint-plugin-import":"^2.20.2","eslint-plugin-react":"^7.19.0","eslint-plugin-react-hooks":"^3.0.0"},"peerDependencies":{"eslint":"^6.8.0","typescript":"^3.8.3"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"aa18fc4196931e4912eea7dbdf5eb1e605861e44","bugs":{"url":"https://github.com/anjianshi/eslint-config/issues"},"_id":"@anjianshi/eslint-config@1.0.1","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qJn5IZO7krOdaO/QrOHKOK0Hd2RXFqziMgCNbC0C7dt3pyS8m8TS27h5ZO8jOPzkKgJCWSlR6S9md0tFh+79uA==","shasum":"8b58e429c54b80b38f145844a8c92d7cc061c49a","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.0.1.tgz","fileCount":11,"unpackedSize":10082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemRizCRA9TVsSAnZWagAAleMP/jQjYMVpFedUGwRyqiYK\n1KxSTXRTN6acSwudereAzD3QohPhQz+HL2hKerAwm9ITWMi5RgZwEcqucVd3\nGwP+nppzYqGBV0iouigiXZnko151vyHgSclIPk6T+LGH/K1UZGFb7Og4wtA2\nbn7dcUlx22IuGbOrZrYQpkjcodxTB1ON3ecimQ2gnb7elF5xAM/TqxmkjU/C\nwvW+CtaoMPqxchPwo/YV92Sa2h+3EIrSS245534Hwuszm3Yxnsf7rMJw8L1N\nIzYBfpa19B/WmjYNmsOMOvp+ml53xd9lIiR8RSZjV+VDFziBk9flRffzrIBN\n9eVMIvY2rN++cNj0gYVB9rbAbv7dGgG2afzvF//Q4kuYM9QLh+ujB568mM0S\nRPjKsmO6pFZoy3Hg4xxqhAgrEeNyCPJ4+rRw088CluYFKqJV+vVc7VU+Ye7u\nDHf5WpMy5hd6frvPAOIW6guQkIhrnqX8Hw6exM+qk6sAi3xL8SgLoc5C6SHp\n/FEDsefDz5UEM3FV+HA97oK95SSHg29MoQK/CLhsSwmBaJJLqVT1fGgUq8K4\nPUF/17Oq/jYvGtNSFFlkkr515SvonIHyXT9Srwf1OwD1Avjd7vEzETu1Zhue\nngtJuiabOayTWofOrjxb11O9e1obH2qaB3k+03Rv0a7hezdMjad0tyIpXnbF\n5Hd7\r\n=hYRK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC06I2NY1yYnkPNWEEgFDepEOXS3Do5dp8bMHrmtfCiTAIhAOsV35diwaBi917Wo1S6wvuglNpmb7ZRH2OsyEweKX0Q"}]},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.1_1587091635142_0.6438413478339651"},"_hasShrinkwrap":false},"1.0.2":{"name":"@anjianshi/eslint-config","version":"1.0.2","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"git+https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^2.28.0","@typescript-eslint/parser":"^2.28.0","babel-eslint":"^10.1.0","eslint-import-resolver-webpack":"^0.12.1","eslint-plugin-import":"^2.20.2","eslint-plugin-react":"^7.19.0","eslint-plugin-react-hooks":"^3.0.0"},"peerDependencies":{"eslint":"^6.8.0","typescript":"^3.8.3"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"14674e76f46b904e9d4cafe616f4720208d81289","bugs":{"url":"https://github.com/anjianshi/eslint-config/issues"},"_id":"@anjianshi/eslint-config@1.0.2","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/DlSyMgMsfjrOWu9s6HGZirlCah3mRTY5px5ueinTctcdOWPvIAA4oegMA2qcidL9huNS5/BS/InZcbUkYX2aw==","shasum":"6837ba116ca51d577e8ae28ed4e1da8ea6510fcb","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.0.2.tgz","fileCount":11,"unpackedSize":10229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemRzQCRA9TVsSAnZWagAA3EEP/30JV9OIJU1p1mCOFVh5\nYJzA4YVrCPfJgvsVl9uTipCArbXodTBhEWdcG2HcL4RhCGPvvS3oRsOPzyc8\nmwcYGj2BQxbnrgCXRKbdDiAUo0EeH6S7fOcben3/JseAn9+Q7eLvm9ytiq+N\nOB7RxvrAkr6O4KKeoQmV0ZdpNguDSGiDbgy6XS0uykiCSyo2dJRbUvt8JWlI\ns5eijMhBiJCFRHIsVLsxX3GxzfcRDZSHTP+ydwgAnIhRShzx2APnboU+eyRL\nxMxGzs7WoG14HjH9oivj1C+UU9MmkBPvO8Y9bQDbxcebb9l1nnltY7UJOKxu\nhZKuVsJSOOuO7HhBLbXmDTEkJTNbUEZNoVUwGULtQt4H2H8iMQxE4o97pOtV\n2G1tr3m28PttCPvB8ZqGazLvvUWCylL1ttsBlQRSAzGKj3GWbkpwxg0lMchH\nZH9xNlHIhTxPgIBHf7+zasXE1uhcn0WGcLQooEYKDKtvqkIGGY4aYK5S/oHt\nFPSn1a1OQ/XZ2V7EeDc8VUdiO2hou6TrA53KcBZjt3fE5xHSZ9ly1k9olu4X\nDzntocV0xxxa3WgcwETtqvpEFTnpPOwFcBDuwAZZ+dIr61Ykhkr9a0070+Ck\n+CEwsmA+lGxNtXNxjdRs8t8WrM/6LMp+uckL3EzINIGLCo/+JUvzBxShWiIA\nAka6\r\n=5Pi5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCT2FXUZeCqeXv0/IFH33qyRdiesI+/ojyUO8sdex9CAIgFd+kuIA5wdPvoiP7+p4U3M7Fa+cFooKj8AUIyAw/XpI="}]},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.2_1587092687610_0.9427242262693736"},"_hasShrinkwrap":false},"1.0.3":{"name":"@anjianshi/eslint-config","version":"1.0.3","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"license":"MIT","main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^2.28.0","@typescript-eslint/parser":"^2.28.0","babel-eslint":"^10.1.0","eslint-import-resolver-webpack":"^0.12.1","eslint-plugin-import":"^2.20.2","eslint-plugin-react":"^7.19.0","eslint-plugin-react-hooks":"^3.0.0"},"peerDependencies":{"eslint":"^6.8.0","typescript":"^3.8.3"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"licenseText":"(The MIT License)\n\nCopyright (c) anjianshi <anjianshi@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anjianshi/eslint-config@1.0.3","dist":{"shasum":"8d657f71cad5c00cd186f61000cb715bc3d94faf","integrity":"sha512-LD0Xq5e7uo9+rADPPxh1NceJPHvDVY6JUJM05dHNaW7a70JJgOqIMXpPa62J8p2YRX62kA1JfdqWfgffhBSTKQ==","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.0.3.tgz","fileCount":14,"unpackedSize":12178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep82/CRA9TVsSAnZWagAAx5EP/iYlW1XRqdKgCZOiHHw4\njWU5kskD5k/UcEHam89wzEwCTY5KhbaPXlj0r5o3j4ploLQV4HEotQfYoMoP\nfnxo2DHnRFZO9/YgXqUP85+pStKbi0D4DbW0kLTRQJ90owBJdqkBw6BwIPI9\n8HtZ8QHgbkhj7BI4H6tY3unocWnEp8X8BA1BfHkpAmhHiTtOdL7Vz7MHPre6\nYYMT7iRA+Rhiqk83MNlTt36ULjEeh0f9yx5xIdOwt8yTqs6Luuj8KUJcPDUA\neV65M1Eizfg+j9Ryv/zPv0b+AgKlZVHjVz0MX814bSFVQ2vpjsykFiGHLQRq\nj8zjs19Dl6UjVey6kpwL+KgxUV40EIsGpPMct2swjIuR5F6L6BjQNutLGMtM\nFPD+tRHEZ0BHV8k0Q+YnyFwCE/ioqKPED2EjRULrAxep4hh6rwK4Q+46akAm\nG+XiGI7/L02Qqb6o5yIJTPh660wsT8V7fphzgxWm65I/yLyXkm+9encT01mC\nfMU4B46MOGKKGs0Hfw8VIL1HtrAECuXdPyBshGnT1PD93mUXKwqaFY7oy0kb\nCZaWOtxK2cjntq3MeliuAvBViQCvEI0LgV7GElj7YkYSdOTf24onJ/ViWlxM\nNg8IKU+evDAwsLsgB7kKau8oqXkf1LWhgmvOW/u0u20sKRqz1WGA1zuCPs4h\nP+n1\r\n=VOnl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4OpQx3MGjt9rqsAkZSQS+Uh6k8HVEraCsAzSgs2loRAiEA8v76pSVFD1lEEro4dd2X2uKLx2ysZ3jlL5eaWAv2Tzs="}]},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.0.3_1588055486823_0.21616768189247249"},"_hasShrinkwrap":false},"1.1.0":{"name":"@anjianshi/eslint-config","version":"1.1.0","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"license":"MIT","main":"index.js","dependencies":{"@babel/eslint-parser":"^7.14.4","@typescript-eslint/eslint-plugin":"^4.26.1","@typescript-eslint/parser":"^4.26.1","eslint-import-resolver-webpack":"^0.13.1","eslint-plugin-import":"^2.23.4","eslint-plugin-react":"^7.24.0","eslint-plugin-react-hooks":"^4.2.0"},"peerDependencies":{"eslint":"^7.28.0","typescript":"^4.3.2"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"licenseText":"(The MIT License)\n\nCopyright (c) anjianshi <anjianshi@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anjianshi/eslint-config@1.1.0","dist":{"shasum":"366e5daf1cd535a44f6c3c50d1d0d0d04ab6dd12","integrity":"sha512-///20XEKKoSLgmq91twotwNdEfSyknX46UF6czSAa39jEYxGC7jywZ3hsJvIDbDrYUhlG+YVm7bufZpKD2aDbg==","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.1.0.tgz","fileCount":14,"unpackedSize":20612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwIijCRA9TVsSAnZWagAA1IgP/1Vgm3LQICMRyXnklb6Y\nU38rRI43upVYoXXPSA6+YXVWCoKhZl+/FzV/pXuDBPuIcgGkLZPasSw6VRyr\nDwhZKvh6Huvm4eDYPC0Tipdmoz8aDffimWliXpbtxgER7F+df1p3CSlx86No\nrQfOVpemV9LIwTtqQCoaD1rhyUTQF5HAB0K2awoqWzlh1dutd5Y+W1tW/I8r\nMdBIEO+P5kk6KvA6u1j3H/8ZiWK0AfZIm3pWeJpkx2HBHxbqoHdt6ce6VHqF\n64V/8Dj4KyBmB/+B+QqIZ7iszqLAQt75XmXTp2bTKu3jvHTMF8lxva708zO4\niY9MvwkSRN0J8E9fIM7LUF1zzjcuasT5eoWVyNeySpJq6Xtivj6EYFP6Hz0L\nSDs4zT1W/GcewrDkVjIG2uKcFSw6aEyvsYIOnA0wTWAO9gt6D33nLziGvqrq\n2k8MJWsAcdvNfzFXTl5y0Xs62qOA0aVTQIel3SEvt24sZtmyp8HeFSWe7JC4\nUa61y77Lk32Mi0Rx4nY082IKaoJ8FzwGv660UgLgwaokwiydqpyNsKY33GYp\nMoMoKgo5dyEQhMzG/AtbLT3Zydbz/DR4/u4h1sLNMajH4OrwsSxdgr+60nJU\n4uC0zCUg4awRV3u85kd2C1J3cFqRDD9YsnS7BseNKnpnlZsGc9RGfZ3Srkpx\nYwsb\r\n=FbQL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC17apy9qaILGxbjkYc/OAj6Z45lTrGTWB8ujDIMDj/rAIgbq8SlHLGsalNYqlMxQJO8EarjiNU4DiM+dB6IfwTpGM="}]},"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.1.0_1623230627849_0.6387105542307849"},"_hasShrinkwrap":false},"1.2.0":{"name":"@anjianshi/eslint-config","version":"1.2.0","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"license":"MIT","main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^5.12.1","@typescript-eslint/parser":"^5.12.1","eslint-import-resolver-webpack":"^0.13.2","eslint-plugin-import":"^2.25.4","eslint-plugin-react":"^7.28.0","eslint-plugin-react-hooks":"^4.3.0"},"peerDependencies":{"eslint":"^8.9.0","typescript":"^4.5.5"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"eslint":"^8.9.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"licenseText":"(The MIT License)\n\nCopyright (c) anjianshi <anjianshi@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anjianshi/eslint-config@1.2.0","dist":{"shasum":"7f5eebf1512892f39959e14f68205e8cc55680f8","integrity":"sha512-bAemTIbGp3X80kxl7YH0AjNiIWlXkps7Wm+ct6CzJr86fRjQkjgYyrIwDHm/aXncqmAL1OxhH42DSY2CpWhcbA==","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.2.0.tgz","fileCount":14,"unpackedSize":21392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFgxxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVExAAnraAA+/rnFJO5/WMjFK4uZXwCdCPnnFd4O/lONu8o2jcS1Ke\r\nv52A5jcoBeKFhmK1fyJZXfItLwEMInOzy3+sKQaN7OP2Lr56gGMSLfnBVJnU\r\nxYjoy/wlvFeNAuu01rshd5OYQK9AGA1a65CYJLHijDsrIHLdbBn0fUomjRlp\r\n6EV25bgfXpnKD8R+kOqyibEgHl1LASo/qv+Jpki3y4r0WcPQaswKGBD+lcl4\r\nMBT5YOYg0lKKxiYLNVgJQoZW5dPvR+oa85BHxkw4wC35+Q/Sp561RTeVqjxg\r\nAb4G4fJgMYeWPfbseqtKMRaMN2vFbOEHzOFCO0wSJmvX5xPNDb7QtLe/pZOQ\r\nj3PbwB0cn2/OSebJFkwejBE9PlkH76SdGdjKKrHZcokaKcBIFnLWMg6HorNA\r\n7nL6dhu5bBnS8Vr+nleRDU3ycWWGGSK2WDIF5I4r/1wKPjs9V31OY55TwLjB\r\n2CgOWxY3y9Jvl/vsy4xCu3MSsGUDK3PPVoWMpxmk7gII7/QkLAyAJ2EJCbWG\r\nYQZaYu/rpb0zIGlfl9xpymRQjXETtikGcH6mLphGL8hVd9Zqf2JtJrtN3ZWS\r\n1JdTLnbw+It3wLQGBo+Ntog1WOHsN8G2gMZ+5RaCzisn9ntWDcCyqr4N8mW8\r\nGXPG3SoBsU9bjTDdze43qtLYxE0UHg5uzLU=\r\n=tJzs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxHwecF24hMI9YRM4KweagDqkMekOQFtJGD+sT/tnQ7QIgDwHED3EveqjPEUhTELbTqFAtZ8FgRWBA+480wtYE8NQ="}]},"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.2.0_1645612145311_0.9185441596516941"},"_hasShrinkwrap":false},"1.2.1":{"name":"@anjianshi/eslint-config","version":"1.2.1","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"license":"MIT","main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^5.12.1","@typescript-eslint/parser":"^5.12.1","eslint-import-resolver-webpack":"^0.13.2","eslint-plugin-import":"^2.25.4","eslint-plugin-react":"^7.28.0","eslint-plugin-react-hooks":"^4.3.0"},"peerDependencies":{"eslint":"^8.9.0","typescript":"^4.5.5"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"eslint":"^8.9.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"licenseText":"(The MIT License)\n\nCopyright (c) anjianshi <anjianshi@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anjianshi/eslint-config@1.2.1","dist":{"shasum":"28e37b193f92f48133fcd3399c78342c422255a4","integrity":"sha512-JLpuFi36Bml+e+lpR/SRsC+nGZozOr3wpjOVFcic50pbAJmENluPcFjS/+t4DLxL5m4BJgXt8xIpnsIVihXXGQ==","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.2.1.tgz","fileCount":14,"unpackedSize":21683,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxkRJlYhbzgnPn8jU84FZgf/vaK7s5QvptxCeIBjyEyAiEAti8i+eWM35lpDhvpm8WuQpR6O+48gfGUV0tD637xYa0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSHW8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlkQ//cdYYuHXHHd54GqqZUFeuZPUWeoHceyUEuyEP/uXuiGVhPJdo\r\n4agVcJFon5ZC7yRojZRDtNIuoIBi339roKLctjINgEbst3QrZtsdtBgdv2ki\r\nkAaOiTDvlqkVe4zRA8S1S/pKR7lSjzAgwzfmjs9PwrtFf/HD5kFa0Y5O3Z3M\r\nX0qO5Iy+tUaxY5xY7g0SLuvBOyfEITNH9SGINovqaACH/fagcEOGGa+XjsIu\r\nHW1xyxrnVSDl3kQk4DfJIZ7p9eQjKwY2zDC6A085X+RSD6eCHsVL6vrfLOcQ\r\nlOmylx5W6BxZbrsehLntcdXDAqutfD5eMd1egOxrF0n3fblpafEbO5NlT1WQ\r\nKcGfytMUj0NxNnn2Cjl+7yO6Sk5ZCkmNzZzQrDPqFMiZ8EyY+hML++q3WPq3\r\nrWKaGZOzopJA31vc2lSEtZmWBcI1GzWFab7jXnfpYEORvVlF3km3ES0+Bp5i\r\nZOZHQSi8wfIvFBEBEL2RVEeC1njM0CketQYbJHxFhhtgkAp1mUP+CM/MdW7S\r\n6/I3wz8EsD6PA/3MiOn1vN6Y9/PMaOYVc5czj0bcO+AdDEmhmgf69wLfNbFb\r\nVSLbeZAaz9jd275RI4rhw2sF7yFx1fk+AWoFF4PpHwOh9suGxAycs9L9/zlX\r\nl0ot0wkKoyEtdjtBdkZsqdMokLRkn3jMwLo=\r\n=dHOJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.2.1_1648915900785_0.9458625699568544"},"_hasShrinkwrap":false},"1.2.2":{"name":"@anjianshi/eslint-config","version":"1.2.2","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"license":"MIT","main":"index.js","dependencies":{"@typescript-eslint/eslint-plugin":"^5.21.0","@typescript-eslint/parser":"^5.21.0","eslint-import-resolver-webpack":"^0.13.2","eslint-plugin-import":"^2.26.0","eslint-plugin-react":"^7.29.4","eslint-plugin-react-hooks":"^4.4.0"},"peerDependencies":{"eslint":"^8.12.0","typescript":"^4.7.2"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"eslint":"^8.12.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"licenseText":"(The MIT License)\n\nCopyright (c) anjianshi <anjianshi@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anjianshi/eslint-config@1.2.2","dist":{"shasum":"573c79cdc472c0a16d483ad214c468b8bfce2529","integrity":"sha512-Oj36F44NAYtK8pm3wWrAejy7dgej48QPeVUrx+ByEmzVw3v2Ca2mh2huD5Kds96bLKg7hFWuOFv9KIvvmAzUZQ==","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-1.2.2.tgz","fileCount":14,"unpackedSize":21820,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxVdUP0DOILKxlhQkrJVMb/y484stt3S7tH+zfr9NXLAiARgME14fik8LqimE91BbWZmJqJgVdrpqfdVFly6o/34g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimBJ2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpY1A/8DZGj0FvU9UYIec3IrqoLMYU+oUpkdupKqXv/s6crkxqCOWAL\r\nvFHXdI9WfT6RhYHuEbbPRtbvUqelSYpS+/fjiBN9vEwladbmH3ncAoUkkcC3\r\n3TdZK4hMFUzWJniXImfkBL7eVriFrL+Aye4WEccYNFjRDB9TB+S51uYaQCIc\r\nx3Ww1h18AVd2gliuXPLzc11x88EM74ZyCNR1LlSvkUJRbfjEqZyQtTqKuUBo\r\n34uJUtk+fYfF9es3hIopUcQ0z9+RX9dNgfk/CgG1fCxa2uvhI5f7BwvFTDu4\r\nNjBbYNEOEY/ZeHQ66yuiDe4tWv93Rp41Vd0Y0dSeq0mazpJheuy86V0Vs7Ls\r\nVysmtcqxgaw2SVTYEEj4iPODJknxV00kNJXqZui207SJKzMLQ3kZQbKPm6m3\r\nFFByqNFS1x/YdbpJyfymAHgsepo2YKC6Cr73Kqif/2r7BnF7Gn7Nds/CgTcu\r\n3BYwZfowAPhrGF1GrPcAZ8Cldnm7UuITGfWi+qXmiMlUTX9G81MVnCC3Uon/\r\n5jtUSzeSdOiGWVco0PpCu0eZZiX8XHIOo1KjUTNbQK36AX6xvHbpSeG57J6L\r\nul0ulYm/CvfZ+M7v5Uwr+VM4XVzm5S8CHxLlhLECUHxeS0AjXogwnkgI0aZZ\r\n2ti/HX9p5wsbqLXztePCNbqEBF2JafcBXNQ=\r\n=IxEn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_1.2.2_1654133366006_0.6881494013871825"},"_hasShrinkwrap":false},"2.0.0":{"name":"@anjianshi/eslint-config","version":"2.0.0","description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"license":"MIT","main":"base.js","dependencies":{"@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-ts-react-hooks":"^0.1.1"},"peerDependencies":{"eslint":"^8.33.0","eslint-import-resolver-typescript":"^3.5.3","typescript":"^4.9.5"},"peerDependenciesMeta":{"eslint-import-resolver-typescript":{"optional":true},"typescript":{"optional":true}},"devDependencies":{"eslint":"^8.33.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"licenseText":"(The MIT License)\n\nCopyright (c) anjianshi <anjianshi@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@anjianshi/eslint-config@2.0.0","dist":{"shasum":"880f81a4bf4a71b90d1da36ef418061151db599e","integrity":"sha512-WmxSWvHuSIbVrdj9QaQEY3cZEKJk4T8yoxZ5gjUjCSjbQidXwIOtGK1rcpk5sr66SzJ5YIr+MADHdPBOPgqb5w==","tarball":"https://registry.npmjs.org/@anjianshi/eslint-config/-/eslint-config-2.0.0.tgz","fileCount":8,"unpackedSize":14324,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFYbsK9YWrTIb//djjS6dijoDcpqLYb80l+UChm1etAAiADqI20DS/CEjL81hz0EkalxSgBjDVw5GGhKVTolUzhqA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/BOcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfnA//c2L7hq5SrjFGLRSL2q/tUlDVHVfRqIDqkN4ayTZkGqUTCxWP\r\nWLFuzhvaV5H51wiYK1UHG6hXwvGVwTHBsFeQrdWpOV5wVZ682ukT718iVeAv\r\nogbPuYzJQu9oEZKEMomvReyn0FWv3ooVvNJqdnQeEonVKYfqoEQHcTUhbVB5\r\nyhw+EpNdBVylcgf+yFhzfQLtq2VTssUHW1JB70LlNylTra1M9N4SmBSgw2wb\r\nAaAZ+TpkPouRzL4vWBBAs24d8/6jgr+4Q9F7KL24QA9Wr70a0uFfVLoAqVgD\r\nYL0wQ1C+eoCvqMRzzZY45iClah9OH/tNCUvU5+OQC92uzNVOkLQWayP8X+Ce\r\np8+rwv8LU6d9rYwA+UE9ob/uGOd1v5TpRqPvTLxUGVS5u2xE2gI1h8Vgqh6Z\r\ntcSZcl8SXqlR9IYj+4Pwa2/wyUMybPQrMsP6km1VYXP2HyN+ePC/XB+TYmFm\r\nUW++w7qB0abnTAXdK+OHzNpznGL9BQX+UC6fcrEtBWxIkBb+XnIioKf0brQP\r\n+N/humJnrph3UQETK0cMct6fbupJ+2PjyiT+nnb5e18jBz0aEzc0/5a2Thmo\r\nadOk6rFdkZL4Ruq+V6m4p4G7kuFEjaz93g5MZEkcxLLJ1bo8qAeG5tqYPN3k\r\nylyrFPk3dJp84A7sf5lc5uMYqXYu9JCq9N0=\r\n=9k+p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anjianshi","email":"anjianshi@gmail.com"},"directories":{},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config_2.0.0_1677464476502_0.9822963659450121"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-17T02:46:07.753Z","1.0.0":"2020-04-17T02:46:07.942Z","modified":"2023-02-27T02:21:16.876Z","1.0.1":"2020-04-17T02:47:15.331Z","1.0.2":"2020-04-17T03:04:47.810Z","1.0.3":"2020-04-28T06:31:26.990Z","1.1.0":"2021-06-09T09:23:47.982Z","1.2.0":"2022-02-23T10:29:05.442Z","1.2.1":"2022-04-02T16:11:40.935Z","1.2.2":"2022-06-02T01:29:26.159Z","2.0.0":"2023-02-27T02:21:16.803Z"},"maintainers":[{"name":"anjianshi","email":"anjianshi@gmail.com"}],"description":"公共 ESLint rules","homepage":"https://github.com/anjianshi/eslint-config.git","repository":{"type":"git","url":"https://github.com/anjianshi/eslint-config.git"},"author":{"name":"anjianshi"},"readme":"# 公共 ESLint Configs\n\n## 设计思路\n\n### 从简\n\n少开启规则，目标为“减少 bug 率”，而不是限制代码风格。\n\n### 不关注”代码样式“\n\n参考 [此文章](https://typescript-eslint.io/linting/troubleshooting/formatting/) 的建议，不开启代码样式规则，\n由专门的格式化工具（`Prettier` + `@anjianshi/prettier-config`）来控制它们。\n\n[被排除的规则列表](https://github.com/prettier/eslint-config-prettier/blob/main/index.js)，主要包括 ESLint 自身 `Layout & Formatting` 段落的全部规则和 TypeScript、React 插件的许多规则。\n\n---\n\n## 配置文件列表\n\n```yaml\nbase: 基础 JavaScript 规则\ntypescript: TypeScript 规则\nreact: React App 规则\nnode: Node.js 环境下的规则\n```\n\n- `typescript`、`react`、`node` 都包括了 `base` 的内容。\n- `react` 并未包含 `typescript`，如需用 `typescript` 写 React 应用，则两个都要引用。\n\n---\n\n## 如何使用\n\n### 安装\n\n```sh\nyarn add --dev eslint @anjianshi/eslint-config\n```\n\n### 配置 ESLint\n\n建立一个 `.eslintrc.js` 文件：  \n（若项目指定了 `{ \"type\": \"module\" }`，则要命名为 `.eslintrc.cjs`）\n\n```js\nmodule.exports = {\n  extends: [\n    '@anjianshi/eslint-config/base',\n    ...\n  ]\n}\n```\n\n### 配置 TypeScript\n\n1.  安装 TypeScript：\n\n    ```sh\n    yarn add --dev typescript\n    ```\n\n2.  `@anjianshi/eslint-config/typescript` 要求当前 ESLint 配置文件的同级目录里有一个 `tsconfig.json`。  \n    如果它在别的位置，则需在配置文件里指明：\n\n    ```js\n    module.exports = {\n      extends: [\n        '@anjianshi/eslint-config/base',\n        '@anjianshi/eslint-config/typescript',\n      ],\n      parserOptions: {\n        project: './src/tsconfig.json',\n      },\n    }\n    ```\n\n3.  如果在 TypeScript 项目里启用了 Node.js 原生 ES6 Module 或配置了 alias，  \n    则 `eslint-import-plugin` 需要配合 `eslint-import-resolver-typescript` 才能正确解析文件引用。\n\n    安装此依赖后，在 ESLint 配置里指明项目路径：\n\n    ```js\n    {\n      settings: {\n        'import/resolver': {\n          typescript: {\n            project: './'\n          }\n        }\n      }\n    }\n    ```\n\n### 配置 VSCode\n\n一、安装 VSCode 插件 `ESLint`\n\n二、修改 VSCode 设置（Code - Preferences - Settings）\n\n```js\n{\n  \"editor.tabSize\": 2,\n  \"files.insertFinalNewline\": true,\n  \"files.trimTrailingWhitespace\": true,\n\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": true\n  },\n  \"eslint.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    \"typescript\",\n    \"typescriptreact\",\n    \"html\",\n  ],\n  \"eslint.workingDirectories\": [{ \"mode\": \"auto\" }],\n}\n```\n\n三、关于 ESLint workingDirectories\n若 VSCode 的 workspace 配置成类似如下目录结构：\n\n```js\nprojects/     // /Users/me/office/projects/\n  proj-1/\n  proj-2/\n  ...\n\nlibrary/      // /Users/me/library/\n  lib-1/\n  lib-2/\n```\n\n也就是，workspace 下添加了多个独立的文件夹，每个独立文件夹下又有多个项目。\n在开发这些项目（`proj-1`、`lib-1`...）时，VSCode 默认会把顶层目录作为 ESLint 的 `workingDirectory`，从那个目录下加载插件等依赖，导致找不到依赖。\n在 VSCode 配置里指定 `{ \"mode\": \"auto\" }` 可解决此问题，它会让 VSCode 把 `package.json` 存在的目录作为 `workingDirectory`，也就能正常引入依赖了。\n\n---\n\n## 开发说明\n\n### 如何更新 ESLint 规则\n\n看 ESLint 及各插件的 ChangeLog，来补充、移除、调整规则定义。\n(规则文件里只定义和默认值不同的规则，例如默认不开启，也没准备开启的规则就不写下来)\n","readmeFilename":"README.md","license":"MIT"}