-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: biome * chore: test biome * chore: update code * chore: update code * chore: update changeset * chore: update biome rules * chore: enable biome lint * chore: remove eslint and prettier * chore: remove eslint and prettier * chore: test lint-staged * chore: test lint-staged * chore: test lint-staged * chore: test lint-staged * chore: test lint-staged * chore: test lint-staged * chore: test lint-staged * chore: update test lint-staged * chore: update test lint-staged * chore: update test lint-staged * chore: update test lint-staged * chore: update husky * chore: update husky * chore: update husky * chore: update husky * chore: update husky * chore: update husky
- Loading branch information
Showing
157 changed files
with
1,156 additions
and
1,794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
run: cargo fmt | ||
- name: Run cargo clippy | ||
run: cargo clippy | ||
eslint: | ||
lint: | ||
name: TS Code Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -32,5 +32,5 @@ jobs: | |
node-version: 18 | ||
- name: Install Dependencies | ||
run: npm install -g [email protected] && pnpm i --frozen-lockfile | ||
- name: Run eslint | ||
run: npx eslint packages | ||
- name: Run lint | ||
run: npx biome check --no-errors-on-unmatched --files-ignore-unknown=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,17 @@ function readPackage(pkg, context) { | |
// Replace bar@x.x.x with [email protected] | ||
pkg.peerDependencies = { | ||
vue: pkg.version | ||
} | ||
context.log(`${pkg.name}@${pkg.version} => vue@${pkg.version} in peerDependencies`) | ||
}; | ||
context.log( | ||
`${pkg.name}@${pkg.version} => vue@${pkg.version} in peerDependencies` | ||
); | ||
} | ||
return pkg | ||
|
||
return pkg; | ||
} | ||
|
||
module.exports = { | ||
hooks: { | ||
readPackage | ||
} | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.7.2/schema.json", | ||
"vcs": { | ||
"clientKind": "git", | ||
"enabled": true, | ||
"useIgnoreFile": true, | ||
"defaultBranch": "main" | ||
}, | ||
"files": { | ||
"ignore": [ | ||
"crates/**", | ||
"*.vue", | ||
"examples/**", | ||
"tsconfig.base.json", | ||
"tsconfig.json", | ||
"cspell.json", | ||
"e2e/**", | ||
"*.e2e.ts", | ||
"*.d.ts", | ||
"packages/runtime/**", | ||
"packages/runtime-plugin-import-meta/**", | ||
"packages/create-farm/templates/**", | ||
"packages/create-farm-plugin/templates/**", | ||
"rust-plugins/**", | ||
"js-plugins/vue", | ||
"js-plugins/less", | ||
"js-plugins/sass" | ||
], | ||
"ignoreUnknown": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"attributePosition": "auto" | ||
}, | ||
"organizeImports": { | ||
"enabled": true, | ||
"include": ["./**/*.js", "./**/*.ts", "./**/*.mjs"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": false, | ||
"complexity": { | ||
"noBannedTypes": "error", | ||
"noExtraBooleanCast": "error", | ||
"noMultipleSpacesInRegularExpressionLiterals": "error", | ||
"noUselessCatch": "error", | ||
"noUselessTypeConstraint": "error", | ||
"noWith": "error" | ||
}, | ||
"correctness": { | ||
"noConstAssign": "error", | ||
"noConstantCondition": "error", | ||
"noEmptyCharacterClassInRegex": "error", | ||
"noEmptyPattern": "error", | ||
"noGlobalObjectCalls": "error", | ||
"noInnerDeclarations": "error", | ||
"noInvalidConstructorSuper": "error", | ||
"noNewSymbol": "error", | ||
"noNonoctalDecimalEscape": "error", | ||
"noPrecisionLoss": "error", | ||
"noSelfAssign": "error", | ||
"noSetterReturn": "error", | ||
"noSwitchDeclarations": "error", | ||
"noUndeclaredVariables": "warn", | ||
"noUnreachable": "error", | ||
"noUnreachableSuper": "error", | ||
"noUnsafeFinally": "error", | ||
"noUnsafeOptionalChaining": "error", | ||
"noUnusedLabels": "error", | ||
"noUnusedVariables": "warn", | ||
"useIsNan": "error", | ||
"useValidForDirection": "error", | ||
"useYield": "error" | ||
}, | ||
"style": { | ||
"noInferrableTypes": "error", | ||
"noNamespace": "error", | ||
"noNonNullAssertion": "warn", | ||
"useAsConstAssertion": "error" | ||
}, | ||
"suspicious": { | ||
"noAsyncPromiseExecutor": "error", | ||
"noCatchAssign": "error", | ||
"noClassAssign": "error", | ||
"noCompareNegZero": "error", | ||
"noControlCharactersInRegex": "off", | ||
"noDebugger": "error", | ||
"noDuplicateCase": "error", | ||
"noDuplicateClassMembers": "error", | ||
"noDuplicateObjectKeys": "error", | ||
"noDuplicateParameters": "error", | ||
"noEmptyBlockStatements": "off", | ||
"noExplicitAny": "off", | ||
"noExtraNonNullAssertion": "error", | ||
"noFallthroughSwitchClause": "error", | ||
"noFunctionAssign": "error", | ||
"noGlobalAssign": "error", | ||
"noImportAssign": "error", | ||
"noMisleadingCharacterClass": "error", | ||
"noMisleadingInstantiator": "error", | ||
"noPrototypeBuiltins": "warn", | ||
"noRedeclare": "error", | ||
"noShadowRestrictedNames": "error", | ||
"noUnsafeNegation": "error", | ||
"useGetterReturn": "error", | ||
"useNamespaceKeyword": "error", | ||
"useValidTypeof": "error" | ||
} | ||
}, | ||
"ignore": [ | ||
"**/binding/**", | ||
"**/templates/**", | ||
"**/dist/**", | ||
"**/node_modules/**", | ||
"**/*.config.js", | ||
"**/*.config.ts" | ||
] | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "single", | ||
"quoteProperties": "asNeeded", | ||
"trailingComma": "none", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
import { builtinModules } from "module"; | ||
import { builtinModules } from 'module'; | ||
|
||
/** | ||
* @type {import('@farmfe/core').UserConfig} | ||
*/ | ||
export default { | ||
compilation: { | ||
input: { | ||
index: "./src/index.ts", | ||
index: './src/index.ts' | ||
}, | ||
output: { | ||
path: "build", | ||
entryFilename: "[entryName].cjs", | ||
targetEnv: "node", | ||
format: "cjs", | ||
path: 'build', | ||
entryFilename: '[entryName].cjs', | ||
targetEnv: 'node', | ||
format: 'cjs' | ||
}, | ||
partialBundling: { | ||
enforceResources: [ | ||
{ | ||
name: "index.js", | ||
test: [".+"], | ||
}, | ||
], | ||
name: 'index.js', | ||
test: ['.+'] | ||
} | ||
] | ||
}, | ||
minify: false, | ||
sourcemap: false, | ||
persistentCache: false, | ||
presetEnv: false, | ||
presetEnv: false | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.