Skip to content

Commit

Permalink
chore: Mettre à jour les dépendances.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Apr 2, 2024
1 parent 1af4024 commit 5cce3f4
Show file tree
Hide file tree
Showing 22 changed files with 2,377 additions and 2,158 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Steps to reproduce the behavior:

### Environment

- Metalint version<!-- e.g. 0.15.0 -->:
- Node version<!-- e.g. v20.10.0 -->:
- Linter version (if appropriate)<!-- e.g. eslint 8.56.0 -->:
- Metalint version<!-- e.g. 0.16.0 -->:
- Node version<!-- e.g. v20.12.0 -->:
- Linter version (if appropriate)<!-- e.g. eslint 8.57.0 -->:

### Additional context

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

### Environment

- Metalint version<!-- e.g. 0.15.0 -->:
- Node version<!-- e.g. v20.10.0 -->:
- Linter version (if appropriate)<!-- e.g. eslint 8.56.0 -->:
- Metalint version<!-- e.g. 0.16.0 -->:
- Node version<!-- e.g. v20.12.0 -->:
- Linter version (if appropriate)<!-- e.g. eslint 8.57.0 -->:

### Additional context

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,16 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif

- name: Upload Snyk result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif
22 changes: 13 additions & 9 deletions .metalint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,7 @@ export default {
"import/no-relative-parent-imports": "off",
"import/no-restricted-paths": "off",
"import/no-self-import": "error",
"import/no-unresolved": [
"error",
{
caseSensitive: true,
caseSensitiveStrict: true,
},
],
"import/no-unresolved": ["error", { caseSensitiveStrict: true }],
"import/no-useless-path-segments": "error",
"import/no-webpack-loader-syntax": "error",

Expand Down Expand Up @@ -711,7 +705,7 @@ export default {
"unicorn/no-useless-promise-resolve-reject": "error",
"unicorn/no-useless-spread": "error",
"unicorn/no-useless-switch-case": "error",
"unicorn/no-useless-undefined": ["error", { checkArguments: false }],
"unicorn/no-useless-undefined": "off",
"unicorn/no-zero-fractions": "error",
// Laisser Prettier gérer cette règle.
"unicorn/number-literal-case": "off",
Expand Down Expand Up @@ -772,7 +766,17 @@ export default {
"unicorn/require-post-message-target-origin": "off",
"unicorn/string-content": "off",
"unicorn/switch-case-braces": ["error", "avoid"],
"unicorn/template-indent": "error",
"unicorn/template-indent": [
"error",
// Configurer la règle pour qu'elle soit compatible avec Prettier.
// https://github.com/prettier/eslint-config-prettier#unicorntemplate-indent
{
tags: ["outdent", "dedent", "sql", "styled"],
functions: ["dedent", "stripIndent"],
selectors: [],
comments: ["indent"],
},
],
"unicorn/text-encoding-identifier-case": "error",
"unicorn/throw-new-error": "error",
},
Expand Down
8 changes: 8 additions & 0 deletions .metalint/eslint_node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,13 @@ export default {
"n/prefer-global/url": "off",
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",

// Plugin eslint-plugin-unicorn.
// Désactiver les règles suivantes, car elles s'appliquent seulement au
// DOM et sont donc inutiles dans les scripts Node.js.
"unicorn/prefer-dom-node-append": "off",
"unicorn/prefer-dom-node-dataset": "off",
"unicorn/prefer-dom-node-remove": "off",
"unicorn/prefer-dom-node-text-content": "off",
},
};
8 changes: 8 additions & 0 deletions .metalint/eslint_test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default {
"prefer-arrow-callback": "off",

// Plugin eslint-plugin-mocha.
"mocha/consistent-spacing-between-blocks": "error",
"mocha/handle-done-callback": "error",
"mocha/max-top-level-suites": "error",
"mocha/no-async-describe": "error",
Expand All @@ -49,5 +50,12 @@ export default {

// Plugin eslint-plugin-no-unsanitized.
"no-unsanitized/method": "off",

// Plugin eslint-plugin-unicorn.
// Ne pas obliger à sortir les fonctions des tests.
"unicorn/consistent-function-scoping": "off",
// Autoriser la valeur null pour pouvoir tester cette valeur dans les
// tests.
"unicorn/no-null": "off",
},
};
2 changes: 2 additions & 0 deletions .metalint/markdownlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ export default {
"link-image-reference-definitions": true,
// eslint-disable-next-line camelcase
"link-image-style": { shortcut: false, url_inline: false },
"table-pipe-style": { style: "leading_and_trailing" },
"table-column-count": true,
};
1 change: 0 additions & 1 deletion .metalint/prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* @author Sébastien Règne
*/

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

/**
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ source) :
<td>package.json</td>
<td>
<a title="depcheck"
href="https://www.npmjs.com/package/depcheck">Depcheck</a>
href="https://www.npmjs.com/package/depcheck">Depcheck</a>,
<a title="npm-check-updates"
href="https://www.npmjs.com/package/npm-check-updates"
>npm-check-updates</a>,
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
[img-npm]: https://img.shields.io/npm/dm/metalint?label=npm&logo=npm&logoColor=whitesmoke
[img-build]: https://img.shields.io/github/actions/workflow/status/regseb/metalint/ci.yml?branch=main&logo=github&logoColor=whitesmoke
[img-coverage]: https://img.shields.io/endpoint?label=coverage&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fregseb%2Fmetalint%2Fmain&logo=stryker&logoColor=whitesmoke
[img-coverage]: https://img.shields.io/endpoint?label=coverage&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fregseb%2Fmetalint%2Fmain
[img-semver]: https://img.shields.io/badge/semver-2.0.0-blue?logo=semver&logoColor=whitesmoke
[link-npm]: https://www.npmjs.com/package/metalint
[link-build]: https://github.com/regseb/metalint/actions/workflows/ci.yml?query=branch%3Amain
Expand Down
Loading

0 comments on commit 5cce3f4

Please sign in to comment.