Skip to content

Commit

Permalink
chore: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed May 22, 2024
1 parent 0f15ef5 commit f33f8b3
Show file tree
Hide file tree
Showing 18 changed files with 1,711 additions and 776 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
buy_me_a_coffee: regseb
custom: https://www.paypal.me/sebastienregne
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ assignees: ""
<!-- Please include a minimal reproduction case. Otherwise, include any
information about how you're using JFather. -->

```JavaScript
// Create JSON objects.
// Do something.
// ...
```javascript
// Create JSON objects.
// Do something.
// ...
```

### Expected behavior
Expand All @@ -27,8 +27,8 @@ assignees: ""

### Environment

- JFather version<!-- e.g. 0.2.0 -->:
- Platform version<!-- e.g. Chrome 122.0.6261.94, Node.js v20.11.1 -->:
- JFather version<!-- e.g. 0.3.0 -->:
- Platform version<!-- e.g. Chrome 125.0.6422.60, Node.js v20.13.1 -->:

### Additional context

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ assignees: ""

### Environment

- JFather version<!-- e.g. 0.2.0 -->:
- Platform version<!-- e.g. Chrome 122.0.6261.94, Node.js v20.11.1 -->:
- JFather version<!-- e.g. 0.3.0 -->:
- Platform version<!-- e.g. Chrome 125.0.6422.60, Node.js v20.13.1 -->:

### Additional context

Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
uses: google-github-actions/release-please-action@v4
id: release
with:
config-file: .release-please/config.json
manifest-file: .release-please/manifest.json
release-type: node

# Si la PR (pull request) a été créée ou modifiée : formatter les fichiers
# modifiés par release-please, car ils ne respectent plus le formatage de
Expand Down Expand Up @@ -48,7 +47,6 @@ jobs:
if: ${{ steps.release.outputs.pr }}
run: >
npm run lint:fix --
.release-please/manifest.json
CHANGELOG.md
package.json
package-lock.json
Expand Down Expand Up @@ -77,6 +75,16 @@ jobs:

- name: Publish in npm
if: ${{ steps.release.outputs.release_created }}
run: npm publish --provenance --access public
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Download tarball from npm
if: ${{ steps.release.outputs.release_created }}
run: npm pack jfather

- name: Upload tarball to release
if: ${{ steps.release.outputs.release_created }}
run: gh release upload ${{ steps.release.outputs.tag_name }} jfather-*.tgz
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 15 additions & 3 deletions .metalint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @author Sébastien Règne
*/

/**
* @type {import("eslint").Linter.Config}
*/
export default {
plugins: [
"array-func",
Expand Down Expand Up @@ -242,7 +245,6 @@ export default {
"ForInStatement",
"LabeledStatement",
"SequenceExpression",
"TaggedTemplateExpression",
"WithStatement",
"YieldExpression",
"JSXIdentifier",
Expand Down Expand Up @@ -642,11 +644,13 @@ export default {
"regexp/sort-character-class-elements": "error",
"regexp/sort-flags": "error",
"regexp/unicode-escape": "error",
"regexp/unicode-property": "error",

// Plugin eslint-plugin-unicorn.
"unicorn/better-regex": "error",
"unicorn/catch-error-name": ["error", { ignore: [/^err$/u, /^e$/u] }],
"unicorn/consistent-destructuring": "error",
"unicorn/consistent-empty-array-spread": "error",
"unicorn/consistent-function-scoping": "error",
"unicorn/custom-error-definition": "error",
// Laisser Prettier gérer cette règle.
Expand All @@ -659,21 +663,25 @@ export default {
"unicorn/import-style": "error",
"unicorn/new-for-builtins": "error",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-anonymous-default-export": "error",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-method-this-argument": "error",
"unicorn/no-array-push-push": "error",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "error",
"unicorn/no-await-in-promise-methods": "error",
"unicorn/no-console-spaces": "error",
"unicorn/no-document-cookie": "error",
"unicorn/no-empty-file": "error",
"unicorn/no-for-loop": "error",
"unicorn/no-hex-escape": "error",
"unicorn/no-instanceof-array": "error",
"unicorn/no-invalid-fetch-options": "error",
"unicorn/no-invalid-remove-event-listener": "error",
"unicorn/no-keyword-prefix": "error",
"unicorn/no-lonely-if": "error",
"unicorn/no-magic-array-flat-depth": "error",
// Utiliser la règle no-negated-condition d'ESLint, car celle d'unicorn
// apporte seulement la correction automatique.
"unicorn/no-negated-condition": "off",
Expand All @@ -683,6 +691,7 @@ export default {
"unicorn/no-null": "error",
"unicorn/no-object-as-default-parameter": "error",
"unicorn/no-process-exit": "error",
"unicorn/no-single-promise-in-promise-methods": "error",
"unicorn/no-static-only-class": "error",
"unicorn/no-thenable": "error",
"unicorn/no-this-assignment": "error",
Expand Down Expand Up @@ -732,7 +741,8 @@ export default {
"unicorn/prefer-module": "error",
"unicorn/prefer-native-coercion-functions": "error",
"unicorn/prefer-negative-index": "error",
"unicorn/prefer-node-protocol": "error",
// Désactiver cette règle et préférer la règle "n/prefer-node-protocol".
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-number-properties": "error",
"unicorn/prefer-object-from-entries": "error",
"unicorn/prefer-optional-catch-binding": "error",
Expand All @@ -743,10 +753,12 @@ export default {
"unicorn/prefer-set-has": "error",
"unicorn/prefer-set-size": "error",
"unicorn/prefer-spread": "off",
"unicorn/prefer-string-raw": "error",
"unicorn/prefer-string-replace-all": "error",
"unicorn/prefer-string-slice": "error",
"unicorn/prefer-string-starts-ends-with": "error",
"unicorn/prefer-string-trim-start-end": "error",
"unicorn/prefer-structured-clone": "error",
"unicorn/prefer-switch": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "error",
Expand Down Expand Up @@ -800,7 +812,7 @@ export default {
var: "member",
arg: "param",
argument: "param",
prop: "property",
property: "prop",
return: "returns",
exception: "throws",
yield: "yields",
Expand Down
3 changes: 3 additions & 0 deletions .metalint/eslint_config.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @author Sébastien Règne
*/

/**
* @type {import("eslint").Linter.Config}
*/
export default {
rules: {
// Plugin eslint-plugin-unicorn.
Expand Down
16 changes: 10 additions & 6 deletions .metalint/eslint_node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @author Sébastien Règne
*/

/**
* @type {import("eslint").Linter.Config}
*/
export default {
rules: {
// Suggestions.
Expand Down Expand Up @@ -38,6 +41,7 @@ export default {
// Plugin eslint-plugin-n.
// Possible Errors.
"n/handle-callback-err": "error",
"n/hashbang": "error",
"n/no-callback-literal": "error",
"n/no-exports-assign": "error",
"n/no-extraneous-import": "error",
Expand All @@ -51,15 +55,14 @@ export default {
"n/no-unpublished-import": "off",
"n/no-unpublished-require": "error",
"n/no-unsupported-features/es-builtins": "error",
"n/no-unsupported-features/es-syntax": [
"n/no-unsupported-features/es-syntax": "error",
"n/no-unsupported-features/node-builtins": [
"error",
{
ignores: ["dynamicImport", "modules"],
},
// Ignorer la vérification de Response qui est bien disponible dans
// Node v20, mais en expérimental.
{ ignores: ["Response"] },
],
"n/no-unsupported-features/node-builtins": "error",
"n/process-exit-as-throw": "error",
"n/shebang": "error",

// Best Practices.
"n/no-deprecated-api": "error",
Expand All @@ -86,6 +89,7 @@ export default {
"n/prefer-global/text-encoder": "off",
"n/prefer-global/url-search-params": "off",
"n/prefer-global/url": "off",
"n/prefer-node-protocol": "error",
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",

Expand Down
3 changes: 3 additions & 0 deletions .metalint/eslint_test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @author Sébastien Règne
*/

/**
* @type {import("eslint").Linter.Config}
*/
export default {
env: {
mocha: true,
Expand Down
14 changes: 7 additions & 7 deletions .metalint/markdownlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export default {
"fenced-code-language": {
// eslint-disable-next-line camelcase
allowed_languages: [
"CSS",
"HTML",
"JavaScript",
"JSON",
"Markdown",
"Shell",
"YAML",
"css",
"html",
"javascript",
"json",
"markdown",
"shell",
"yaml",
],
// eslint-disable-next-line camelcase
language_only: true,
Expand Down
5 changes: 4 additions & 1 deletion .metalint/metalint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @author Sébastien Règne
*/

/**
* @type {import("metalint/types").Config}
*/
export default {
patterns: [
"**",
Expand Down Expand Up @@ -56,7 +59,7 @@ export default {
linters: ["prettier", "prantlf__jsonlint"],
overrides: {
patterns: "/package.json",
linters: "npm-package-json-lint",
linters: ["npm-package-json-lint", "publint"],
},
},
{
Expand Down
4 changes: 3 additions & 1 deletion .metalint/prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
* @author Sébastien Règne
*/

// @ts-ignore https://github.com/prettier/plugin-xml/issues/671
import pluginXML from "@prettier/plugin-xml";

/**
* @type {import("prettier").Config}
*/
export default {
plugins: [pluginXML],

Expand Down
3 changes: 3 additions & 0 deletions .metalint/prettier_javascript.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @author Sébastien Règne
*/

/**
* @type {import("prettier").Config}
*/
export default {
tabWidth: 4,
};
7 changes: 7 additions & 0 deletions .metalint/publint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {};
7 changes: 0 additions & 7 deletions .release-please/config.json

This file was deleted.

1 change: 0 additions & 1 deletion .release-please/manifest.json

This file was deleted.

Loading

0 comments on commit f33f8b3

Please sign in to comment.