Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update formatter #323

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@kobalte/docs"]
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@kobalte/docs"]
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root = true

[*]
indent_style = space
indent_style = tab
indent_size = 2
end_of_line = LF
charset = utf-8
Expand Down
114 changes: 60 additions & 54 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,62 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:solid/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": ["solid", "jsx-a11y", "@typescript-eslint", "import", "simple-import-sort"],
"rules": {
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "error",
"import/no-named-as-default-member": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off"
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./tsconfig.eslint.json"],
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": ["./tsconfig.eslint.json"],
"alwaysTryTypes": true
}
}
}
"root": true,
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:solid/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"solid",
"jsx-a11y",
"@typescript-eslint",
"import",
"simple-import-sort"
],
"rules": {
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "error",
"import/no-named-as-default-member": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off"
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./tsconfig.eslint.json"],
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": ["./tsconfig.eslint.json"],
"alwaysTryTypes": true
}
}
}
}
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.js
*.ts
*.jsx
*.tsx
*.json
*.cjs
pnpm-lock.json
4 changes: 2 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"arrowParens": "avoid",
"printWidth": 100
"arrowParens": "avoid",
"printWidth": 100
}
8 changes: 4 additions & 4 deletions apps/docs/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
29 changes: 16 additions & 13 deletions apps/docs/src/VERSIONS.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
export const CORE_VERSIONS = [
"0.12.x",
"0.11.x",
"0.10.x",
"0.9.x",
"0.8.x",
"0.7.x",
"0.6.x",
"0.5.x",
"0.4.x",
"0.3.x",
"0.2.x",
"0.1.x",
"0.12.x",
"0.11.x",
"0.10.x",
"0.9.x",
"0.8.x",
"0.7.x",
"0.6.x",
"0.5.x",
"0.4.x",
"0.3.x",
"0.2.x",
"0.1.x",
];

export const LATEST_CORE_CHANGELOG_URL = `/docs/changelog/${CORE_VERSIONS[0].replaceAll(".", "-")}`;
export const LATEST_CORE_CHANGELOG_URL = `/docs/changelog/${CORE_VERSIONS[0].replaceAll(
".",
"-",
)}`;

export const LATEST_CORE_VERSION_NAME = "v0.12.1";
28 changes: 14 additions & 14 deletions apps/docs/src/components/callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ import { clsx } from "clsx";
import { ComponentProps, splitProps } from "solid-js";

interface CalloutProps extends ComponentProps<"div"> {
type: "note" | "warning";
type: "note" | "warning";
}

export function Callout(props: CalloutProps) {
const [local, others] = splitProps(props, ["type", "class"]);
const [local, others] = splitProps(props, ["type", "class"]);

return (
<div
class={clsx(
local.class,
"not-prose flex items-center rounded-md mt-6 px-4 py-3 text-base",
local.type === "note"
? "text-blue-800 bg-blue-50 dark:text-blue-400 dark:bg-blue-900/30"
: "text-amber-800 bg-amber-50 dark:text-amber-400 dark:bg-amber-900/20",
)}
{...others}
/>
);
return (
<div
class={clsx(
local.class,
"not-prose flex items-center rounded-md mt-6 px-4 py-3 text-base",
local.type === "note"
? "text-blue-800 bg-blue-50 dark:text-blue-400 dark:bg-blue-900/30"
: "text-amber-800 bg-amber-50 dark:text-amber-400 dark:bg-amber-900/20",
)}
{...others}
/>
);
}
Loading