1
Fork 0

Initial commit!

This commit is contained in:
Bauke 2022-12-02 11:47:58 +01:00
commit 16c32118e4
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
18 changed files with 4596 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules/
.turbo/

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org/>

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Shareable Configs
> **Miscellaneous shareable configuration files.**

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "shareable-configs",
"license": "Unlicense",
"private": true,
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"lint": "turbo run lint"
},
"devDependencies": {
"turbo": "^1.6.3"
}
}

View File

@ -0,0 +1,48 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": [
"plugin:prettier/recommended"
],
"overrides": [
{
"extends": [
"plugin:astro/recommended"
],
"files": [
"**/*.astro"
],
"parser": "astro-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [
".astro"
]
},
"rules": {
"unicorn/text-encoding-identifier-case": "off"
}
},
{
"extends": [
"plugin:mdx/recommended"
],
"files": [
"**/*.mdx"
],
"rules": {
"no-unused-expressions": [
"error",
{
"enforceForJSX": false
}
]
}
}
],
"rules": {
"quotes": [
"error",
"double"
]
}
}

View File

@ -0,0 +1,25 @@
{
"name": "@bauke/eslint-config",
"description": "Shareable ESLint configuration.",
"version": "0.1.0",
"license": "Unlicense",
"type": "module",
"main": "eslint.json",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@typescript-eslint/parser": "^5.45.0",
"eslint": ">=8.28.0",
"eslint-plugin-astro": "^0.21.0",
"eslint-plugin-mdx": "^2.0.5",
"eslint-plugin-prettier": "^4.2.1"
},
"peerDependencies": {
"@typescript-eslint/parser": "^5.45.0",
"eslint": ">=8.28.0",
"eslint-plugin-astro": "^0.21.0",
"eslint-plugin-mdx": "^2.0.5",
"eslint-plugin-prettier": "^4.2.1"
}
}

View File

@ -0,0 +1,17 @@
{
"name": "@bauke/prettier-config",
"description": "Shareable Prettier configuration.",
"version": "0.1.0",
"license": "Unlicense",
"type": "module",
"main": "prettier.json",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"prettier-plugin-astro": "^0.7.0"
},
"peerDependencies": {
"prettier-plugin-astro": "^0.7.0"
}
}

View File

@ -0,0 +1,15 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"overrides": [
{
"files": "**/*.astro",
"options": {
"parser": "astro",
"plugins": [
"prettier-plugin-astro"
]
}
}
],
"singleQuote": false
}

View File

@ -0,0 +1,19 @@
{
"name": "@bauke/stylelint-config",
"description": "Shareable Stylelint configuration.",
"version": "0.1.0",
"license": "Unlicense",
"type": "module",
"main": "stylelint.json",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"stylelint": ">=14.15.0",
"stylelint-config-standard-scss": "^6.1.0"
},
"peerDependencies": {
"stylelint": ">=14.15.0",
"stylelint-config-standard-scss": "^6.1.0"
}
}

View File

@ -0,0 +1,10 @@
{
"$schema": "https://json.schemastore.org/stylelintrc.json",
"extends": [
"stylelint-config-standard-scss"
],
"rules": {
"no-descending-specificity": null,
"string-quotes": "double"
}
}

View File

@ -0,0 +1,3 @@
# Test Samples
> **A small collection of samples to test linting with.**

View File

@ -0,0 +1,28 @@
{
"name": "test-samples",
"license": "Unlicense",
"private": true,
"scripts": {
"lint": "xo && stylelint '**/*.scss'"
},
"devDependencies": {
"@bauke/eslint-config": "workspace:*",
"@bauke/prettier-config": "workspace:*",
"@bauke/stylelint-config": "workspace:*",
"stylelint": "^14.15.0",
"xo": "^0.53.1"
},
"prettier": "@bauke/prettier-config",
"stylelint": {
"extends": "@bauke/stylelint-config"
},
"xo": {
"extensions": [
"astro",
"mdx",
"ts"
],
"extends": "@bauke/eslint-config",
"space": true
}
}

View File

@ -0,0 +1,11 @@
---
export type Props = {
title?: string;
};
const title = Astro.props.title ?? "Sample Astro";
---
<header>
<h1>{title}</h1>
</header>

View File

@ -0,0 +1,11 @@
export const title = "Sample MDX";
export const Header = () => {
return (
<header>
<h1>{title}</h1>
</header>
);
};
<Header />

View File

@ -0,0 +1,9 @@
body {
--background: #010203;
font-size: 1rem;
&::after {
content: "Sample SCSS";
}
}

4361
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

2
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,2 @@
packages:
- 'packages/*'

8
turbo.json Normal file
View File

@ -0,0 +1,8 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"lint": {
"outputs": []
}
}
}