Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run ESLint
run: npm run lint

- name: Check Prettier formatting
run: npm run format
- name: Run linting and formatting checks
run: npm run lintAndFormat

typecheck:
name: TypeCheck
Expand Down
10 changes: 2 additions & 8 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
singleQuote: true,
printWidth: 120,
tabWidth: 4,
tabWidth: 2,
endOfLine: 'auto',
trailingComma: 'none',
trailingComma: 'es5',
overrides: [
{
files: ['*.yml', '*.yaml'],
Expand All @@ -16,12 +16,6 @@ module.exports = {
options: {
tabWidth: 2
}
},
{
files: ['**/datascience/serviceRegistry.ts'],
options: {
printWidth: 240
}
}
]
};
81 changes: 81 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "ignoreUnknown": false },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"expand": "auto",
"useEditorconfig": true,
"includes": ["**", "!./coverage", "!./dist", "!**/package.json"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"recommended": true
},
"complexity": {
"recommended": true,
"noBannedTypes": "error",
"noUselessTypeConstraint": "error"
},
"correctness": {
"recommended": true,
"noUnusedImports": "error",
"noUnusedFunctionParameters": "error",
"noUnusedPrivateClassMembers": "error",
"useHookAtTopLevel": "error"
},
"performance": {
"recommended": true
},
"security": {
"recommended": true
},
"style": {
"recommended": true,
"noNonNullAssertion": "error",
"useArrayLiterals": "error",
"useConst": "error",
"useForOf": "error",
"useImportType": "error",
"useNodejsImportProtocol": "error",
"useNumberNamespace": "error"
},
"suspicious": {
"recommended": true,
"noEmptyInterface": "error",
"noExplicitAny": "error",
"noConsole": "warn",
"noDebugger": "error"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "single",
"quoteProperties": "preserve",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded",
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
}
},
"html": { "formatter": { "selfCloseVoidElements": "always" } },
"assist": {
"enabled": true,
"actions": { "source": { "organizeImports": "on" } }
}
}
236 changes: 236 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading