Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
build: update ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Aug 19, 2024
1 parent 44ede23 commit 0db3551
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 34 deletions.
27 changes: 27 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import tsPlugin from "@typescript-eslint/eslint-plugin"
import tsParser from "@typescript-eslint/parser"

const config = [
{
files: ["**/*.ts", "**/*.tsx"], // Target TypeScript files
languageOptions: {
parser: tsParser,
sourceType: "module",
},
plugins: {
"@typescript-eslint": tsPlugin,
},
rules: {
...tsPlugin.configs.recommended.rules,
"semi": ["error", "never"],
"quotes": ["error", "single"],
"@typescript-eslint/no-unused-vars": "warn",
'@typescript-eslint/naming-convention': ['error', {
selector: ['variableLike', 'parameterProperty', 'classProperty', 'typeProperty'],
format: ['PascalCase']
}]
}
}
]

export default config
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@
"parse-domain": "^8.0.2"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"esbuild": "^0.21.3",
"eslint": "^8.57.0",
"eslint": "^9.9.0",
"pnpm": "^9.1.2",
"typescript": "^5.4.5",
"typescript": "^5.5.4",
"typescript-eslint": "^7.10.0"
}
}
28 changes: 0 additions & 28 deletions sources/.eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion sources/src/loaders/ztinywave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const Tinywave = async () => {
for (const Entity of PrivateEntities) {
if (Entity.Type === EntityTypes.Head) {
// eslint-disable-next-line no-await-in-loop
Entity.Html = await ResolveResourceUrls(Entity.Html, Token)
Entity.Html = await ResolveResourceUrls(Entity.Html, Token as string)
}
}
}
Expand Down

0 comments on commit 0db3551

Please sign in to comment.