Skip to content

Commit

Permalink
fix: github actions ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wolimst committed May 26, 2024
1 parent 2dbd174 commit fb17291
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ yarn.lock
svelte.config.js
tailwind.config.cjs
vite.config.ts

# Ignore subproject
/worker
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": ["./tsconfig.json", "./worker/tsconfig.json"],
"project": ["./tsconfig.json"],
"sourceType": "module",
"extraFileExtensions": [".svelte"]
},
"settings": {
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["./tsconfig.json", "./worker/tsconfig.json"]
"project": ["./tsconfig.json"]
}
}
},
Expand Down
17 changes: 17 additions & 0 deletions worker/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.DS_Store
node_modules
/coverage
/dist
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock

# Ignore project configuration files
svelte.config.js
tailwind.config.cjs
vite.config.ts
48 changes: 48 additions & 0 deletions worker/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"root": true,
"env": {
"browser": true,
"es2017": true,
"node": true
},
"ignorePatterns": ["*.cjs"],
"plugins": ["@typescript-eslint", "import", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:svelte/recommended",
"plugin:svelte/prettier",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": ["./tsconfig.json"],
"sourceType": "module"
},
"settings": {
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["./tsconfig.json"]
}
}
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
}
}
1 change: 1 addition & 0 deletions worker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"noImplicitThis": true,
"strict": true
},
"include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js"],
"exclude": ["node_modules", "dist", "test"]
}

0 comments on commit fb17291

Please sign in to comment.