-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint(export): add no-restricted-exports rule
Enable all default export checks and use recommended named export check from airbnb cf. https://eslint.org/docs/rules/no-restricted-exports cf. https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js
- Loading branch information
Showing
5 changed files
with
53 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,21 +207,38 @@ | |
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" | ||
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== | ||
|
||
"@eslint/eslintrc@^1.4.1": | ||
version "1.4.1" | ||
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.4.1.tgz#af58772019a2d271b7e2d4c23ff4ddcba3ccfb3e" | ||
integrity sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA== | ||
"@eslint-community/eslint-utils@^4.2.0": | ||
version "4.3.0" | ||
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.3.0.tgz#a556790523a351b4e47e9d385f47265eaaf9780a" | ||
integrity sha512-v3oplH6FYCULtFuCeqyuTd9D2WKO937Dxdq+GmHOLL72TTRriLxz2VLlNfkZRsvj6PKnOPAtuT6dwrs/pA5DvA== | ||
dependencies: | ||
eslint-visitor-keys "^3.3.0" | ||
|
||
"@eslint-community/regexpp@^4.4.0": | ||
version "4.4.0" | ||
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.4.0.tgz#3e61c564fcd6b921cb789838631c5ee44df09403" | ||
integrity sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ== | ||
|
||
"@eslint/eslintrc@^2.0.1": | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.1.tgz#7888fe7ec8f21bc26d646dbd2c11cd776e21192d" | ||
integrity sha512-eFRmABvW2E5Ho6f5fHLqgena46rOj7r7OKHYfLElqcBfGFHHpjBhivyi5+jOEQuSpdc/1phIZJlbC2te+tZNIw== | ||
dependencies: | ||
ajv "^6.12.4" | ||
debug "^4.3.2" | ||
espree "^9.4.0" | ||
espree "^9.5.0" | ||
globals "^13.19.0" | ||
ignore "^5.2.0" | ||
import-fresh "^3.2.1" | ||
js-yaml "^4.1.0" | ||
minimatch "^3.1.2" | ||
strip-json-comments "^3.1.1" | ||
|
||
"@eslint/[email protected]": | ||
version "8.36.0" | ||
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.36.0.tgz#9837f768c03a1e4a30bd304a64fb8844f0e72efe" | ||
integrity sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg== | ||
|
||
"@humanwhocodes/config-array@^0.11.8": | ||
version "0.11.8" | ||
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" | ||
|
@@ -2089,12 +2106,15 @@ eslint-visitor-keys@^3.3.0: | |
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" | ||
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== | ||
|
||
eslint@8.31.0: | ||
version "8.31.0" | ||
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.31.0.tgz#75028e77cbcff102a9feae1d718135931532d524" | ||
integrity sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA== | ||
eslint@8.36.0: | ||
version "8.36.0" | ||
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.36.0.tgz#1bd72202200a5492f91803b113fb8a83b11285cf" | ||
integrity sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw== | ||
dependencies: | ||
"@eslint/eslintrc" "^1.4.1" | ||
"@eslint-community/eslint-utils" "^4.2.0" | ||
"@eslint-community/regexpp" "^4.4.0" | ||
"@eslint/eslintrc" "^2.0.1" | ||
"@eslint/js" "8.36.0" | ||
"@humanwhocodes/config-array" "^0.11.8" | ||
"@humanwhocodes/module-importer" "^1.0.1" | ||
"@nodelib/fs.walk" "^1.2.8" | ||
|
@@ -2105,10 +2125,9 @@ [email protected]: | |
doctrine "^3.0.0" | ||
escape-string-regexp "^4.0.0" | ||
eslint-scope "^7.1.1" | ||
eslint-utils "^3.0.0" | ||
eslint-visitor-keys "^3.3.0" | ||
espree "^9.4.0" | ||
esquery "^1.4.0" | ||
espree "^9.5.0" | ||
esquery "^1.4.2" | ||
esutils "^2.0.2" | ||
fast-deep-equal "^3.1.3" | ||
file-entry-cache "^6.0.1" | ||
|
@@ -2129,15 +2148,14 @@ [email protected]: | |
minimatch "^3.1.2" | ||
natural-compare "^1.4.0" | ||
optionator "^0.9.1" | ||
regexpp "^3.2.0" | ||
strip-ansi "^6.0.1" | ||
strip-json-comments "^3.1.0" | ||
text-table "^0.2.0" | ||
|
||
espree@^9.4.0: | ||
version "9.4.1" | ||
resolved "https://registry.yarnpkg.com/espree/-/espree-9.4.1.tgz#51d6092615567a2c2cff7833445e37c28c0065bd" | ||
integrity sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg== | ||
espree@^9.5.0: | ||
version "9.5.0" | ||
resolved "https://registry.yarnpkg.com/espree/-/espree-9.5.0.tgz#3646d4e3f58907464edba852fa047e6a27bdf113" | ||
integrity sha512-JPbJGhKc47++oo4JkEoTe2wjy4fmMwvFpgJT9cQzmfXKp22Dr6Hf1tdCteLz1h0P3t+mGvWZ+4Uankvh8+c6zw== | ||
dependencies: | ||
acorn "^8.8.0" | ||
acorn-jsx "^5.3.2" | ||
|
@@ -2148,10 +2166,10 @@ esprima@^4.0.0: | |
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" | ||
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== | ||
|
||
esquery@^1.4.0: | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" | ||
integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== | ||
esquery@^1.4.2: | ||
version "1.5.0" | ||
resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" | ||
integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== | ||
dependencies: | ||
estraverse "^5.1.0" | ||
|
||
|