Skip to content

Commit 4825173

Browse files
build: change eslint configuration
1 parent 3fc766d commit 4825173

File tree

4 files changed

+41
-17
lines changed

4 files changed

+41
-17
lines changed

.eslintrc.js

-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
/** @type {import("eslint").Linter.Config} */
33
module.exports = {
44
extends: ["@framesjs/eslint-config/library.js"],
5-
parser: "@typescript-eslint/parser",
65
parserOptions: {
76
project: true,
87
},
9-
env: {
10-
jest: true,
11-
},
128
};

packages/eslint-config/library.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ const project = resolve(process.cwd(), "tsconfig.json");
44

55
/** @type {import("eslint").Linter.Config} */
66
module.exports = {
7-
extends: ["eslint:recommended", "prettier", "eslint-config-turbo"],
8-
plugins: ["only-warn"],
9-
globals: {
10-
React: true,
11-
JSX: true,
12-
},
13-
env: {
14-
node: true,
15-
},
7+
extends: [
8+
require.resolve("@vercel/style-guide/eslint/node"),
9+
require.resolve("@vercel/style-guide/eslint/jest-react"),
10+
require.resolve("@vercel/style-guide/eslint/react"),
11+
require.resolve("@vercel/style-guide/eslint/typescript"),
12+
],
1613
settings: {
1714
"import/resolver": {
1815
typescript: {
@@ -31,4 +28,9 @@ module.exports = {
3128
files: ["*.js?(x)", "*.ts?(x)"],
3229
},
3330
],
31+
rules: {
32+
"@typescript-eslint/consistent-type-definitions": "off",
33+
"@typescript-eslint/require-await": "warn",
34+
"unicorn/filename-case": "warn",
35+
},
3436
};

turbo.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"outputs": [".next/**", "**/dist/**", "!.next/cache/**"]
88
},
99
"lint": {
10-
"dependsOn": ["^lint"]
10+
"dependsOn": ["^lint"],
11+
"cache": false
1112
},
1213
"dev": {
1314
"cache": false,

yarn.lock

+28-3
Original file line numberDiff line numberDiff line change
@@ -13456,7 +13456,16 @@ string-length@^4.0.1:
1345613456
char-regex "^1.0.2"
1345713457
strip-ansi "^6.0.0"
1345813458

13459-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
13459+
"string-width-cjs@npm:string-width@^4.2.0":
13460+
version "4.2.3"
13461+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
13462+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
13463+
dependencies:
13464+
emoji-regex "^8.0.0"
13465+
is-fullwidth-code-point "^3.0.0"
13466+
strip-ansi "^6.0.1"
13467+
13468+
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1346013469
version "4.2.3"
1346113470
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1346213471
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -13563,7 +13572,14 @@ stringify-entities@^4.0.0:
1356313572
character-entities-html4 "^2.0.0"
1356413573
character-entities-legacy "^3.0.0"
1356513574

13566-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
13575+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
13576+
version "6.0.1"
13577+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
13578+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
13579+
dependencies:
13580+
ansi-regex "^5.0.1"
13581+
13582+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1356713583
version "6.0.1"
1356813584
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1356913585
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -15018,7 +15034,7 @@ wrangler@3.39.0, wrangler@^3.39.0:
1501815034
optionalDependencies:
1501915035
fsevents "~2.3.2"
1502015036

15021-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
15037+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
1502215038
version "7.0.0"
1502315039
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1502415040
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -15036,6 +15052,15 @@ wrap-ansi@^6.2.0:
1503615052
string-width "^4.1.0"
1503715053
strip-ansi "^6.0.0"
1503815054

15055+
wrap-ansi@^7.0.0:
15056+
version "7.0.0"
15057+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
15058+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
15059+
dependencies:
15060+
ansi-styles "^4.0.0"
15061+
string-width "^4.1.0"
15062+
strip-ansi "^6.0.0"
15063+
1503915064
wrap-ansi@^8.1.0:
1504015065
version "8.1.0"
1504115066
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)