Skip to content

Commit

Permalink
Use Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Jan 19, 2024
1 parent 14150d9 commit b39fc3d
Show file tree
Hide file tree
Showing 10 changed files with 1,110 additions and 61 deletions.
39 changes: 29 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@
"serviceworker": true,
"webextensions": true
},
"extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier"],
"extends": [
"eslint:recommended",
"plugin:unicorn/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2021,
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
"project": [
"./tsconfig.json"
]
},
"plugins": ["unicorn"],
"plugins": [
"@typescript-eslint",
"unicorn"
],
"rules": {
"consistent-return": "error",
"indent": [
Expand All @@ -24,16 +32,27 @@
"SwitchCase": 1
}
],
"linebreak-style": ["error", "unix"],
"linebreak-style": [
"error",
"unix"
],
"no-console": [
"error",
{
"allow": ["error"]
"allow": [
"error"
]
}
],
"prefer-template": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"unicorn/no-null": "off",
"arrow-body-style": "error",
"no-var": "error",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "20"

- name: Install dependencies
run: npm ci
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"quoteProps": "consistent",
"printWidth": 120,
"overrides": [
{
"files": ["*.js"],
"files": ["*.js", "*.ts"],
"options": {
"singleQuote": true
}
Expand Down
File renamed without changes.
Loading

0 comments on commit b39fc3d

Please sign in to comment.