feat(prettier): add prettier formatting

This commit is contained in:
Shintaro Jokagi 2025-05-28 13:43:44 +12:00
parent 01f4dac75d
commit 7fafa6bc69
No known key found for this signature in database
GPG key ID: 0DDF8FA44C9A0DA8
85 changed files with 5670 additions and 2788 deletions

View file

@ -1,5 +1,7 @@
import type { Linter } from "eslint";
import { type Linter } from "eslint";
import react from "eslint-plugin-react";
import * as reactHooks from "eslint-plugin-react-hooks";
import { javascriptFiles, typescriptFiles } from "./shared";
export const reactConfig: Linter.Config = {
@ -14,7 +16,7 @@ export const reactConfig: Linter.Config = {
rules: {
...react.configs.recommended.rules,
"react/react-in-jsx-scope": "off", // Not needed in modern React/Preact
"react/react-in-jsx-scope": "off", // Not needed in React 17+
"react/prop-types": "off", // Using TypeScript
"react/jsx-uses-react": "off",
"react/jsx-uses-vars": "error",
@ -37,13 +39,11 @@ export const reactConfig: Linter.Config = {
},
settings: {
react: {
version: "detect",
version: "18.2", // React version
},
},
};
import reactHooks from "eslint-plugin-react-hooks";
export const reactHooksConfig: Linter.Config = {
name: "eslint/react-hooks",
files: [