ci(eslint): add eslint-plugin-tailwindcss
This commit is contained in:
parent
513960b6a2
commit
1ca18504c4
6 changed files with 18 additions and 62 deletions
|
@ -10,6 +10,7 @@
|
||||||
"plugin:react/recommended",
|
"plugin:react/recommended",
|
||||||
"plugin:react/jsx-runtime",
|
"plugin:react/jsx-runtime",
|
||||||
"plugin:react-hooks/recommended",
|
"plugin:react-hooks/recommended",
|
||||||
|
"plugin:tailwindcss/recommended",
|
||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"printWidth": 120,
|
"printWidth": 120,
|
||||||
"plugins": ["prettier-plugin-tailwindcss"],
|
|
||||||
"tailwindFunction": ["clsx"]
|
"tailwindFunction": ["clsx"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,12 +63,12 @@
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"eslint-plugin-react": "^7.32.2",
|
"eslint-plugin-react": "^7.32.2",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
|
"eslint-plugin-tailwindcss": "^3.13.0",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.2.3",
|
"lint-staged": "^13.2.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss": "^8.4.25",
|
"postcss": "^8.4.25",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0",
|
||||||
"prettier-plugin-tailwindcss": "^0.4.0",
|
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
|
|
|
@ -145,6 +145,9 @@ devDependencies:
|
||||||
eslint-plugin-react-hooks:
|
eslint-plugin-react-hooks:
|
||||||
specifier: ^4.6.0
|
specifier: ^4.6.0
|
||||||
version: 4.6.0(eslint@8.44.0)
|
version: 4.6.0(eslint@8.44.0)
|
||||||
|
eslint-plugin-tailwindcss:
|
||||||
|
specifier: ^3.13.0
|
||||||
|
version: 3.13.0(tailwindcss@3.3.2)
|
||||||
husky:
|
husky:
|
||||||
specifier: ^8.0.3
|
specifier: ^8.0.3
|
||||||
version: 8.0.3
|
version: 8.0.3
|
||||||
|
@ -160,9 +163,6 @@ devDependencies:
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.0.0
|
specifier: ^3.0.0
|
||||||
version: 3.0.0
|
version: 3.0.0
|
||||||
prettier-plugin-tailwindcss:
|
|
||||||
specifier: ^0.4.0
|
|
||||||
version: 0.4.0(prettier@3.0.0)
|
|
||||||
react:
|
react:
|
||||||
specifier: ^18.2.0
|
specifier: ^18.2.0
|
||||||
version: 18.2.0
|
version: 18.2.0
|
||||||
|
@ -3453,6 +3453,17 @@ packages:
|
||||||
string.prototype.matchall: 4.0.8
|
string.prototype.matchall: 4.0.8
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/eslint-plugin-tailwindcss@3.13.0(tailwindcss@3.3.2):
|
||||||
|
resolution: {integrity: sha512-Fcep4KDRLWaK3KmkQbdyKHG0P4GdXFmXdDaweTIPcgOP60OOuWFbh1++dufRT28Q4zpKTKaHwTsXPJ4O/EjU2Q==}
|
||||||
|
engines: {node: '>=12.13.0'}
|
||||||
|
peerDependencies:
|
||||||
|
tailwindcss: ^3.3.2
|
||||||
|
dependencies:
|
||||||
|
fast-glob: 3.3.0
|
||||||
|
postcss: 8.4.25
|
||||||
|
tailwindcss: 3.3.2(ts-node@10.9.1)
|
||||||
|
dev: true
|
||||||
|
|
||||||
/eslint-scope@5.1.1:
|
/eslint-scope@5.1.1:
|
||||||
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
|
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
|
||||||
engines: {node: '>=8.0.0'}
|
engines: {node: '>=8.0.0'}
|
||||||
|
@ -6348,61 +6359,6 @@ packages:
|
||||||
fast-diff: 1.3.0
|
fast-diff: 1.3.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/prettier-plugin-tailwindcss@0.4.0(prettier@3.0.0):
|
|
||||||
resolution: {integrity: sha512-Rna0sDPETA0KNhMHlN8wxKNgfSa8mTl2hPPAGxnbv6tUcHT6J4RQmQ8TLXyhB7Dm5Von4iHloBxTyClYM6wT0A==}
|
|
||||||
engines: {node: '>=12.17.0'}
|
|
||||||
peerDependencies:
|
|
||||||
'@ianvs/prettier-plugin-sort-imports': '*'
|
|
||||||
'@prettier/plugin-pug': '*'
|
|
||||||
'@shopify/prettier-plugin-liquid': '*'
|
|
||||||
'@shufo/prettier-plugin-blade': '*'
|
|
||||||
'@trivago/prettier-plugin-sort-imports': '*'
|
|
||||||
prettier: ^2.2 || ^3.0
|
|
||||||
prettier-plugin-astro: '*'
|
|
||||||
prettier-plugin-css-order: '*'
|
|
||||||
prettier-plugin-import-sort: '*'
|
|
||||||
prettier-plugin-jsdoc: '*'
|
|
||||||
prettier-plugin-marko: '*'
|
|
||||||
prettier-plugin-organize-attributes: '*'
|
|
||||||
prettier-plugin-organize-imports: '*'
|
|
||||||
prettier-plugin-style-order: '*'
|
|
||||||
prettier-plugin-svelte: '*'
|
|
||||||
prettier-plugin-twig-melody: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
'@ianvs/prettier-plugin-sort-imports':
|
|
||||||
optional: true
|
|
||||||
'@prettier/plugin-pug':
|
|
||||||
optional: true
|
|
||||||
'@shopify/prettier-plugin-liquid':
|
|
||||||
optional: true
|
|
||||||
'@shufo/prettier-plugin-blade':
|
|
||||||
optional: true
|
|
||||||
'@trivago/prettier-plugin-sort-imports':
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-astro:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-css-order:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-import-sort:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-jsdoc:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-marko:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-organize-attributes:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-organize-imports:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-style-order:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-svelte:
|
|
||||||
optional: true
|
|
||||||
prettier-plugin-twig-melody:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
|
||||||
prettier: 3.0.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/prettier@3.0.0:
|
/prettier@3.0.0:
|
||||||
resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==}
|
resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
|
|
|
@ -6,7 +6,7 @@ export interface AppContainerProps {
|
||||||
|
|
||||||
const AppContainer: FC<AppContainerProps> = ({ children }) => {
|
const AppContainer: FC<AppContainerProps> = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
<div className="fixed bottom-10 right-10 top-10 z-top box-border grid w-1/4 grid-flow-col grid-rows-[auto_1fr_auto] overflow-hidden rounded-xl bg-slate-50 font-sans shadow-2xl transition-transform">
|
<div className="fixed inset-y-10 right-10 z-top box-border grid w-1/4 grid-flow-col grid-rows-[auto_1fr_auto] overflow-hidden rounded-xl bg-slate-50 font-sans shadow-2xl transition-transform">
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,7 +7,7 @@ const Header: FC = () => {
|
||||||
const websiteInfo = getWebSiteInfo()
|
const websiteInfo = getWebSiteInfo()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="shadow-xs z-10 grid h-12 grid-cols-[auto_1fr_auto] items-center bg-white px-4 backdrop-blur-lg 2xl:h-14">
|
<div className="z-10 grid h-12 grid-cols-[auto_1fr_auto] items-center bg-white px-4 backdrop-blur-lg 2xl:h-14">
|
||||||
<img className="h-8 w-8 overflow-hidden rounded-full" src={websiteInfo.icon} />
|
<img className="h-8 w-8 overflow-hidden rounded-full" src={websiteInfo.icon} />
|
||||||
<HoverCard>
|
<HoverCard>
|
||||||
<HoverCardTrigger asChild>
|
<HoverCardTrigger asChild>
|
||||||
|
|
Loading…
Reference in a new issue