Skip to content

Commit

Permalink
feat(app): add chinese and some other things
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Jan 2, 2024
1 parent 9098721 commit 0764f6c
Show file tree
Hide file tree
Showing 34 changed files with 3,630 additions and 3,961 deletions.
41 changes: 41 additions & 0 deletions .tokenami/tokenami.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* TODO: See #33 and #90 of the Relivator's Roadmap
* @see https://github.com/tokenami/tokenami#readme
*/

import { createConfig } from "@tokenami/dev";

export default createConfig({
include: ["./src/**/*.{js,jsx,ts,tsx}"],
grid: "0.25rem",
responsive: {
medium: "@media (min-width: 1024px)",
"medium-self": "@container (min-width: 400px)",
},
theme: {
alpha: {},
anim: {},
border: {},
color: {
"slate-100": "#f1f5f9",
"slate-700": "#334155",
"sky-500": "#0ea5e9",
},
ease: {},
"font-size": {},
leading: {},
"line-style": {},
radii: {
rounded: "10px",
circle: "9999px",
none: "none",
},
size: {},
shadow: {},
surface: {},
tracking: {},
transition: {},
weight: {},
z: {},
},
});
8 changes: 8 additions & 0 deletions .tokenami/tokenami.env.ci.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="./tokenami.env.d.ts" />
import type { Config } from "./tokenami.env";

declare module "@tokenami/dev" {
interface TokenamiConfig extends Config {
CI: true;
}
}
20 changes: 20 additions & 0 deletions .tokenami/tokenami.env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* TODO: See #33 and #90 of the Relivator's Roadmap
* @see https://github.com/tokenami/tokenami#readme
*/

import { TokenamiProperties } from "@tokenami/dev";

import config from "./tokenami.config";

export type Config = typeof config;

declare module "@tokenami/dev" {
// biome-ignore lint/suspicious/noEmptyInterface: <explanation>
interface TokenamiConfig extends Config {}
}

declare module "react" {
// biome-ignore lint/suspicious/noEmptyInterface: <explanation>
interface CSSProperties extends TokenamiProperties {}
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
"markdownlint.config": {
"MD033": {
Expand Down
88 changes: 65 additions & 23 deletions README.md

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions components.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"style": "default",
"rsc": true,
"tsx": true,
"aliases": {
"utils": "~/utils",
"components": "~/islands/primitives"
},
"tailwind": {
"css": "./src/styles/globals.css",
"css": "src/styles/globals.css",
"config": "tailwind.config.ts",
"cssVariables": true,
"baseColor": "zinc",
"cssVariables": true
},
"aliases": {
"components": "~/islands",
"utils": "~/utils"
"prefix": ""
}
}
4 changes: 4 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"Contentlayer",
"corepack",
"cropperjs",
"Cunha",
"darkreader",
"dashboardu",
"datetime",
Expand All @@ -98,6 +99,7 @@
"esnext",
"estree",
"exabot",
"Ezekwu",
"facebook",
"facebookexternalhit",
"Favs",
Expand Down Expand Up @@ -135,6 +137,8 @@
"İndir",
"isadmin",
"jdoe",
"jjenzz's",
"João",
"Kârlı",
"Kbwps",
"knip",
Expand Down
49 changes: 29 additions & 20 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import importPlugin from "eslint-plugin-import";
import jestPlugin from "eslint-plugin-jest";
import jestExtendedPlugin from "eslint-plugin-jest-extended";
import jestFormattingPlugin from "eslint-plugin-jest-formatting";
import jsdocPlugin from "eslint-plugin-jsdoc";
import jsoncPlugin from "eslint-plugin-jsonc";
import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
import nodePlugin from "eslint-plugin-n";
Expand Down Expand Up @@ -82,7 +81,6 @@ export default antfu(
"eslint-comments": commentsPlugin,
"no-secrets": noSecretsPlugin,
"jsx-a11y": jsxA11yPlugin,
"jsdoc": jsdocPlugin,
"xss": xssPlugin,
"react": reactPlugin,
"@next/next": nextPlugin,
Expand All @@ -101,7 +99,6 @@ export default antfu(
...tailwindcssPlugin.configs.recommended.rules,
...reactHooksPlugin.configs.recommended.rules,
...unicornPlugin.configs.recommended.rules,
...jsdocPlugin.configs.recommended.rules,
...xssPlugin.configs.recommended.rules,
...airbnbBestPracticesConfig.rules,
...airbnbVariablesConfig.rules,
Expand Down Expand Up @@ -179,15 +176,18 @@ export default antfu(
"default-case": "off",
"default-param-last": ["off"],
"dot-location": ["off", "property"],
"dot-notation": "off",
"eol-last": ["off", "always"],
"eqeqeq": ["off", "always"],
"eslint-plugin-jsx-a11y/blob": "off",
"format/prettier": "off",
"func-call-spacing": ["off", "never"],
"func-names": "off",
"func-style": ["off", "declaration"],
"function-call-argument-newline": ["off", "consistent"],
"function-paren-newline": ["off", "consistent"],
"global-require": "off",
"implicit-arrow-linebreak": "off",
"import/no-absolute-path": "off",
"import/no-cycle": "off",
"import/no-duplicates": "off",
Expand Down Expand Up @@ -220,37 +220,22 @@ export default antfu(
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/no-autofocus": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"linebreak-style": "off",
"lines-around-directive": "off",
"lines-between-class-members": ["off", "always"],
"max-len": "off",
"new-cap": "off",
"new-parens": "off",
"max-len": "off",
"dot-notation": "off",
"implicit-arrow-linebreak": "off",
"no-trailing-spaces": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"nonblock-statement-body-position": "off",
"react/no-unknown-property": "off",
"style/no-trailing-spaces": "off",
"style/spaced-comment": "off",
"unused-imports/no-unused-imports": "off",
"yaml/plain-scalar": "off",
"no-alert": "off",
"no-array-constructor": "off",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-case-declarations": "off",
"no-confusing-arrow": "off",
"no-console": "off",
"jsx-a11y/no-autofocus": "off",
"style/eol-last": "off",
"style/jsx-closing-tag-location": "off",
"style/no-multiple-empty-lines": "off",
"yaml/block-sequence": "off",
"no-constant-condition": "off",
"no-else-return": "off",
"no-eval": "off",
Expand All @@ -272,15 +257,19 @@ export default antfu(
"no-shadow": "off",
"no-tabs": "off",
"no-template-curly-in-string": "off",
"no-trailing-spaces": "off",
"no-undef": "off",
"no-unneeded-ternary": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-return": "off",
"no-var": "off",
"no-void": "off",
"no-warning-comments": "off",
"no-whitespace-before-property": "off",
"node/prefer-global/process": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": ["off", { "consistent": true }],
"object-curly-spacing": ["off", "always"],
"object-shorthand": "off",
Expand Down Expand Up @@ -335,6 +324,7 @@ export default antfu(
"react/no-danger": "off",
"react/no-typos": "off",
"react/no-unescaped-entities": "off",
"react/no-unknown-property": "off",
"react/no-unstable-nested-components": "off",
"react/no-unused-prop-types": "off",
"react/prefer-stateless-function": "off",
Expand All @@ -359,16 +349,21 @@ export default antfu(
"spaced-comment": "off",
"style/arrow-parens": "off",
"style/brace-style": "off",
"style/eol-last": "off",
"style/indent-binary-ops": "off",
"style/indent": "off",
"style/jsx-closing-tag-location": "off",
"style/jsx-curly-newline": "off",
"style/jsx-indent": "off",
"style/jsx-one-expression-per-line": "off",
"style/jsx-wrap-multilines": "off",
"style/member-delimiter-style": "off",
"style/multiline-ternary": "off",
"style/no-multiple-empty-lines": "off",
"style/no-trailing-spaces": "off",
"style/operator-linebreak": "off",
"style/quote-props": "off",
"style/spaced-comment": "off",
"switch-colon-spacing": "off",
"tailwindcss/no-custom-classname": "off",
"template-curly-spacing": ["off", "never"],
Expand Down Expand Up @@ -409,15 +404,19 @@ export default antfu(
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": ["off"],
"unicorn/switch-case-braces": ["off", "avoid"],
"unused-imports/no-unused-imports": "off",
"unused-imports/no-unused-vars": "off",
"write-good-comments/write-good-comments": "off",
"xss/no-location-href-assign": "off",
"xss/no-mixed-html": "off",
"yaml/block-sequence": "off",
"yaml/plain-scalar": "off",
},
},
...compat.config({
plugins: [
"@limegrass/import-alias",
"prefer-arrow-functions",
"no-barrel-files",
"no-secrets",
"jsx-a11y",
Expand All @@ -434,6 +433,16 @@ export default antfu(
"plugin:sonarjs/recommended",
],
rules: {
"prefer-arrow-functions/prefer-arrow-functions": [
"off",
{
"allowNamedFunctions": false,
"classPropertiesAllowed": false,
"disallowPrototype": false,
"returnStyle": "unchanged",
"singleReturnOnly": false,
},
],
"@limegrass/import-alias/import-alias": "off",
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "error",
Expand Down

0 comments on commit 0764f6c

Please sign in to comment.