Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nduartech committed Aug 1, 2024
1 parent 5aee695 commit 2039436
Show file tree
Hide file tree
Showing 28 changed files with 709 additions and 377 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@
.idea/**
node_modules
node_modules/**
**/node_modules
**/node_modules/**
/*.patch
/packages/interests/dist/
/packages/host/dist/
/packages/software-eng/dist/
60 changes: 30 additions & 30 deletions packages/host/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,52 @@ module.exports = {
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:qwik/recommended",
"plugin:astro/recommended",
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:qwik/recommended',
'plugin:astro/recommended',
],
parser: "@typescript-eslint/parser",
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
project: ['./tsconfig.json'],
ecmaVersion: 2021,
sourceType: "module",
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ["@typescript-eslint"],
plugins: ['@typescript-eslint'],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"prefer-spread": "off",
"no-case-declarations": "off",
"no-console": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-unnecessary-condition": "off",
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'prefer-spread': 'off',
'no-case-declarations': 'off',
'no-console': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
overrides: [
{
// Define the configuration for `.astro` file.
files: ["*.astro"],
processor: "astro/client-side-ts", // <- Uses the "client-side-ts" processor.
files: ['*.astro'],
processor: 'astro/client-side-ts', // <- Uses the "client-side-ts" processor.
// Allows Astro components to be parsed.
parser: "astro-eslint-parser",
parser: 'astro-eslint-parser',
// Parse the script in `.astro` as TypeScript by adding the following configuration.
// It's the setting you need when using TypeScript.
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},
rules: {
// override/add rules settings here, such as:
Expand All @@ -60,4 +60,4 @@ module.exports = {
},
// ...
],
};
}
46 changes: 23 additions & 23 deletions packages/host/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import qwik from "@qwikdev/astro";
import { defineConfig } from "astro/config";
import qwik from '@qwikdev/astro'
import { defineConfig } from 'astro/config'
// import node from "@astrojs/node";
import tailwind from "@astrojs/tailwind";
import svelte from "@astrojs/svelte";
import solidJs from "@astrojs/solid-js";
import compressor from "astro-compressor";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
import tailwind from '@astrojs/tailwind'
import svelte from '@astrojs/svelte'
import solidJs from '@astrojs/solid-js'
import compressor from 'astro-compressor'
import sitemap from '@astrojs/sitemap'
import robotsTxt from 'astro-robots-txt'

import mdx from "@astrojs/mdx";
import mdx from '@astrojs/mdx'

// https://astro.build/config
export default defineConfig({
output: "static",
output: 'static',
devToolbar: {
enabled: false,
},
site: "https://nduartech.github.io",
site: 'https://nduartech.github.io',
prefetch: {
prefetchAll: true,
},
Expand All @@ -26,28 +26,28 @@ export default defineConfig({
// }),
integrations: [
qwik({
include: "**/qwik/*",
include: '**/qwik/*',
}),
tailwind({
applyBaseStyles: false,
}),
svelte({
include: "**/svelte/*",
include: '**/svelte/*',
}),
solidJs({
include: "**/solid/*",
include: '**/solid/*',
}),
{
name: "importmap-externals",
name: 'importmap-externals',
hooks: {
"astro:build:setup": ({ vite, target }) => {
if (target === "client") {
'astro:build:setup': ({ vite, target }) => {
if (target === 'client') {
if (vite.build && vite.build.rollupOptions) {
vite.build.rollupOptions["external"] = [
"software-eng",
"interests",
"solid-js",
];
vite.build.rollupOptions['external'] = [
'software-eng',
'interests',
'solid-js',
]
}
}
},
Expand All @@ -58,4 +58,4 @@ export default defineConfig({
robotsTxt(),
compressor(),
],
});
})
219 changes: 219 additions & 0 deletions packages/host/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"attributePosition": "auto",
"ignore": [
"**/*.log",
"**/.DS_Store",
"**/*.",
".vscode/settings.json",
"**/.history",
"**/.yarn",
"**/bazel-*",
"**/bazel-bin",
"**/bazel-out",
"**/bazel-qwik",
"**/bazel-testlogs",
"**/dist",
"**/dist-dev",
"**/lib",
"**/lib-types",
"**/etc",
"**/external",
"**/node_modules",
"**/temp",
"**/tsc-out",
"**/tsdoc-metadata.json",
"**/target",
"**/output",
"**/rollup.config.js",
"**/build",
"**/.cache",
"**/.vscode",
"**/.rollup.cache",
"**/tsconfig.tsbuildinfo",
"**/vite.config.ts",
"**/*.spec.tsx",
"**/*.spec.ts",
"**/.netlify",
"**/pnpm-lock.yaml",
"**/package-lock.json",
"**/yarn.lock"
]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"complexity": {
"noBannedTypes": "off",
"noExtraBooleanCast": "error",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noUselessCatch": "error",
"noUselessThisAlias": "off",
"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": "off",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "warn",
"useArrayLiterals": "off",
"useIsNan": "error",
"useValidForDirection": "error",
"useYield": "error"
},
"style": {
"noInferrableTypes": "off",
"noNamespace": "off",
"noNonNullAssertion": "off",
"useAsConstAssertion": "error",
"useImportType": "warn"
},
"suspicious": {
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noConsoleLog": "off",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noEmptyInterface": "off",
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noMisleadingInstantiator": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noShadowRestrictedNames": "error",
"noUnsafeDeclarationMerging": "error",
"noUnsafeNegation": "error",
"useGetterReturn": "error",
"useValidTypeof": "error"
}
},
"ignore": [
"**/*.log",
"**/.DS_Store",
"**/*.",
".vscode/settings.json",
"**/.history",
"**/.yarn",
"**/bazel-*",
"**/bazel-bin",
"**/bazel-out",
"**/bazel-qwik",
"**/bazel-testlogs",
"**/dist",
"**/dist-dev",
"**/lib",
"**/lib-types",
"**/etc",
"**/external",
"**/node_modules",
"**/temp",
"**/tsc-out",
"**/tsdoc-metadata.json",
"**/target",
"**/output",
"**/rollup.config.js",
"**/build",
"**/.cache",
"**/.vscode",
"**/.rollup.cache",
"**/tsconfig.tsbuildinfo",
"**/vite.config.ts",
"**/*.spec.tsx",
"**/*.spec.ts",
"**/.netlify",
"**/pnpm-lock.yaml",
"**/package-lock.json",
"**/yarn.lock",
"**/svelte.config.js",
"tmp*/**"
]
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
},
"overrides": [
{ "include": ["*.astro"] },
{
"include": ["*.ts", "*.tsx", "*.mts", "*.cts"],
"linter": {
"rules": {
"correctness": {
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noInvalidNewBuiltin": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": {
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noDuplicateClassMembers": "off",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noRedeclare": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off"
}
}
}
}
]
}
Loading

0 comments on commit 2039436

Please sign in to comment.