Skip to content

Commit 8689375

Browse files
committed
chore: add airbnb style lint config
1 parent 476bb6c commit 8689375

File tree

4 files changed

+26
-30
lines changed

4 files changed

+26
-30
lines changed

.lintstagedrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"apps/**/*.{js,ts,jsx,tsx}": ["eslint --config eslint.config.js --fix"],
3+
"packages/**/*.{js,ts,jsx,tsx}": ["eslint --config eslint.config.js --fix"],
34
"packages/ui/**/*.{js,ts,jsx,tsx}": [
45
"eslint --config eslint.config.js --fix"
56
],

.vscode/settings.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"eslint.workingDirectories": [
3-
{
4-
"mode": "auto"
5-
}
6-
]
2+
"eslint.workingDirectories": ["."]
73
}

eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from 'path';
21
import js from '@eslint/js';
32
import globals from 'globals';
43
import reactRecommended from 'eslint-plugin-react/configs/recommended.js';
@@ -67,8 +66,8 @@ export default [
6766
},
6867
rules: {
6968
// TypeScript-specific rules
70-
'@typescript-eslint/no-unused-vars': 'warn',
71-
'@typescript-eslint/no-explicit-any': 'warn',
69+
'@typescript-eslint/no-unused-vars': 'error',
70+
'@typescript-eslint/no-explicit-any': 'error',
7271

7372
// React specific rules
7473
'react/jsx-filename-extension': [1, {

turbo.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"$schema": "https://turbo.build/schema.json",
3-
"ui": "tui",
4-
"globalEnv": ["NODE_ENV", "API_URL", "DATABASE_URL"],
5-
"globalDependencies": [".env", ".env.local"],
6-
"tasks": {
7-
"build": {
8-
"inputs": ["$TURBO_DEFAULT$", ".env*"],
9-
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
10-
"dependsOn": ["^build"]
11-
},
12-
"dev": {
13-
"cache": false,
14-
"persistent": true
15-
},
16-
"test": {},
17-
"lint": {
18-
"dependsOn": ["^lint"]
19-
},
20-
"clean": {
21-
"cache": false
22-
}
23-
}
2+
"$schema": "https://turbo.build/schema.json",
3+
"ui": "tui",
4+
"globalEnv": ["NODE_ENV", "API_URL", "DATABASE_URL"],
5+
"globalDependencies": [".env", ".env.local"],
6+
"tasks": {
7+
"build": {
8+
"inputs": ["$TURBO_DEFAULT$", ".env*"],
9+
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
10+
"dependsOn": ["^build"]
11+
},
12+
"dev": {
13+
"cache": false,
14+
"persistent": true
15+
},
16+
"test": {},
17+
"lint": {
18+
"dependsOn": ["^lint"]
19+
},
20+
"clean": {
21+
"cache": false
22+
}
23+
}
2424
}

0 commit comments

Comments
 (0)