Skip to content
Myr

Chore/enhance prettier config (#3022)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* chore: enhance prettier config * chore: fix prettier issues * Update package.json ---------

authored by Marcin Kulpa · committed by GitHub · parent 6a6ef4c · Browse files · 12 files+161 added−134 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

Diff stats

12 files+161 added−134 removed

  • other:+161 added−134 removed

12 files+161 added−134 removed

modified:.github/DISCUSSION_TEMPLATE/bug-report.yml+1 added-1 removed
modified:.github/ISSUE_TEMPLATE/bug_report.md-2 removed
modified:.github/FUNDING.yml+4 added-1 removed
modified:.github/pull_request_template.md-2 removed
modified:examples/demo/src/pmndrs.css+117 added-117 removed
modified:examples/demo/src/styles.css+26 added-4 removed
17 unmodified lines
18 overflow: hidden;19}2021body {22 font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial,22 font-family:23 -apple-system,24 BlinkMacSystemFont,25 avenir next,26 avenir,27 helvetica neue,28 helvetica,29 ubuntu,30 roboto,31 noto,32 segoe ui,33 arial,34 sans-serif;35}3637.main {
82 unmodified lines
120 line-height: 1em;121}122123a {113 font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial,124 font-family:125 -apple-system,126 BlinkMacSystemFont,127 avenir next,128 avenir,129 helvetica neue,130 helvetica,131 ubuntu,132 roboto,133 noto,134 segoe ui,135 arial,136 sans-serif;137 font-weight: 400;138 font-size: 16px;139 color: inherit;
72 unmodified lines
212 .main > .code {213 margin-right: -0px;214 }215 .code-container > pre[class*='language-'] {194 font-size: 0.6rem!important; 216 font-size: 0.6rem !important;217 border-radius: 10px 10px 0 0 !important;218 }219 .counter {220 position: absolute;221 top: -120px;222 }201}223}
modified:examples/demo/index.html+5 added-2 removed
modified:examples/starter/index.html+1 added-1 removed
1<!DOCTYPE html>1<!doctype html>2<html lang="en">3 <head>4 <meta charset="UTF-8" />5 <link rel="icon" href="/favicon.ico" />
10 unmodified lines
modified:examples/starter/tsconfig.json-1 removed
17 unmodified lines
18 },19 "include": ["vite.config.ts", "./src/**/*"],20 "exclude": ["node_modules"]21}22
added:.prettierignore+2 added
1dist2pnpm-lock.yaml
modified:package.json+2 added-2 removed
63 unmodified lines
64 "build:react:shallow": "rollup -c --config-react_shallow",65 "build:traditional": "rollup -c --config-traditional",66 "postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts",67 "fix": "pnpm run fix:lint && pnpm run fix:format",68 "fix:format": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write",68 "fix:format": "prettier . --write",69 "fix:lint": "eslint . --fix",70 "test": "pnpm run \"/^test:.*/\"",71 "test:format": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --list-different",71 "test:format": "prettier . --list-different",72 "test:types": "tsc --noEmit",73 "test:lint": "eslint .",74 "test:spec": "vitest run",75 "patch-d-ts": "node --input-type=module -e \"import { entries } from './rollup.config.mjs'; import shelljs from 'shelljs'; const { find, sed } = shelljs; find('dist/**/*.d.ts').forEach(f => { entries.forEach(({ find, replacement }) => { sed('-i', new RegExp(' from \\'' + find.source.slice(0, -1) + '\\';$'), ' from \\'' + replacement + '\\';', f); }); sed('-i', / from '(\\.[^']+)\\.ts';$/, ' from \\'\\$1\\';', f); });\"",
97 unmodified lines
modified:vitest.config.mts+3 added-1 removed
14 unmodified lines
15 // https://vitest.dev/guide/migration.html16 globals: true,17 environment: 'jsdom',18 dir: 'tests',19 reporters: process.env.GITHUB_ACTIONS ? ['default', 'github-actions'] : ['default'],19 reporters: process.env.GITHUB_ACTIONS20 ? ['default', 'github-actions']21 : ['default'],22 setupFiles: ['tests/setup.ts'],23 coverage: {24 include: ['src/**/'],25 reporter: ['text', 'json', 'html', 'text-summary'],
5 unmodified lines