Skip to content

Commit 8ab250d

Browse files
committed
feat: add linting
1 parent e72da0b commit 8ab250d

File tree

3 files changed

+459
-100
lines changed

3 files changed

+459
-100
lines changed

.eslintrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parserOptions": {
3+
"project": "tsconfig.json"
4+
},
5+
"overrides": [
6+
{
7+
"files": ["*.astro"],
8+
"extends": ["plugin:astro/recommended", "plugin:astro/jsx-a11y-strict"]
9+
},
10+
{
11+
"files": ["*.ts", "*.tsx"],
12+
"extends": [
13+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
14+
]
15+
},
16+
{
17+
"files": ["*.mdx"],
18+
"extends": ["plugin:mdx/recommended"]
19+
}
20+
]
21+
}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@
2323
"react-dom": "^18.0.0",
2424
"sharp": "^0.32.1",
2525
"tailwindcss": "^3.0.24"
26+
},
27+
"devDependencies": {
28+
"eslint": "^8.41.0",
29+
"eslint-plugin-astro": "^0.27.0"
2630
}
2731
}

0 commit comments

Comments
 (0)