Add Eslint and Prettier
This commit is contained in:
4
.prettierignore
Normal file
4
.prettierignore
Normal file
@@ -0,0 +1,4 @@
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
pnpm-workspace.yaml
|
||||
yarn.lock
|
||||
14
eslint.config.js
Normal file
14
eslint.config.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
||||
plugins: { js },
|
||||
extends: ["js/recommended"],
|
||||
languageOptions: { globals: globals.browser },
|
||||
},
|
||||
tseslint.configs.recommended,
|
||||
]);
|
||||
@@ -11,9 +11,14 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"eslint": "^10.0.2",
|
||||
"globals": "^17.4.0",
|
||||
"prettier": "^3.8.1",
|
||||
"solid-devtools": "^0.34.3",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^7.1.4",
|
||||
"typescript-eslint": "^8.56.1",
|
||||
"vite": "^7.3.1",
|
||||
"vite-plugin-solid": "^2.11.8"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
993
pnpm-lock.yaml
generated
993
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
28
prettier.config.js
Normal file
28
prettier.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// @ts-check
|
||||
|
||||
/** @type {import('prettier').Config} */
|
||||
const config = {
|
||||
arrowParens: 'always',
|
||||
bracketSameLine: false,
|
||||
objectWrap: 'preserve',
|
||||
bracketSpacing: true,
|
||||
semi: true,
|
||||
experimentalOperatorPosition: 'end',
|
||||
experimentalTernaries: true,
|
||||
singleQuote: true,
|
||||
jsxSingleQuote: true,
|
||||
quoteProps: 'as-needed',
|
||||
trailingComma: 'all',
|
||||
singleAttributePerLine: false,
|
||||
htmlWhitespaceSensitivity: 'css',
|
||||
vueIndentScriptAndStyle: false,
|
||||
proseWrap: 'preserve',
|
||||
insertPragma: false,
|
||||
printWidth: 100,
|
||||
requirePragma: false,
|
||||
tabWidth: 2,
|
||||
useTabs: false,
|
||||
embeddedLanguageFormatting: 'auto',
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user