Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: MikuroXina <[email protected]>
  • Loading branch information
renovate[bot] and MikuroXina authored Apr 13, 2024
1 parent a9eb4c2 commit c937157
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 152 deletions.
29 changes: 0 additions & 29 deletions .eslintrc.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// @ts-check
import eslint from "@eslint/js";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import globals from "globals";
import tsEslint from "typescript-eslint";

export default tsEslint.config(
eslint.configs.recommended,
...tsEslint.configs.recommended,
{
plugins: {
"simple-import-sort": simpleImportSort,
},
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
},
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node,
},
},
ecmaVersion: 2021,
},
rules: {
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
},
);
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20231121.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.54.0",
"@eslint/js": "^9.0.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-simple-import-sort": "^12.0.0",
"globals": "^15.0.0",
"prettier": "^3.1.0",
"typescript": "^5.3.2",
"typescript-eslint": "^7.6.0",
"wrangler": "^3.19.0"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit c937157

Please sign in to comment.