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,12 +1,13 @@
import type { Linter } from "eslint";
import { javascriptFiles } from "./shared";
import { type Linter } from 'eslint'
import { javascriptFiles } from './shared'
export const javascriptConfig: Linter.Config = {
name: "eslint/javascript",
name: 'eslint/javascript',
files: javascriptFiles,
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true,
@ -14,22 +15,22 @@ export const javascriptConfig: Linter.Config = {
},
},
rules: {
"no-unused-vars": [
"error",
'no-unused-vars': [
'error',
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-debugger": "error",
"prefer-const": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-template": "error",
curly: ["error", "all"],
eqeqeq: ["error", "always"],
"no-implicit-coercion": "error",
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-debugger': 'error',
'prefer-const': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'prefer-template': 'error',
curly: ['error', 'all'],
eqeqeq: ['error', 'always'],
'no-implicit-coercion': 'error',
},
};
}