Skip to content

Commit

Permalink
ci(docs): implement prettier and eslint (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinanielsen authored Dec 19, 2023
1 parent 16d2712 commit e490217
Show file tree
Hide file tree
Showing 5 changed files with 3,634 additions and 1,138 deletions.
16 changes: 16 additions & 0 deletions docs/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {},
};
3 changes: 3 additions & 0 deletions docs/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 2
}
10 changes: 9 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"format": "prettier --write .",
"lint": "eslint"
},
"dependencies": {
"@astrojs/starlight": "^0.15.0",
"astro": "^4.0.1",
"execa": "^8.0.1",
"sharp": "^0.32.5"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1"
}
}
Loading

0 comments on commit e490217

Please sign in to comment.