Skip to content

Commit

Permalink
fix: minimatch bug and move to @nuxt/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed May 9, 2023
1 parent e56394b commit f536b0d
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 828 deletions.
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

7 changes: 7 additions & 0 deletions .eslintrc.cjs
@@ -0,0 +1,7 @@
module.exports = {
root: true,
extends: ["@nuxt/eslint-config"],
rules: {
'vue/multi-word-component-names': 'off'
}
};
17 changes: 14 additions & 3 deletions docs/components/content/Logo.vue
Expand Up @@ -7,8 +7,19 @@
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M43.904 29V9.4H47.488L56.7 23.204V9.4H60.284V29H56.7L47.488 15.224V29H43.904ZM69.2077 29.336C67.4717 29.336 66.1277 28.7947 65.1757 27.712C64.2424 26.6293 63.7757 25.0427 63.7757 22.952V15.112H67.3317V22.616C67.3317 23.8107 67.5744 24.7253 68.0597 25.36C68.545 25.9947 69.3104 26.312 70.3557 26.312C71.345 26.312 72.157 25.9573 72.7917 25.248C73.445 24.5387 73.7717 23.5493 73.7717 22.28V15.112H77.3557V29H74.1917L73.9117 26.648C73.4824 27.4693 72.857 28.1227 72.0357 28.608C71.233 29.0933 70.2904 29.336 69.2077 29.336ZM79.7188 29L84.7588 22.056L79.7188 15.112H83.5548L87.0828 20.04L90.5828 15.112H94.4468L89.3788 22.056L94.4468 29H90.5828L87.0828 24.072L83.5548 29H79.7188ZM102.918 29C101.462 29 100.295 28.6453 99.4182 27.936C98.5408 27.2267 98.1022 25.9667 98.1022 24.156V18.108H95.7222V15.112H98.1022L98.5222 11.388H101.686V15.112H105.438V18.108H101.686V24.184C101.686 24.856 101.826 25.3227 102.106 25.584C102.405 25.8267 102.909 25.948 103.618 25.948H105.354V29H102.918Z" fill="currentColor" />
<path d="M113.163 29V12.284H107.451V9.4H122.487V12.284H116.747V29H113.163ZM127.467 29.336C126.273 29.336 125.293 29.1493 124.527 28.776C123.762 28.384 123.193 27.8707 122.819 27.236C122.446 26.6013 122.259 25.9013 122.259 25.136C122.259 23.848 122.763 22.8027 123.771 22C124.779 21.1973 126.291 20.796 128.307 20.796H131.835V20.46C131.835 19.508 131.565 18.808 131.023 18.36C130.482 17.912 129.81 17.688 129.007 17.688C128.279 17.688 127.645 17.8653 127.103 18.22C126.562 18.556 126.226 19.06 126.095 19.732H122.595C122.689 18.724 123.025 17.8467 123.603 17.1C124.201 16.3533 124.966 15.784 125.899 15.392C126.833 14.9813 127.878 14.776 129.035 14.776C131.014 14.776 132.573 15.2707 133.711 16.26C134.85 17.2493 135.419 18.6493 135.419 20.46V29H132.367L132.031 26.76C131.621 27.5067 131.042 28.1227 130.295 28.608C129.567 29.0933 128.625 29.336 127.467 29.336ZM128.279 26.536C129.306 26.536 130.099 26.2 130.659 25.528C131.238 24.856 131.602 24.0253 131.751 23.036H128.699C127.747 23.036 127.066 23.2133 126.655 23.568C126.245 23.904 126.039 24.324 126.039 24.828C126.039 25.3693 126.245 25.7893 126.655 26.088C127.066 26.3867 127.607 26.536 128.279 26.536ZM140.772 12.956C140.118 12.956 139.577 12.76 139.148 12.368C138.737 11.976 138.532 11.4813 138.532 10.884C138.532 10.2867 138.737 9.80133 139.148 9.428C139.577 9.036 140.118 8.84 140.772 8.84C141.425 8.84 141.957 9.036 142.368 9.428C142.797 9.80133 143.012 10.2867 143.012 10.884C143.012 11.4813 142.797 11.976 142.368 12.368C141.957 12.76 141.425 12.956 140.772 12.956ZM138.98 29V15.112H142.564V29H138.98ZM146.304 29V8.84H149.888V29H146.304ZM156.266 29L152.206 15.112H155.762L158.17 25.108L160.97 15.112H164.946L167.746 25.108L170.182 15.112H173.738L169.65 29H165.926L162.958 18.612L159.99 29H156.266ZM177.932 12.956C177.278 12.956 176.737 12.76 176.308 12.368C175.897 11.976 175.692 11.4813 175.692 10.884C175.692 10.2867 175.897 9.80133 176.308 9.428C176.737 9.036 177.278 8.84 177.932 8.84C178.585 8.84 179.117 9.036 179.528 9.428C179.957 9.80133 180.172 10.2867 180.172 10.884C180.172 11.4813 179.957 11.976 179.528 12.368C179.117 12.76 178.585 12.956 177.932 12.956ZM176.14 29V15.112H179.724V29H176.14ZM183.465 29V15.112H186.629L186.909 17.464C187.338 16.6427 187.954 15.9893 188.757 15.504C189.578 15.0187 190.539 14.776 191.641 14.776C193.358 14.776 194.693 15.3173 195.645 16.4C196.597 17.4827 197.073 19.0693 197.073 21.16V29H193.489V21.496C193.489 20.3013 193.246 19.3867 192.761 18.752C192.275 18.1173 191.519 17.8 190.493 17.8C189.485 17.8 188.654 18.1547 188.001 18.864C187.366 19.5733 187.049 20.5627 187.049 21.832V29H183.465ZM206.884 29.336C205.577 29.336 204.41 29.0187 203.384 28.384C202.357 27.7493 201.545 26.8813 200.948 25.78C200.35 24.6787 200.052 23.428 200.052 22.028C200.052 20.628 200.35 19.3867 200.948 18.304C201.545 17.2027 202.357 16.344 203.384 15.728C204.41 15.0933 205.577 14.776 206.884 14.776C207.929 14.776 208.844 14.972 209.628 15.364C210.412 15.756 211.046 16.3067 211.532 17.016V8.84H215.116V29H211.924L211.532 27.012C211.084 27.628 210.486 28.1693 209.74 28.636C209.012 29.1027 208.06 29.336 206.884 29.336ZM207.64 26.2C208.797 26.2 209.74 25.8173 210.468 25.052C211.214 24.268 211.588 23.2693 211.588 22.056C211.588 20.8427 211.214 19.8533 210.468 19.088C209.74 18.304 208.797 17.912 207.64 17.912C206.501 17.912 205.558 18.2947 204.812 19.06C204.065 19.8253 203.692 20.8147 203.692 22.028C203.692 23.2413 204.065 24.24 204.812 25.024C205.558 25.808 206.501 26.2 207.64 26.2Z" fill="#38BDF8" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 17.088C9.06667 12.8213 11.7333 10.688 16 10.688C22.4 10.688 23.2 15.488 26.4 16.288C28.5333 16.8213 30.4 16.0213 32 13.888C30.9333 18.1547 28.2667 20.288 24 20.288C17.6 20.288 16.8 15.488 13.6 14.688C11.4667 14.1547 9.6 14.9547 8 17.088ZM0 26.688C1.06667 22.4213 3.73333 20.288 8 20.288C14.4 20.288 15.2 25.088 18.4 25.888C20.5333 26.4213 22.4 25.6213 24 23.488C22.9333 27.7547 20.2667 29.888 16 29.888C9.6 29.888 8.8 25.088 5.6 24.288C3.46667 23.7547 1.6 24.5547 0 26.688Z" fill="#38BDF8" />
<path
d="M43.904 29V9.4H47.488L56.7 23.204V9.4H60.284V29H56.7L47.488 15.224V29H43.904ZM69.2077 29.336C67.4717 29.336 66.1277 28.7947 65.1757 27.712C64.2424 26.6293 63.7757 25.0427 63.7757 22.952V15.112H67.3317V22.616C67.3317 23.8107 67.5744 24.7253 68.0597 25.36C68.545 25.9947 69.3104 26.312 70.3557 26.312C71.345 26.312 72.157 25.9573 72.7917 25.248C73.445 24.5387 73.7717 23.5493 73.7717 22.28V15.112H77.3557V29H74.1917L73.9117 26.648C73.4824 27.4693 72.857 28.1227 72.0357 28.608C71.233 29.0933 70.2904 29.336 69.2077 29.336ZM79.7188 29L84.7588 22.056L79.7188 15.112H83.5548L87.0828 20.04L90.5828 15.112H94.4468L89.3788 22.056L94.4468 29H90.5828L87.0828 24.072L83.5548 29H79.7188ZM102.918 29C101.462 29 100.295 28.6453 99.4182 27.936C98.5408 27.2267 98.1022 25.9667 98.1022 24.156V18.108H95.7222V15.112H98.1022L98.5222 11.388H101.686V15.112H105.438V18.108H101.686V24.184C101.686 24.856 101.826 25.3227 102.106 25.584C102.405 25.8267 102.909 25.948 103.618 25.948H105.354V29H102.918Z"
fill="currentColor"
/>
<path
d="M113.163 29V12.284H107.451V9.4H122.487V12.284H116.747V29H113.163ZM127.467 29.336C126.273 29.336 125.293 29.1493 124.527 28.776C123.762 28.384 123.193 27.8707 122.819 27.236C122.446 26.6013 122.259 25.9013 122.259 25.136C122.259 23.848 122.763 22.8027 123.771 22C124.779 21.1973 126.291 20.796 128.307 20.796H131.835V20.46C131.835 19.508 131.565 18.808 131.023 18.36C130.482 17.912 129.81 17.688 129.007 17.688C128.279 17.688 127.645 17.8653 127.103 18.22C126.562 18.556 126.226 19.06 126.095 19.732H122.595C122.689 18.724 123.025 17.8467 123.603 17.1C124.201 16.3533 124.966 15.784 125.899 15.392C126.833 14.9813 127.878 14.776 129.035 14.776C131.014 14.776 132.573 15.2707 133.711 16.26C134.85 17.2493 135.419 18.6493 135.419 20.46V29H132.367L132.031 26.76C131.621 27.5067 131.042 28.1227 130.295 28.608C129.567 29.0933 128.625 29.336 127.467 29.336ZM128.279 26.536C129.306 26.536 130.099 26.2 130.659 25.528C131.238 24.856 131.602 24.0253 131.751 23.036H128.699C127.747 23.036 127.066 23.2133 126.655 23.568C126.245 23.904 126.039 24.324 126.039 24.828C126.039 25.3693 126.245 25.7893 126.655 26.088C127.066 26.3867 127.607 26.536 128.279 26.536ZM140.772 12.956C140.118 12.956 139.577 12.76 139.148 12.368C138.737 11.976 138.532 11.4813 138.532 10.884C138.532 10.2867 138.737 9.80133 139.148 9.428C139.577 9.036 140.118 8.84 140.772 8.84C141.425 8.84 141.957 9.036 142.368 9.428C142.797 9.80133 143.012 10.2867 143.012 10.884C143.012 11.4813 142.797 11.976 142.368 12.368C141.957 12.76 141.425 12.956 140.772 12.956ZM138.98 29V15.112H142.564V29H138.98ZM146.304 29V8.84H149.888V29H146.304ZM156.266 29L152.206 15.112H155.762L158.17 25.108L160.97 15.112H164.946L167.746 25.108L170.182 15.112H173.738L169.65 29H165.926L162.958 18.612L159.99 29H156.266ZM177.932 12.956C177.278 12.956 176.737 12.76 176.308 12.368C175.897 11.976 175.692 11.4813 175.692 10.884C175.692 10.2867 175.897 9.80133 176.308 9.428C176.737 9.036 177.278 8.84 177.932 8.84C178.585 8.84 179.117 9.036 179.528 9.428C179.957 9.80133 180.172 10.2867 180.172 10.884C180.172 11.4813 179.957 11.976 179.528 12.368C179.117 12.76 178.585 12.956 177.932 12.956ZM176.14 29V15.112H179.724V29H176.14ZM183.465 29V15.112H186.629L186.909 17.464C187.338 16.6427 187.954 15.9893 188.757 15.504C189.578 15.0187 190.539 14.776 191.641 14.776C193.358 14.776 194.693 15.3173 195.645 16.4C196.597 17.4827 197.073 19.0693 197.073 21.16V29H193.489V21.496C193.489 20.3013 193.246 19.3867 192.761 18.752C192.275 18.1173 191.519 17.8 190.493 17.8C189.485 17.8 188.654 18.1547 188.001 18.864C187.366 19.5733 187.049 20.5627 187.049 21.832V29H183.465ZM206.884 29.336C205.577 29.336 204.41 29.0187 203.384 28.384C202.357 27.7493 201.545 26.8813 200.948 25.78C200.35 24.6787 200.052 23.428 200.052 22.028C200.052 20.628 200.35 19.3867 200.948 18.304C201.545 17.2027 202.357 16.344 203.384 15.728C204.41 15.0933 205.577 14.776 206.884 14.776C207.929 14.776 208.844 14.972 209.628 15.364C210.412 15.756 211.046 16.3067 211.532 17.016V8.84H215.116V29H211.924L211.532 27.012C211.084 27.628 210.486 28.1693 209.74 28.636C209.012 29.1027 208.06 29.336 206.884 29.336ZM207.64 26.2C208.797 26.2 209.74 25.8173 210.468 25.052C211.214 24.268 211.588 23.2693 211.588 22.056C211.588 20.8427 211.214 19.8533 210.468 19.088C209.74 18.304 208.797 17.912 207.64 17.912C206.501 17.912 205.558 18.2947 204.812 19.06C204.065 19.8253 203.692 20.8147 203.692 22.028C203.692 23.2413 204.065 24.24 204.812 25.024C205.558 25.808 206.501 26.2 207.64 26.2Z"
fill="#38BDF8"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M8 17.088C9.06667 12.8213 11.7333 10.688 16 10.688C22.4 10.688 23.2 15.488 26.4 16.288C28.5333 16.8213 30.4 16.0213 32 13.888C30.9333 18.1547 28.2667 20.288 24 20.288C17.6 20.288 16.8 15.488 13.6 14.688C11.4667 14.1547 9.6 14.9547 8 17.088ZM0 26.688C1.06667 22.4213 3.73333 20.288 8 20.288C14.4 20.288 15.2 25.088 18.4 25.888C20.5333 26.4213 22.4 25.6213 24 23.488C22.9333 27.7547 20.2667 29.888 16 29.888C9.6 29.888 8.8 25.088 5.6 24.288C3.46667 23.7547 1.6 24.5547 0 26.688Z"
fill="#38BDF8"
/>
</svg>
</template>
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -19,7 +19,7 @@
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"dev": "nuxt dev playground",
"dev:nuxt2": "nuxt dev nuxt2-playground",
"lint": "eslint --ext .js,.ts,.vue",
"lint": "eslint .",
"prepack": "nuxt-module-build",
"release": "pnpm test && pnpm changelogen --release --push && pnpm publish",
"test": "vitest run"
Expand All @@ -36,6 +36,7 @@
"destr": "^1.2.2",
"h3": "^1.6.5",
"iron-webcrypto": "^0.7.0",
"minimatch": "^9.0.0",
"pathe": "^1.1.0",
"postcss": "^8.4.23",
"postcss-custom-properties": "^13.1.5",
Expand All @@ -50,9 +51,9 @@
"@fontsource/inter": "^4.5.15",
"@nuxt/content": "^2.6.0",
"@nuxt/devtools": "^0.4.6",
"@nuxt/eslint-config": "latest",
"@nuxt/module-builder": "^0.3.1",
"@nuxt/test-utils": "^3.4.3",
"@nuxtjs/eslint-config-typescript": "latest",
"@tailwindcss/typography": "^0.5.9",
"changelogen": "^0.5.3",
"codecov": "latest",
Expand All @@ -61,4 +62,4 @@
"nuxt": "^3.4.3",
"vitest": "^0.31.0"
}
}
}
5 changes: 4 additions & 1 deletion playground/components/CallToAction.vue
Expand Up @@ -8,7 +8,10 @@
</h2>
<div class="flex mt-8 lg:mt-0 lg:shrink-0">
<div class="inline-flex rounded-md shadow">
<a href="/_tailwind/" class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-700">
<a
href="/_tailwind/"
class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-700"
>
Open Tailwind Config Viewer
</a>
</div>
Expand Down
5 changes: 4 additions & 1 deletion playground/pages/index.vue
Expand Up @@ -12,7 +12,10 @@
This color comes from the `./theme` layer
</p>
<div>
<NuxtLink to="/content" class="underline hover:text-indigo-500">
<NuxtLink
to="/content"
class="underline hover:text-indigo-500"
>
Visit the /content page to check out the @nuxt/content integration!
</NuxtLink>
</div>
Expand Down

0 comments on commit f536b0d

Please sign in to comment.