Skip to content

Commit 73b447b

Browse files
committed
build: 🔧 Add eslint, prettier and typescript configurations
Configured eslint, prettier and typescript base configurations
1 parent f46cb78 commit 73b447b

5 files changed

Lines changed: 594 additions & 6 deletions

File tree

.eslintrc.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"**/*"
5+
],
6+
"plugins": [
7+
"@nx"
8+
],
9+
"overrides": [
10+
{
11+
"files": [
12+
"*.ts",
13+
"*.tsx",
14+
"*.js",
15+
"*.jsx"
16+
],
17+
"rules": {
18+
"@nx/enforce-module-boundaries": [
19+
"error",
20+
{
21+
"enforceBuildableLibDependency": true,
22+
"allow": [],
23+
"depConstraints": [
24+
{
25+
"sourceTag": "*",
26+
"onlyDependOnLibsWithTags": [
27+
"*"
28+
]
29+
}
30+
]
31+
}
32+
]
33+
}
34+
},
35+
{
36+
"files": [
37+
"*.ts",
38+
"*.tsx"
39+
],
40+
"extends": [
41+
"plugin:@nx/typescript"
42+
],
43+
"rules": {}
44+
},
45+
{
46+
"files": [
47+
"*.js",
48+
"*.jsx"
49+
],
50+
"extends": [
51+
"plugin:@nx/javascript"
52+
],
53+
"rules": {}
54+
}
55+
]
56+
}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"endOfLine": "lf"
6+
}

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@
2525
]
2626
},
2727
"devDependencies": {
28-
"eslint": "^9.8.0",
28+
"@eslint/js": "^9.9.0",
29+
"@nx/eslint": "19.5.7",
30+
"esbuild": "0.23.0",
31+
"eslint": "^9.9.0",
32+
"globals": "^15.9.0",
2933
"husky": "^9.1.4",
3034
"lint-staged": "^15.2.7",
35+
"nx": "19.5.7",
3136
"prettier": "^3.3.3",
3237
"typescript": "^5.2.2",
33-
"nx": "19.5.7",
34-
"@nx/eslint": "19.5.7"
38+
"typescript-eslint": "^8.0.1"
3539
},
3640
"keywords": [
3741
"web",
3842
"browser",
3943
"api"
4044
],
4145
"author": "factman",
42-
"license": "MIT",
43-
"dependencies": {}
46+
"license": "MIT"
4447
}

0 commit comments

Comments
 (0)