chore: update linter

This commit is contained in:
Anthony Fu 2021-01-23 15:55:10 +08:00
parent 04cc6fcf87
commit 2da8fb1e79
3 changed files with 175 additions and 4 deletions

View File

@ -14,7 +14,7 @@
"vue-router": "^4.0.3" "vue-router": "^4.0.3"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config-vue": "^0.4.3", "@antfu/eslint-config": "^0.4.3",
"@iconify/json": "^1.1.290", "@iconify/json": "^1.1.290",
"@intlify/vite-plugin-vue-i18n": "^1.0.0-beta.12", "@intlify/vite-plugin-vue-i18n": "^1.0.0-beta.12",
"@tailwindcss/typography": "^0.4.0", "@tailwindcss/typography": "^0.4.0",
@ -41,7 +41,7 @@
"vite-ssg": "^0.4.1" "vite-ssg": "^0.4.1"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "@antfu/eslint-config-vue", "extends": "@antfu/eslint-config",
"rules": { "rules": {
"no-unused-vars": "off", "no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off" "@typescript-eslint/no-unused-vars": "off"

View File

@ -7,7 +7,7 @@ dependencies:
vue-i18n: 9.0.0-rc.4_vue@3.0.5 vue-i18n: 9.0.0-rc.4_vue@3.0.5
vue-router: 4.0.3_vue@3.0.5 vue-router: 4.0.3_vue@3.0.5
devDependencies: devDependencies:
'@antfu/eslint-config-vue': 0.4.3_eslint@7.18.0+typescript@4.1.3 '@antfu/eslint-config': 0.4.3_eslint@7.18.0+typescript@4.1.3
'@iconify/json': 1.1.290 '@iconify/json': 1.1.290
'@intlify/vite-plugin-vue-i18n': 1.0.0-beta.12 '@intlify/vite-plugin-vue-i18n': 1.0.0-beta.12
'@tailwindcss/typography': 0.4.0_tailwindcss@2.0.2 '@tailwindcss/typography': 0.4.0_tailwindcss@2.0.2
@ -49,6 +49,17 @@ packages:
eslint: '>=7.4.0' eslint: '>=7.4.0'
resolution: resolution:
integrity: sha512-XDkJvR76mG1DWOnrS5iNG6QqUDroC0N5UrWJckyes11P5c3Witr6cUJZTuUDgl4iIJQvz+xiDezwRa3NNHM4yA== integrity: sha512-XDkJvR76mG1DWOnrS5iNG6QqUDroC0N5UrWJckyes11P5c3Witr6cUJZTuUDgl4iIJQvz+xiDezwRa3NNHM4yA==
/@antfu/eslint-config-react/0.4.3_eslint@7.18.0+typescript@4.1.3:
dependencies:
'@antfu/eslint-config-ts': 0.4.3_eslint@7.18.0+typescript@4.1.3
eslint: 7.18.0
eslint-plugin-react: 7.22.0_eslint@7.18.0
dev: true
peerDependencies:
eslint: '>=7.4.0'
typescript: '*'
resolution:
integrity: sha512-3/35G5xEKXjLThp6HNALoAO6uRr8AvOMl97Jt/obSzg7yhpT9gCclaILFyWkioHses2EyluqArF1g5Yl6Lgbdg==
/@antfu/eslint-config-ts/0.4.3_eslint@7.18.0+typescript@4.1.3: /@antfu/eslint-config-ts/0.4.3_eslint@7.18.0+typescript@4.1.3:
dependencies: dependencies:
'@antfu/eslint-config-basic': 0.4.3_eslint@7.18.0 '@antfu/eslint-config-basic': 0.4.3_eslint@7.18.0
@ -73,6 +84,17 @@ packages:
typescript: '*' typescript: '*'
resolution: resolution:
integrity: sha512-WAvCnFt+StRUMHoc7ixnUdH9Qc7P5wVWvd6p8NgADv7za11MFqQ6O7Q01JqdpwAD6kAr8DD6ckkNpZ+5mQSFIQ== integrity: sha512-WAvCnFt+StRUMHoc7ixnUdH9Qc7P5wVWvd6p8NgADv7za11MFqQ6O7Q01JqdpwAD6kAr8DD6ckkNpZ+5mQSFIQ==
/@antfu/eslint-config/0.4.3_eslint@7.18.0+typescript@4.1.3:
dependencies:
'@antfu/eslint-config-react': 0.4.3_eslint@7.18.0+typescript@4.1.3
'@antfu/eslint-config-vue': 0.4.3_eslint@7.18.0+typescript@4.1.3
eslint: 7.18.0
dev: true
peerDependencies:
eslint: '>=7.4.0'
typescript: '*'
resolution:
integrity: sha512-+vO8S0AGIdRm3ow5RsnfRSNWDrtZuw7W7QjdZvZv7kfNq8erDCucK+bl4pVMW1S7HEnizBj83CKObpirnIjaIg==
/@babel/code-frame/7.12.11: /@babel/code-frame/7.12.11:
dependencies: dependencies:
'@babel/highlight': 7.10.4 '@babel/highlight': 7.10.4
@ -1729,6 +1751,17 @@ packages:
node: '>= 0.4' node: '>= 0.4'
resolution: resolution:
integrity: sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg== integrity: sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==
/array.prototype.flatmap/1.2.4:
dependencies:
call-bind: 1.0.2
define-properties: 1.1.3
es-abstract: 1.18.0-next.2
function-bind: 1.1.1
dev: true
engines:
node: '>= 0.4'
resolution:
integrity: sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q==
/asn1/0.2.4: /asn1/0.2.4:
dependencies: dependencies:
safer-buffer: 2.1.2 safer-buffer: 2.1.2
@ -2227,6 +2260,14 @@ packages:
node: '>=0.10.0' node: '>=0.10.0'
resolution: resolution:
integrity: sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= integrity: sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=
/doctrine/2.1.0:
dependencies:
esutils: 2.0.3
dev: true
engines:
node: '>=0.10.0'
resolution:
integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==
/doctrine/3.0.0: /doctrine/3.0.0:
dependencies: dependencies:
esutils: 2.0.3 esutils: 2.0.3
@ -2325,6 +2366,24 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==
/es-abstract/1.17.7:
dependencies:
es-to-primitive: 1.2.1
function-bind: 1.1.1
has: 1.0.3
has-symbols: 1.0.1
is-callable: 1.2.2
is-regex: 1.1.1
object-inspect: 1.9.0
object-keys: 1.1.1
object.assign: 4.1.2
string.prototype.trimend: 1.0.3
string.prototype.trimstart: 1.0.3
dev: true
engines:
node: '>= 0.4'
resolution:
integrity: sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==
/es-abstract/1.18.0-next.2: /es-abstract/1.18.0-next.2:
dependencies: dependencies:
call-bind: 1.0.2 call-bind: 1.0.2
@ -2492,6 +2551,27 @@ packages:
node: '>=6' node: '>=6'
resolution: resolution:
integrity: sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw== integrity: sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==
/eslint-plugin-react/7.22.0_eslint@7.18.0:
dependencies:
array-includes: 3.1.2
array.prototype.flatmap: 1.2.4
doctrine: 2.1.0
eslint: 7.18.0
has: 1.0.3
jsx-ast-utils: 3.2.0
object.entries: 1.1.3
object.fromentries: 2.0.3
object.values: 1.1.2
prop-types: 15.7.2
resolve: 1.19.0
string.prototype.matchall: 4.0.3
dev: true
engines:
node: '>=4'
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7
resolution:
integrity: sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA==
/eslint-plugin-standard/4.1.0_eslint@7.18.0: /eslint-plugin-standard/4.1.0_eslint@7.18.0:
dependencies: dependencies:
eslint: 7.18.0 eslint: 7.18.0
@ -3097,6 +3177,16 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
/internal-slot/1.0.2:
dependencies:
es-abstract: 1.17.7
has: 1.0.3
side-channel: 1.0.4
dev: true
engines:
node: '>= 0.4'
resolution:
integrity: sha512-2cQNfwhAfJIkU4KZPkDI+Gj5yNNnbqi40W9Gge6dfnk4TocEVm00B3bdiL+JINrbGJil2TeHvM4rETGzk/f/0g==
/ip-regex/2.1.0: /ip-regex/2.1.0:
dev: true dev: true
engines: engines:
@ -3373,6 +3463,15 @@ packages:
'0': node >=0.6.0 '0': node >=0.6.0
resolution: resolution:
integrity: sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= integrity: sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=
/jsx-ast-utils/3.2.0:
dependencies:
array-includes: 3.1.2
object.assign: 4.1.2
dev: true
engines:
node: '>=4.0'
resolution:
integrity: sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==
/kind-of/6.0.3: /kind-of/6.0.3:
dev: true dev: true
engines: engines:
@ -3484,6 +3583,13 @@ packages:
/lodash/4.17.20: /lodash/4.17.20:
resolution: resolution:
integrity: sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== integrity: sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
/loose-envify/1.4.0:
dependencies:
js-tokens: 4.0.0
dev: true
hasBin: true
resolution:
integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
/lru-cache/5.1.1: /lru-cache/5.1.1:
dependencies: dependencies:
yallist: 3.1.1 yallist: 3.1.1
@ -3675,6 +3781,28 @@ packages:
node: '>= 0.4' node: '>= 0.4'
resolution: resolution:
integrity: sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== integrity: sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==
/object.entries/1.1.3:
dependencies:
call-bind: 1.0.2
define-properties: 1.1.3
es-abstract: 1.18.0-next.2
has: 1.0.3
dev: true
engines:
node: '>= 0.4'
resolution:
integrity: sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg==
/object.fromentries/2.0.3:
dependencies:
call-bind: 1.0.2
define-properties: 1.1.3
es-abstract: 1.18.0-next.2
has: 1.0.3
dev: true
engines:
node: '>= 0.4'
resolution:
integrity: sha512-IDUSMXs6LOSJBWE++L0lzIbSqHl9KDCfff2x/JSEIDtEUavUnyMYC2ZGay/04Zq4UT8lvd4xNhU4/YHKibAOlw==
/object.values/1.1.2: /object.values/1.1.2:
dependencies: dependencies:
call-bind: 1.0.2 call-bind: 1.0.2
@ -4039,6 +4167,14 @@ packages:
node: '>=0.4.0' node: '>=0.4.0'
resolution: resolution:
integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
/prop-types/15.7.2:
dependencies:
loose-envify: 1.4.0
object-assign: 4.1.1
react-is: 16.13.1
dev: true
resolution:
integrity: sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
/psl/1.8.0: /psl/1.8.0:
dev: true dev: true
resolution: resolution:
@ -4071,6 +4207,10 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
/react-is/16.13.1:
dev: true
resolution:
integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
/read-pkg-up/2.0.0: /read-pkg-up/2.0.0:
dependencies: dependencies:
find-up: 2.1.0 find-up: 2.1.0
@ -4145,6 +4285,15 @@ packages:
hasBin: true hasBin: true
resolution: resolution:
integrity: sha512-+7HWfb4Bvu8Rs2eQTUIpX9I/PlQkYOuTNbRpKLJlQpSgwSkzFYh+pUj0gtvglnOZLKB6YgnIgRuJ2/IlpL48qw== integrity: sha512-+7HWfb4Bvu8Rs2eQTUIpX9I/PlQkYOuTNbRpKLJlQpSgwSkzFYh+pUj0gtvglnOZLKB6YgnIgRuJ2/IlpL48qw==
/regexp.prototype.flags/1.3.1:
dependencies:
call-bind: 1.0.2
define-properties: 1.1.3
dev: true
engines:
node: '>= 0.4'
resolution:
integrity: sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==
/regexpp/3.1.0: /regexpp/3.1.0:
dev: true dev: true
engines: engines:
@ -4380,6 +4529,14 @@ packages:
node: '>=8' node: '>=8'
resolution: resolution:
integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
/side-channel/1.0.4:
dependencies:
call-bind: 1.0.2
get-intrinsic: 1.0.2
object-inspect: 1.9.0
dev: true
resolution:
integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==
/simple-swizzle/0.2.2: /simple-swizzle/0.2.2:
dependencies: dependencies:
is-arrayish: 0.3.2 is-arrayish: 0.3.2
@ -4497,6 +4654,18 @@ packages:
node: '>=8' node: '>=8'
resolution: resolution:
integrity: sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== integrity: sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==
/string.prototype.matchall/4.0.3:
dependencies:
call-bind: 1.0.2
define-properties: 1.1.3
es-abstract: 1.18.0-next.2
has-symbols: 1.0.1
internal-slot: 1.0.2
regexp.prototype.flags: 1.3.1
side-channel: 1.0.4
dev: true
resolution:
integrity: sha512-OBxYDA2ifZQ2e13cP82dWFMaCV9CGF8GzmN4fljBVw5O5wep0lu4gacm1OL6MjROoUnB8VbkWRThqkV2YFLNxw==
/string.prototype.trimend/1.0.3: /string.prototype.trimend/1.0.3:
dependencies: dependencies:
call-bind: 1.0.2 call-bind: 1.0.2
@ -5313,7 +5482,7 @@ packages:
resolution: resolution:
integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==
specifiers: specifiers:
'@antfu/eslint-config-vue': ^0.4.3 '@antfu/eslint-config': ^0.4.3
'@iconify/json': ^1.1.290 '@iconify/json': ^1.1.290
'@intlify/vite-plugin-vue-i18n': ^1.0.0-beta.12 '@intlify/vite-plugin-vue-i18n': ^1.0.0-beta.12
'@tailwindcss/typography': ^0.4.0 '@tailwindcss/typography': ^0.4.0

View File

@ -10,6 +10,8 @@
"skipLibCheck": true, "skipLibCheck": true,
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"types": ["vite/client"], "types": ["vite/client"],
"paths": { "paths": {