Skip to content

Commit

Permalink
Upgrade ESLint from v8 to v9
Browse files Browse the repository at this point in the history
- flat config にした
- 前のconfigurationをコメントで残した(笑)
  • Loading branch information
Nyoho committed Sep 18, 2024
1 parent 0b29bea commit bd26f2c
Show file tree
Hide file tree
Showing 4 changed files with 591 additions and 1,291 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import js from "@eslint/js";
import pluginReact from 'eslint-plugin-react';

export default [
js.configs.recommended,
pluginReact.configs.flat.recommended,
pluginReact.configs.flat['jsx-runtime'],
];

// export default defineConfig({
// env: {
// browser: true,
// es2021: true
// },
// extends: [
// "eslint:recommended",
// "plugin:react/recommended",
// 'prettier',
// "plugin:@typescript-eslint/recommended"
// ],
// // "parser": "@typescript-eslint/parser",
// parserOptions: {
// ecmaFeatures: {
// jsx: true
// },
// ecmaVersion: 12,
// sourceType: "module"
// },
// plugins: ["react"],
// rules: {
// semi: 'off',
// }
// });
Loading

0 comments on commit bd26f2c

Please sign in to comment.