Skip to content

Commit 999f116

Browse files
committed
eslint
1 parent cb0bed0 commit 999f116

File tree

3 files changed

+44
-11
lines changed

3 files changed

+44
-11
lines changed

.eslintrc.js

+2-9
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,15 @@ module.exports = {
44
es2021: true,
55
node: true
66
},
7-
extends: [
8-
'plugin:react/recommended',
9-
'plugin:@next/next/recommended',
10-
'standard'
11-
],
7+
extends: ['plugin:react/recommended', 'plugin:@next/next/recommended', 'standard', 'prettier'],
128
parserOptions: {
139
ecmaFeatures: {
1410
jsx: true
1511
},
1612
ecmaVersion: 12,
1713
sourceType: 'module'
1814
},
19-
plugins: [
20-
'react',
21-
'react-hooks'
22-
],
15+
plugins: ['react', 'react-hooks', 'prettier'],
2316
settings: {
2417
react: {
2518
version: 'detect'

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@
5757
"cross-env": "^7.0.3",
5858
"eslint": "^7.26.0",
5959
"eslint-config-next": "^13.1.1",
60+
"eslint-config-prettier": "^9.1.0",
6061
"eslint-config-standard": "^16.0.2",
6162
"eslint-plugin-import": "^2.23.0",
6263
"eslint-plugin-node": "^11.1.0",
64+
"eslint-plugin-prettier": "^5.1.3",
6365
"eslint-plugin-promise": "^5.1.0",
6466
"eslint-plugin-react": "^7.23.2",
6567
"eslint-plugin-react-hooks": "^4.6.0",
@@ -76,4 +78,4 @@
7678
"url": "https://github.com/tangly/NotionNext/issues",
7779
"email": "[email protected]"
7880
}
79-
}
81+
}

yarn.lock

+39-1
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,11 @@
869869
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
870870
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
871871

872+
"@pkgr/core@^0.1.0":
873+
version "0.1.1"
874+
resolved "https://r.cnpmjs.org/@pkgr/core/-/core-0.1.1.tgz#1ec17e2edbec25c8306d424ecfbf13c7de1aaa31"
875+
integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==
876+
872877
"@polka/url@^1.0.0-next.20", "@polka/url@^1.0.0-next.24":
873878
version "1.0.0-next.24"
874879
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.24.tgz#58601079e11784d20f82d0585865bb42305c4df3"
@@ -2415,6 +2420,11 @@ eslint-config-next@^13.1.1:
24152420
eslint-plugin-react "^7.33.2"
24162421
eslint-plugin-react-hooks "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"
24172422

2423+
eslint-config-prettier@^9.1.0:
2424+
version "9.1.0"
2425+
resolved "https://r.cnpmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f"
2426+
integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==
2427+
24182428
eslint-config-standard@^16.0.2:
24192429
version "16.0.3"
24202430
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-16.0.3.tgz#6c8761e544e96c531ff92642eeb87842b8488516"
@@ -2514,6 +2524,14 @@ eslint-plugin-node@^11.1.0:
25142524
resolve "^1.10.1"
25152525
semver "^6.1.0"
25162526

2527+
eslint-plugin-prettier@^5.1.3:
2528+
version "5.1.3"
2529+
resolved "https://r.cnpmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz#17cfade9e732cef32b5f5be53bd4e07afd8e67e1"
2530+
integrity sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==
2531+
dependencies:
2532+
prettier-linter-helpers "^1.0.0"
2533+
synckit "^0.8.6"
2534+
25172535
eslint-plugin-promise@^5.1.0:
25182536
version "5.2.0"
25192537
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-5.2.0.tgz#a596acc32981627eb36d9d75f9666ac1a4564971"
@@ -2685,6 +2703,11 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
26852703
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
26862704
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
26872705

2706+
fast-diff@^1.1.2:
2707+
version "1.3.0"
2708+
resolved "https://r.cnpmjs.org/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0"
2709+
integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==
2710+
26882711
fast-glob@^3.2.9, fast-glob@^3.3.0, fast-glob@^3.3.1:
26892712
version "3.3.2"
26902713
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
@@ -4133,6 +4156,13 @@ prelude-ls@^1.2.1:
41334156
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
41344157
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
41354158

4159+
prettier-linter-helpers@^1.0.0:
4160+
version "1.0.0"
4161+
resolved "https://r2.cnpmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
4162+
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
4163+
dependencies:
4164+
fast-diff "^1.1.2"
4165+
41364166
41374167
version "3.2.5"
41384168
resolved "https://r.cnpmjs.org/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
@@ -4831,6 +4861,14 @@ supports-preserve-symlinks-flag@^1.0.0:
48314861
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
48324862
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
48334863

4864+
synckit@^0.8.6:
4865+
version "0.8.8"
4866+
resolved "https://r.cnpmjs.org/synckit/-/synckit-0.8.8.tgz#fe7fe446518e3d3d49f5e429f443cf08b6edfcd7"
4867+
integrity sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==
4868+
dependencies:
4869+
"@pkgr/core" "^0.1.0"
4870+
tslib "^2.6.2"
4871+
48344872
table@^6.0.9:
48354873
version "6.8.1"
48364874
resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf"
@@ -4968,7 +5006,7 @@ tslib@^1.11.1:
49685006
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
49695007
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
49705008

4971-
tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0:
5009+
tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.2:
49725010
version "2.6.2"
49735011
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
49745012
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==

0 commit comments

Comments
 (0)