1
Fork 0

Compare commits

..

4 Commits

Author SHA1 Message Date
Bauke 20e40118ae
Version 0.1.1. 2022-12-02 14:23:28 +01:00
Bauke d09f1c93f1
Add separate XO calls for Astro and MDX. 2022-12-02 14:19:10 +01:00
Bauke bd9b879795
Remove eslint-plugin-prettier. 2022-12-02 14:18:55 +01:00
Bauke c002c338af
Add more MDX for testing. 2022-12-02 14:17:47 +01:00
7 changed files with 114 additions and 42 deletions

View File

@ -1,8 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": [
"plugin:prettier/recommended"
],
"overrides": [
{
"extends": [

View File

@ -1,7 +1,7 @@
{
"name": "@bauke/eslint-config",
"description": "Shareable ESLint configuration.",
"version": "0.1.0",
"version": "0.1.1",
"license": "Unlicense",
"repository": "https://git.bauke.xyz/Bauke/shareable-configs",
"type": "module",
@ -13,14 +13,12 @@
"@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"
"eslint-plugin-mdx": "^2.0.5"
},
"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"
"eslint-plugin-mdx": "^2.0.5"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@bauke/prettier-config",
"description": "Shareable Prettier configuration.",
"version": "0.1.0",
"version": "0.1.1",
"license": "Unlicense",
"repository": "https://git.bauke.xyz/Bauke/shareable-configs",
"type": "module",

View File

@ -1,7 +1,7 @@
{
"name": "@bauke/stylelint-config",
"description": "Shareable Stylelint configuration.",
"version": "0.1.0",
"version": "0.1.1",
"license": "Unlicense",
"repository": "https://git.bauke.xyz/Bauke/shareable-configs",
"type": "module",

View File

@ -3,7 +3,7 @@
"license": "Unlicense",
"private": true,
"scripts": {
"lint": "xo && stylelint '**/*.scss'"
"lint": "xo --extension astro ; xo --extension mdx ; stylelint '**/*.scss'"
},
"devDependencies": {
"@bauke/eslint-config": "workspace:*",
@ -17,12 +17,8 @@
"extends": "@bauke/stylelint-config"
},
"xo": {
"extensions": [
"astro",
"mdx",
"ts"
],
"extends": "@bauke/eslint-config",
"prettier": true,
"space": true
}
}

View File

@ -9,3 +9,8 @@ export const Header = () => {
};
<Header />
## Contents
- Section 1
- Section 2

View File

@ -14,13 +14,11 @@ importers:
eslint: '>=8.28.0'
eslint-plugin-astro: ^0.21.0
eslint-plugin-mdx: ^2.0.5
eslint-plugin-prettier: ^4.2.1
devDependencies:
'@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
eslint: 8.28.0
eslint-plugin-astro: 0.21.0_eslint@8.28.0
eslint-plugin-mdx: 2.0.5_eslint@8.28.0
eslint-plugin-prettier: 4.2.1_5qrnzwqb344w6up62gv3safeoi
packages/prettier:
specifiers:
@ -211,7 +209,7 @@ packages:
resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==}
dependencies:
'@types/eslint': 8.4.10
'@types/estree': 0.0.51
'@types/estree': 1.0.0
dev: true
/@types/eslint/7.29.0:
@ -224,7 +222,7 @@ packages:
/@types/eslint/8.4.10:
resolution: {integrity: sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==}
dependencies:
'@types/estree': 0.0.51
'@types/estree': 1.0.0
'@types/json-schema': 7.0.11
dev: true
@ -282,10 +280,41 @@ packages:
resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==}
dev: true
/@types/semver/7.3.13:
resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==}
dev: true
/@types/unist/2.0.6:
resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==}
dev: true
/@typescript-eslint/eslint-plugin/5.45.0_czs5uoqkd3podpy6vgtsxfc7au:
resolution: {integrity: sha512-CXXHNlf0oL+Yg021cxgOdMHNTXD17rHkq7iW6RFHoybdFgQBjU3yIXhhcPpGwr1CjZlo6ET8C6tzX5juQoXeGA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
'@typescript-eslint/parser': ^5.0.0
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
'@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
'@typescript-eslint/scope-manager': 5.45.0
'@typescript-eslint/type-utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
'@typescript-eslint/utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
debug: 4.3.4
eslint: 8.28.0
ignore: 5.2.1
natural-compare-lite: 1.4.0
regexpp: 3.2.0
semver: 7.3.8
tsutils: 3.21.0_typescript@4.9.3
typescript: 4.9.3
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/parser/5.45.0_hsf322ms6xhhd4b5ne6lb74y4a:
resolution: {integrity: sha512-brvs/WSM4fKUmF5Ot/gEve6qYiCMjm6w4HkHPfS6ZNmxTS0m0iNN4yOChImaCkqc1hRwFGqUyanMXuGal6oyyQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@ -314,6 +343,26 @@ packages:
'@typescript-eslint/visitor-keys': 5.45.0
dev: true
/@typescript-eslint/type-utils/5.45.0_hsf322ms6xhhd4b5ne6lb74y4a:
resolution: {integrity: sha512-DY7BXVFSIGRGFZ574hTEyLPRiQIvI/9oGcN8t1A7f6zIs6ftbrU0nhyV26ZW//6f85avkwrLag424n+fkuoJ1Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: '*'
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
'@typescript-eslint/typescript-estree': 5.45.0_typescript@4.9.3
'@typescript-eslint/utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
debug: 4.3.4
eslint: 8.28.0
tsutils: 3.21.0_typescript@4.9.3
typescript: 4.9.3
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/types/5.45.0:
resolution: {integrity: sha512-QQij+u/vgskA66azc9dCmx+rev79PzX8uDHpsqSjEFtfF2gBUTRCpvYMh2gw2ghkJabNkPlSUCimsyBEQZd1DA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@ -340,6 +389,26 @@ packages:
- supports-color
dev: true
/@typescript-eslint/utils/5.45.0_hsf322ms6xhhd4b5ne6lb74y4a:
resolution: {integrity: sha512-OUg2JvsVI1oIee/SwiejTot2OxwU8a7UfTFMOdlhD2y+Hl6memUSL4s98bpUTo8EpVEr0lmwlU7JSu/p2QpSvA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
'@types/json-schema': 7.0.11
'@types/semver': 7.3.13
'@typescript-eslint/scope-manager': 5.45.0
'@typescript-eslint/types': 5.45.0
'@typescript-eslint/typescript-estree': 5.45.0_typescript@4.9.3
eslint: 8.28.0
eslint-scope: 5.1.1
eslint-utils: 3.0.0_eslint@8.28.0
semver: 7.3.8
transitivePeerDependencies:
- supports-color
- typescript
dev: true
/@typescript-eslint/visitor-keys/5.45.0:
resolution: {integrity: sha512-jc6Eccbn2RtQPr1s7th6jJWQHBHI6GBVQkCHoJFQ5UreaKm59Vxw+ynQUPPY2u2Amquc+7tmEoC2G52ApsGNNg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@ -1072,6 +1141,21 @@ packages:
eslint: 8.28.0
dev: true
/eslint-config-xo-typescript/0.55.1_2bg4zk75plhcth7wswe3tu5xji:
resolution: {integrity: sha512-iXua+7n9fOp7LzGzvXlcZG0w6cdtscjASGTrAHMj0Rn9voayxF2oRoMIK1QS6ZJb4fMVEQZdU2D6gTKmWhcCQQ==}
engines: {node: '>=12'}
peerDependencies:
'@typescript-eslint/eslint-plugin': '>=5.43.0'
'@typescript-eslint/parser': '>=5.43.0'
eslint: '>=8.0.0'
typescript: '>=4.4'
dependencies:
'@typescript-eslint/eslint-plugin': 5.45.0_czs5uoqkd3podpy6vgtsxfc7au
'@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
eslint: 8.28.0
typescript: 4.9.3
dev: true
/eslint-config-xo/0.43.1_eslint@8.28.0:
resolution: {integrity: sha512-azv1L2PysRA0NkZOgbndUpN+581L7wPqkgJOgxxw3hxwXAbJgD6Hqb/SjHRiACifXt/AvxCzE/jIKFAlI7XjvQ==}
engines: {node: '>=12'}
@ -1115,7 +1199,7 @@ packages:
array-find: 1.0.0
debug: 3.2.7
enhanced-resolve: 0.9.1
eslint-plugin-import: 2.26.0_eslint@8.28.0
eslint-plugin-import: 2.26.0_vbnhqcxlbs7ynbxw44hu2vq7eq
find-root: 1.1.0
has: 1.0.3
interpret: 1.4.0
@ -1154,7 +1238,7 @@ packages:
- supports-color
dev: true
/eslint-module-utils/2.7.4_sjge656jyd3rr27cepuzx7h5u4:
/eslint-module-utils/2.7.4_kr6tb4mi2cmpd7whrqyyy67tyi:
resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==}
engines: {node: '>=4'}
peerDependencies:
@ -1175,6 +1259,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
'@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
debug: 3.2.7
eslint: 8.28.0
eslint-import-resolver-node: 0.3.6
@ -1238,7 +1323,7 @@ packages:
ignore: 5.2.1
dev: true
/eslint-plugin-import/2.26.0_eslint@8.28.0:
/eslint-plugin-import/2.26.0_vbnhqcxlbs7ynbxw44hu2vq7eq:
resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==}
engines: {node: '>=4'}
peerDependencies:
@ -1248,13 +1333,14 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
'@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
array-includes: 3.1.6
array.prototype.flat: 1.3.1
debug: 2.6.9
doctrine: 2.1.0
eslint: 8.28.0
eslint-import-resolver-node: 0.3.6
eslint-module-utils: 2.7.4_sjge656jyd3rr27cepuzx7h5u4
eslint-module-utils: 2.7.4_kr6tb4mi2cmpd7whrqyyy67tyi
has: 1.0.3
is-core-module: 2.11.0
is-glob: 4.0.3
@ -1326,22 +1412,6 @@ packages:
is-proto-prop: 2.0.0
dev: true
/eslint-plugin-prettier/4.2.1_5qrnzwqb344w6up62gv3safeoi:
resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==}
engines: {node: '>=12.0.0'}
peerDependencies:
eslint: '>=7.28.0'
eslint-config-prettier: '*'
prettier: '>=2.0.0'
peerDependenciesMeta:
eslint-config-prettier:
optional: true
dependencies:
eslint: 8.28.0
prettier: 2.8.0
prettier-linter-helpers: 1.0.0
dev: true
/eslint-plugin-prettier/4.2.1_cwlo2dingkvfydnaculr42urve:
resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==}
engines: {node: '>=12.0.0'}
@ -2891,6 +2961,10 @@ packages:
hasBin: true
dev: true
/natural-compare-lite/1.4.0:
resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}
dev: true
/natural-compare/1.4.0:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
dev: true
@ -4284,17 +4358,20 @@ packages:
optional: true
dependencies:
'@eslint/eslintrc': 1.3.3
'@typescript-eslint/eslint-plugin': 5.45.0_czs5uoqkd3podpy6vgtsxfc7au
'@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a
arrify: 3.0.0
cosmiconfig: 7.1.0
define-lazy-prop: 3.0.0
eslint: 8.28.0
eslint-config-prettier: 8.5.0_eslint@8.28.0
eslint-config-xo: 0.43.1_eslint@8.28.0
eslint-config-xo-typescript: 0.55.1_2bg4zk75plhcth7wswe3tu5xji
eslint-formatter-pretty: 4.1.0
eslint-import-resolver-webpack: 0.13.2_cpbkthufuku27qbvucozysaw6q
eslint-plugin-ava: 13.2.0_eslint@8.28.0
eslint-plugin-eslint-comments: 3.2.0_eslint@8.28.0
eslint-plugin-import: 2.26.0_eslint@8.28.0
eslint-plugin-import: 2.26.0_vbnhqcxlbs7ynbxw44hu2vq7eq
eslint-plugin-n: 15.5.1_eslint@8.28.0
eslint-plugin-no-use-extend-native: 0.5.0
eslint-plugin-prettier: 4.2.1_cwlo2dingkvfydnaculr42urve
@ -4318,7 +4395,6 @@ packages:
typescript: 4.9.3
webpack: 5.75.0
transitivePeerDependencies:
- '@typescript-eslint/parser'
- eslint-import-resolver-typescript
- supports-color
dev: true