Skip to content

Commit c3bb9b5

Browse files
authored
Update @eslint/eslintrc and use new API (#298)
1 parent 97217ad commit c3bb9b5

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

lib/utils/collect-keys.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ function collectKeyResourcesFromFiles(fileNames: string[], cwd: string) {
139139
const configArrayFactory = new CascadingConfigArrayFactory({
140140
additionalPluginPool: new Map([['@intlify/vue-i18n', require('../index')]]),
141141
cwd,
142+
getEslintRecommendedConfig() {
143+
return require('../../files/empty.json')
144+
},
145+
getEslintAllConfig() {
146+
return require('../../files/empty.json')
147+
},
142148
eslintRecommendedPath: require.resolve('../../files/empty.json'),
143149
eslintAllPath: require.resolve('../../files/empty.json')
144150
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"dependencies": {
27-
"@eslint/eslintrc": "^1.0.3",
27+
"@eslint/eslintrc": "^1.2.0",
2828
"@intlify/core-base": "^9.1.9",
2929
"@intlify/message-compiler": "^9.1.9",
3030
"debug": "^4.3.1",

yarn.lock

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
dependencies:
931931
"@cspotcode/source-map-consumer" "0.8.0"
932932

933-
"@eslint/eslintrc@^1.0.3", "@eslint/eslintrc@^1.0.4":
933+
"@eslint/eslintrc@^1.0.4":
934934
version "1.0.4"
935935
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.0.4.tgz#dfe0ff7ba270848d10c5add0715e04964c034b31"
936936
integrity sha512-h8Vx6MdxwWI2WM8/zREHMoqdgLNXEL4QX3MWSVMdyNJGvXVOs+6lp+m2hc3FnuMHDc4poxFNI20vCk0OmI4G0Q==
@@ -945,6 +945,21 @@
945945
minimatch "^3.0.4"
946946
strip-json-comments "^3.1.1"
947947

948+
"@eslint/eslintrc@^1.2.0":
949+
version "1.2.0"
950+
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.2.0.tgz#7ce1547a5c46dfe56e1e45c3c9ed18038c721c6a"
951+
integrity sha512-igm9SjJHNEJRiUnecP/1R5T3wKLEJ7pL6e2P+GUSfCd0dGjPYYZve08uzw8L2J8foVHFz+NGu12JxRcU2gGo6w==
952+
dependencies:
953+
ajv "^6.12.4"
954+
debug "^4.3.2"
955+
espree "^9.3.1"
956+
globals "^13.9.0"
957+
ignore "^4.0.6"
958+
import-fresh "^3.2.1"
959+
js-yaml "^4.1.0"
960+
minimatch "^3.0.4"
961+
strip-json-comments "^3.1.1"
962+
948963
"@gar/promisify@^1.0.1":
949964
version "1.1.2"
950965
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.2.tgz#30aa825f11d438671d585bd44e7fd564535fc210"
@@ -1922,6 +1937,11 @@ acorn@^8.4.1, acorn@^8.5.0:
19221937
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.6.0.tgz#e3692ba0eb1a0c83eaa4f37f5fa7368dd7142895"
19231938
integrity sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==
19241939

1940+
acorn@^8.7.0:
1941+
version "8.7.0"
1942+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
1943+
integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
1944+
19251945
add-stream@^1.0.0:
19261946
version "1.0.0"
19271947
resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa"
@@ -4352,6 +4372,11 @@ eslint-visitor-keys@^3.0.0:
43524372
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2"
43534373
integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==
43544374

4375+
eslint-visitor-keys@^3.3.0:
4376+
version "3.3.0"
4377+
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
4378+
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
4379+
43554380
eslint4b@^7.16.0:
43564381
version "7.32.0"
43574382
resolved "https://registry.yarnpkg.com/eslint4b/-/eslint4b-7.32.0.tgz#50e3522fbc9047cd5dd96d63c0baa42c4fbd0f34"
@@ -4450,6 +4475,15 @@ espree@^9.0.0:
44504475
acorn-jsx "^5.3.1"
44514476
eslint-visitor-keys "^3.0.0"
44524477

4478+
espree@^9.3.1:
4479+
version "9.3.1"
4480+
resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.1.tgz#8793b4bc27ea4c778c19908e0719e7b8f4115bcd"
4481+
integrity sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ==
4482+
dependencies:
4483+
acorn "^8.7.0"
4484+
acorn-jsx "^5.3.1"
4485+
eslint-visitor-keys "^3.3.0"
4486+
44534487
esprima@^4.0.0:
44544488
version "4.0.1"
44554489
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"

0 commit comments

Comments
 (0)