chore: drop create script

This commit is contained in:
Cory Dransfeldt 2023-03-25 12:07:41 -07:00
parent d1d845326d
commit ebc1f43610
No known key found for this signature in database
6 changed files with 1635 additions and 56 deletions

View file

@ -14,13 +14,9 @@ module.exports = {
'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended', 'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended', 'plugin:prettier/recommended',
'next',
'next/core-web-vitals',
], ],
rules: { rules: {
'prettier/prettier': 'error', 'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'react-hooks/exhaustive-deps': 'warn',
'jsx-a11y/anchor-is-valid': [ 'jsx-a11y/anchor-is-valid': [
'error', 'error',
{ {
@ -29,9 +25,7 @@ module.exports = {
aspects: ['invalidHref', 'preferButton'], aspects: ['invalidHref', 'preferButton'],
}, },
], ],
'react/prop-types': 0,
'no-unused-vars': 0, 'no-unused-vars': 0,
'react/no-unescaped-entities': 0,
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-ts-comment': 'off',

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
npx lint-staged npx lint-staged
npx --no -- commitlint --edit ${1}

1
commitlint.config.js Normal file
View file

@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }

23
create
View file

@ -1,23 +0,0 @@
#/bin/bash
TITLE=$@
TITLEF=$(echo $TITLE | tr " " "-")
YEAR=$(date +"%Y")
MONTH=$(date +"%m")
mkdir -p "src/posts/$YEAR/$MONTH"
FILENAME="src/posts/$YEAR/$MONTH/$TITLEF.md"
cat <<EOF > $FILENAME
---
title: "$TITLE"
date: "$(date '+%Y-%m-%d')"
tags:
-
---
<!-- excerpt -->
EOF
echo "Created new post at $FILENAME"

View file

@ -25,20 +25,24 @@
"postcss": "^8.4.5", "postcss": "^8.4.5",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"prettier-plugin-tailwindcss": "^0.2.5", "prettier-plugin-tailwindcss": "^0.2.5",
"sanitize-html": "^2.10.0", "sanitize-html": "^2.10.0"
"husky": "^8.0.0"
}, },
"dependencies": { "dependencies": {
"@11ty/eleventy-activity-feed": "^1.0.9", "@11ty/eleventy-activity-feed": "^1.0.9",
"@11ty/eleventy-fetch": "^4.0.0", "@11ty/eleventy-fetch": "^4.0.0",
"@11ty/eleventy-img": "^3.0.0", "@11ty/eleventy-img": "^3.0.0",
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",
"@extractus/feed-extractor": "^6.2.1", "@extractus/feed-extractor": "^6.2.1",
"@funboxteam/markdown-lint": "^2.0.1", "@funboxteam/markdown-lint": "^2.0.1",
"@sherby/eleventy-plugin-files-minifier": "^1.1.1", "@sherby/eleventy-plugin-files-minifier": "^1.1.1",
"@tailwindcss/typography": "^0.5.1", "@tailwindcss/typography": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"autoprefixer": "^10.4.2", "autoprefixer": "^10.4.2",
"dotenv-flow": "^3.2.0", "dotenv-flow": "^3.2.0",
"eleventy-plugin-unfurl": "^1.0.0", "eleventy-plugin-unfurl": "^1.0.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"husky": "^8.0.3", "husky": "^8.0.3",
"lint-staged": "^13.2.0", "lint-staged": "^13.2.0",
"liquidjs": "^10.7.0", "liquidjs": "^10.7.0",
@ -49,8 +53,8 @@
"tailwind-dracula": "^1.1.0", "tailwind-dracula": "^1.1.0",
"tailwindcss": "^3.0.18" "tailwindcss": "^3.0.18"
}, },
"lint-staged":{ "lint-staged": {
"**/*.{js,jsx,ts,tsx}":[ "**/*.{js,jsx,ts,tsx}": [
"npx prettier --write", "npx prettier --write",
"npx eslint --fix" "npx eslint --fix"
], ],

1646
yarn.lock

File diff suppressed because it is too large Load diff