feat(regime)
This commit is contained in:
commit
655175f273
36 changed files with 1066 additions and 0 deletions
16
templates/tools-oxc/oxfmt.config.ts
Normal file
16
templates/tools-oxc/oxfmt.config.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { defineConfig } from "oxfmt"
|
||||
|
||||
export default defineConfig({
|
||||
useTabs: false,
|
||||
tabWidth: 2,
|
||||
printWidth: 80,
|
||||
singleQuote: false,
|
||||
jsxSingleQuote: false,
|
||||
quoteProps: "as-needed",
|
||||
trailingComma: "all",
|
||||
semi: false,
|
||||
arrowParens: "always",
|
||||
bracketSameLine: false,
|
||||
bracketSpacing: true,
|
||||
ignorePatterns: ["**/*.gen.ts"],
|
||||
});
|
||||
47
templates/tools-oxc/oxlint.config.ts
Normal file
47
templates/tools-oxc/oxlint.config.ts
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
import { defineConfig } from "oxlint"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: ["typescript", "unicorn", "oxc"],
|
||||
categories: {
|
||||
correctness: "error",
|
||||
suspicious: "warn",
|
||||
perf: "warn",
|
||||
style: "warn",
|
||||
restriction: "error",
|
||||
},
|
||||
rules: {
|
||||
"no-shadow-restricted-names": "off",
|
||||
"prefer-template": "off",
|
||||
"typescript/no-non-null-assertion": "off",
|
||||
"typescript/no-empty-interface": "off",
|
||||
"prefer-ternary": "off",
|
||||
"sort-keys": "off",
|
||||
"typescript/consistent-type-definitions": ["error", "type"],
|
||||
"typescript/explicit-function-return-type": "off",
|
||||
"typescript/explicit-member-accessibility": "off",
|
||||
"typescript/explicit-module-boundary-types": "off",
|
||||
"no-use-before-define": "off",
|
||||
"no-dynamic-delete": "off",
|
||||
"id-length": "off",
|
||||
"new-cap": "off",
|
||||
"no-shadow": "off",
|
||||
"no-ternary": "off",
|
||||
"func-style": ["error", "declaration"],
|
||||
"typescript/prefer-function-type": "off",
|
||||
"typescript/consistent-indexed-object-style": "off",
|
||||
"no-undefined": "off",
|
||||
"filename-case": "off",
|
||||
"no-magic-numbers": "off",
|
||||
"max-statements": "off",
|
||||
"no-plusplus": "off",
|
||||
"no-array-for-each": "off",
|
||||
"sort-imports": "off",
|
||||
"no-optional-chaining": "off",
|
||||
"default-case": "off",
|
||||
"prefer-for-of": "off",
|
||||
"switch-case-braces": "off",
|
||||
"require-module-specifiers": "off",
|
||||
"typescript/no-namespace": "off",
|
||||
},
|
||||
ignorePatterns: ["**/*.gen.ts"],
|
||||
})
|
||||
9
templates/tools-oxc/package.json
Normal file
9
templates/tools-oxc/package.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"oxfmt": "^0.47.0",
|
||||
"oxlint": "^1.62.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "husky"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue