Skip to content

Commit

Permalink
feat: add more eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagellan committed Dec 9, 2023
1 parent d4d60b4 commit c2f67a0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 8,7 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"overrides": [
Expand All @@ -26,7 27,7 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react"],
"plugins": ["@typescript-eslint", "react", "unused-imports"],
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,7 17,7 @@ permissions:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: true

jobs:
Expand Down
11 changes: 10 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 2,14 @@
"singleQuote": true,
"useTabs": true,
"tabWidth": 4,
"semi": true
"semi": true,

"overrides": [
{
"files": "*.yml",
"options": {
"tabWidth": 2
}
}
]
}
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 9,10 @@
"@typescript-eslint/parser": "^6.8.0",
"bun-types": "latest",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
Expand Down

0 comments on commit c2f67a0

Please sign in to comment.