Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.0.0 #213

Merged
merged 6 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/husky/.gitignore

This file was deleted.

17 changes: 16 additions & 1 deletion .github/scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
#!/usr/bin/env bash
#!/usr/bin/env zsh

set -eo pipefail

npx --no-install npm-check-updates -u -ws --root

# packages
print -P "\n[ %5FUpdating packages%f ]"

npm install --ignore-scripts -ws --include-workspace-root
npm run format --if-present
npm run build --if-present
npm run test --if-present

# archived packages
pushd archived/vartastorage
print -P "\n[ %5FUpdating archived/vartastorage%f ]"

npx --no-install npm-check-updates -u
npm install --ignore-scripts
npm run format --if-present
npm run build --if-present
npm run test --if-present
popd
5 changes: 2 additions & 3 deletions .github/husky/pre-commit → .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

. "$(dirname "$0")/_/husky.sh"

npm run format

npm run test
npx lint-staged --verbose --allow-empty
echo ""
File renamed without changes.
4 changes: 0 additions & 4 deletions .prettierrc.cjs

This file was deleted.

3 changes: 2 additions & 1 deletion archived/vartastorage/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
token.json
credentials.json
package-lock.json
token.json
1 change: 0 additions & 1 deletion archived/vartastorage/lib/varta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

// eslint-disable-next-line import/no-unresolved
import got from 'got'

import {readFileSync} from 'fs'
Expand Down
12 changes: 6 additions & 6 deletions archived/vartastorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"access": "public"
},
"engines": {
"node": ">=18",
"npm": ">=9"
"node": ">=20",
"npm": ">=10"
},
"main": "index.js",
"scripts": {
"format": "npx prettier --ignore-path ../../.prettierignore --config-precedence prefer-file --write . && eslint '*.jsx' --fix",
"pretest": "npx eslint-config-prettier ../../.eslintrc.json",
"test": "eslint '*.jsx'"
"format": "npx prettier --config-precedence prefer-file --write . && eslint . --fix",
"pretest": "npx eslint-config-prettier ../../.eslint.config.js",
"test": "eslint ."
},
"dependencies": {
"got": "^14.2.0"
"got": "^14.4.1"
},
"prettier": "@github/prettier-config"
}
32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import globals from 'globals'
import markdown from 'eslint-plugin-markdown'
import prettierConfig from 'eslint-config-prettier'
import prettierPluginRecommended from 'eslint-plugin-prettier/recommended'

export default [
prettierConfig,
prettierPluginRecommended,
{
files: ['*.js', '*.jsx'],
ignores: ['build/', 'cache/', 'coverage/', 'dist/', 'node_modules/'],
languageOptions: {
globals: {
...globals.node,
},
parserOptions: {ecmaVersion: 'latest', sourceType: 'module'},
},
plugins: {markdown},
rules: {
'prettier/prettier': 'error',
},
},
...markdown.configs.recommended,
{
files: ['**/*.md'],
processor: 'markdown/markdown',
},
{
files: ['**/*.md/*.js'],
rules: {},
},
]
Loading
Loading