feat(regime)
This commit is contained in:
commit
2be7ec6836
62 changed files with 1817 additions and 0 deletions
1
templates/tool/oxc/.regime-template.json
Normal file
1
templates/tool/oxc/.regime-template.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
16
templates/tool/oxc/oxfmt.config.ts
Normal file
16
templates/tool/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"],
|
||||
});
|
||||
88
templates/tool/oxc/oxlint.config.ts
Normal file
88
templates/tool/oxc/oxlint.config.ts
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
import { defineConfig } from "oxlint"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: ["typescript", "unicorn", "oxc"],
|
||||
ignorePatterns: ["**/*.gen.ts", "node_modules/**/*"],
|
||||
categories: {
|
||||
correctness: "error",
|
||||
suspicious: "warn",
|
||||
perf: "warn",
|
||||
style: "warn",
|
||||
restriction: "error",
|
||||
},
|
||||
rules: {
|
||||
"capitalized-comments": "off",
|
||||
"default-case": "off",
|
||||
"filename-case": "off",
|
||||
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
|
||||
"id-length": "off",
|
||||
"init-declarations": "off",
|
||||
"max-params": "off",
|
||||
"max-statements": "off",
|
||||
"new-cap": "off",
|
||||
"no-array-for-each": "off",
|
||||
"no-async-await": "off",
|
||||
"no-await-expression-member": "off",
|
||||
"no-await-in-loop": "off",
|
||||
"no-bitwise": "off",
|
||||
"no-console": "off",
|
||||
"no-continue": "off",
|
||||
"no-dynamic-delete": "off",
|
||||
"no-empty-file": "off",
|
||||
"no-empty-function": "off",
|
||||
"no-implicit-coercion": "off",
|
||||
"no-magic-numbers": "off",
|
||||
"no-multi-assign": "off",
|
||||
"no-nested-ternary": "off",
|
||||
"unicorn/no-nested-ternary": "off",
|
||||
"no-null": "off",
|
||||
"no-optional-chaining": "off",
|
||||
"no-plusplus": "off",
|
||||
"no-rest-spread-properties": "off",
|
||||
"no-shadow-restricted-names": "off",
|
||||
"no-shadow": "off",
|
||||
"no-ternary": "off",
|
||||
"no-undefined": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-use-before-define": "off",
|
||||
"unicorn/numeric-separators-style": "off",
|
||||
"prefer-destructuring": "off",
|
||||
"prefer-for-of": "off",
|
||||
"prefer-template": "off",
|
||||
"prefer-ternary": "off",
|
||||
"require-module-specifiers": "off",
|
||||
"sort-imports": "off",
|
||||
"sort-keys": "off",
|
||||
"switch-case-braces": "off",
|
||||
"typescript/consistent-indexed-object-style": "off",
|
||||
"typescript/consistent-type-definitions": ["error", "type"],
|
||||
"typescript/explicit-function-return-type": "off",
|
||||
"typescript/explicit-member-accessibility": "off",
|
||||
"typescript/explicit-module-boundary-types": "off",
|
||||
"typescript/no-empty-interface": "off",
|
||||
"typescript/no-empty-object-type": "off",
|
||||
"typescript/no-namespace": "off",
|
||||
"typescript/no-non-null-assertion": "off",
|
||||
"typescript/prefer-function-type": "off",
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ["*.test.ts"],
|
||||
rules: {
|
||||
"typescript/no-explicit-any": "off",
|
||||
"typescript/no-require-imports": "off",
|
||||
"typescript/no-var-requires": "off",
|
||||
"unicorn/prefer-module": "off",
|
||||
"unicorn/consistent-function-scoping": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["*.d.ts"],
|
||||
rules: {
|
||||
"typescript/no-explicit-any": "off",
|
||||
"unicorn/consistent-function-scoping": "off",
|
||||
"typescript/consistent-type-definitions": "off",
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
9
templates/tool/oxc/package.json
Normal file
9
templates/tool/oxc/package.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"oxfmt": "^0.47.0",
|
||||
"oxlint": "^1.62.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "oxlint"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue