Skip to content

Commit

Permalink
Merge pull request #373 from ega4432/chore/eslint
Browse files Browse the repository at this point in the history
eslint 関連ライブラリのアップデート
  • Loading branch information
ega4432 authored Dec 8, 2024
2 parents 85d61e9 + 14ddbc1 commit acb701e
Show file tree
Hide file tree
Showing 9 changed files with 575 additions and 445 deletions.
36 changes: 0 additions & 36 deletions .eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"cSpell.words": ["adsbygoogle", "egashira", "frontmatter", "partytown"]
"cSpell.words": ["adsbygoogle", "egashira", "frontmatter", "partytown"],
"eslint.useFlatConfig": true
}
36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// @ts-check
import eslint from "@eslint/js";
import gitignore from "eslint-config-flat-gitignore";
import eslintConfigPrettier from "eslint-config-prettier";
import eslintPluginAstro from "eslint-plugin-astro";
import globals from "globals";
import tsEslint from "typescript-eslint";

export default tsEslint.config(
gitignore(),
eslint.configs.recommended,
...tsEslint.configs.recommended,
{
files: ["**/*.{ts,tsx,mts,cts,astro}"],
rules: {
"no-undef": "off"
}
},
...eslintPluginAstro.configs["flat/recommended"],
eslintConfigPrettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
ignores: [
"src/content/blog/*.md",
"tailwind.config.cjs",
"src/components/GoogleTagManager.astro"
]
}
);
Loading

0 comments on commit acb701e

Please sign in to comment.