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 Dec 9, 2023
1 parent 075d9f4 commit e09aa42
Show file tree
Hide file tree
Showing 27 changed files with 1,530 additions and 2,277 deletions.
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ decisions when appropriate.

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
Examples of representing our community include using an official email address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Steps to reproduce the behavior:

### Environment

- Cast Kodi version<!-- e.g. 7.4.1 -->:
- Browser version<!-- e.g. Chrome 116.0.5845.140, Firefox 117.0 -->:
- Cast Kodi version<!-- e.g. 7.5.0 -->:
- Browser version<!-- e.g. Chrome 120.0.6099.71, Firefox 120.0 -->:
- Kodi version<!-- e.g. 20.2 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.1 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.2.2 -->:

### 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,10 +17,10 @@ assignees: ""

### Environment

- Cast Kodi version<!-- e.g. 7.4.1 -->:
- Browser version<!-- e.g. Chrome 116.0.5845.140, Firefox 117.0 -->:
- Cast Kodi version<!-- e.g. 7.5.0 -->:
- Browser version<!-- e.g. Chrome 120.0.6099.71, Firefox 120.0 -->:
- Kodi version<!-- e.g. 20.2 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.1 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.2.2 -->:

### Additional context

Expand Down
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 2
updates:
- package-ecosystem: "npm"
- package-ecosystem: npm
directory: "/"
schedule:
interval: "weekly"
interval: weekly
allow:
- dependency-type: production

- package-ecosystem: "github-actions"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
interval: weekly
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install
run: npm ci

- name: Lint files
run: npm run lint -- --formatter github

test:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install
run: npm ci

- name: Run unit tests
run: npm run test:unit
Expand All @@ -51,18 +51,18 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install
run: npm ci

- name: Run mutation tests and send coverage
run: npm run test:coverage -- --reporters clear-text,dashboard
Expand All @@ -84,7 +84,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "javascript"
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ jobs:
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: castkodi
# Définir les extra-files dans le fichier release-please-config.json,
# car le type et le jsonpath ne sont pas configurables en YAML.
# https://github.com/google-github-actions/release-please-action/issues/797
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
*.swp

# Ignorer les autres lockfiles.
/bun.lockb
/pnpm-lock.yaml
/yarn.lock
139 changes: 26 additions & 113 deletions .metalint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ export default {
"no-bitwise": "off",
"no-caller": "error",
"no-case-declarations": "error",
// Laisser Prettier gérer cette règle.
"no-confusing-arrow": "off",
"no-console": "error",
"no-continue": "off",
"no-delete-var": "error",
Expand All @@ -198,10 +196,6 @@ export default {
"no-extra-bind": "error",
"no-extra-boolean-cast": "error",
"no-extra-label": "error",
// Laisser Prettier gérer cette règle.
"no-extra-semi": "off",
// Laisser Prettier gérer cette règle.
"no-floating-decimal": "off",
"no-global-assign": "error",
"no-implicit-coercion": ["error", { disallowTemplateShorthand: true }],
"no-implicit-globals": "error",
Expand All @@ -215,16 +209,15 @@ export default {
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-multi-assign": "error",
"no-multi-str": "error",
"no-negated-condition": "error",
"no-nested-ternary": "off",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-nonoctal-decimal-escape": "error",
"no-object-constructor": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-param-reassign": [
Expand Down Expand Up @@ -291,8 +284,6 @@ export default {
"no-with": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
// Laisser Prettier gérer cette règle.
"one-var-declaration-per-line": "off",
"operator-assignment": "error",
// Désactiver cette règle qui peut avoir des conflits avec Prettier.
// https://github.com/prettier/eslint-plugin-prettier/issues/65
Expand All @@ -310,8 +301,6 @@ export default {
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "off",
// Laisser Prettier gérer cette règle.
"quote-props": "off",
radix: "error",
"require-await": "error",
"require-unicode-regexp": "error",
Expand All @@ -326,109 +315,14 @@ export default {
],
"sort-keys": "off",
"sort-vars": "off",
"spaced-comment": "error",
strict: ["error", "never"],
"symbol-description": "error",
"vars-on-top": "off",
yoda: ["error", "always"],

// Layout & Formatting.
// Laisser Prettier gérer la majorité des règles de cette section.
// https://github.com/prettier/eslint-config-prettier
"array-bracket-newline": "off",
"array-bracket-spacing": "off",
"array-element-newline": "off",
"arrow-parens": "off",
"arrow-spacing": "off",
"block-spacing": "off",
"brace-style": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "off",
"computed-property-spacing": "off",
"dot-location": "off",
"eol-last": "off",
"func-call-spacing": "off",
"function-call-argument-newline": "off",
"function-paren-newline": "off",
"generator-star-spacing": "off",
"implicit-arrow-linebreak": "off",
indent: "off",
"jsx-quotes": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"line-comment-position": "error",
"linebreak-style": "off",
"lines-around-comment": [
"error",
{
allowBlockStart: true,
allowObjectStart: true,
allowArrayStart: true,
afterHashbangComment: true,
},
],
"lines-between-class-members": "error",
"max-len": [
"warn",
{
// Ignorer les imports et les déclarations de tests unitaires,
// car Prettier n'ajoute pas de retour à la ligne pour ne pas
// dépasser les 80 caractères.
ignorePattern:
"^import " +
"|^ +\\* @typedef \\{import\\(" +
"|^ +\\* @see " +
'|^ +it\\("',
// Ignorer les expressions rationnelles, car il n'est pas
// possible de les écrire sur plusieurs lignes.
ignoreRegExpLiterals: true,
},
],
"max-statements-per-line": ["error", { max: 2 }],
"multiline-ternary": "off",
"new-parens": "off",
"newline-per-chained-call": "off",
"no-extra-parens": "off",
"no-mixed-spaces-and-tabs": "off",
"no-multi-spaces": "off",
"no-multiple-empty-lines": "off",
// Activer cette règle, car Prettier garde des tabulations (par exemple
// dans les chaines de caractères).
"no-tabs": "error",
"no-trailing-spaces": "off",
"no-whitespace-before-property": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": "off",
"object-curly-spacing": "off",
"object-property-newline": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"padding-line-between-statements": [
"error",
{
blankLine: "always",
prev: "directive",
next: "*",
},
],
quotes: ["error", "double", { avoidEscape: true }],
"rest-spread-spacing": "off",
semi: "off",
"semi-spacing": "off",
"semi-style": "off",
"space-before-blocks": "off",
"space-before-function-paren": "off",
"space-in-parens": "off",
"space-infix-ops": "off",
"space-unary-ops": "off",
"switch-colon-spacing": "off",
"template-curly-spacing": "off",
"template-tag-spacing": "off",
"unicode-bom": "off",
"wrap-iife": "off",
"wrap-regex": "off",
"yield-star-spacing": "off",
"unicode-bom": "error",

// Plugin eslint-plugin-array-func.
"array-func/from-map": "error",
Expand Down Expand Up @@ -531,10 +425,16 @@ export default {
"import/first": "error",
"import/group-exports": "off",
"import/max-dependencies": "off",
// Ne pas activer l'option "considerComments", car les commentaires
// entre les imports ne sont pas gérés.
// https://github.com/import-js/eslint-plugin-import/issues/2673
"import/newline-after-import": ["error", { considerComments: false }],
"import/newline-after-import": [
"error",
{
// Ne pas activer ces options, car les commentaires entre les
// imports ne sont pas gérés.
// https://github.com/import-js/eslint-plugin-import/issues/2673
exactCount: false,
considerComments: false,
},
],
"import/no-anonymous-default-export": [
"error",
{
Expand Down Expand Up @@ -600,7 +500,14 @@ export default {
"jsdoc/no-multi-asterisks": "error",
"jsdoc/no-restricted-syntax": "off",
"jsdoc/no-types": "off",
"jsdoc/no-undefined-types": "error",
"jsdoc/no-undefined-types": [
"error",
// Ajouter RequestInit (le type du deuxième paramètre de la fonction
// fetch) qui est connu de TypeScript, mais qui n'existe pas dans
// globales (car il n'est pas dans Node.js, ni dans les
// navigateurs).
{ definedTypes: ["RequestInit"] },
],
"jsdoc/require-asterisk-prefix": "error",
"jsdoc/require-description": "error",
"jsdoc/require-description-complete-sentence": "off",
Expand Down Expand Up @@ -686,6 +593,7 @@ export default {
"regexp/control-character-escape": "error",
"regexp/negation": "error",
"regexp/no-dupe-characters-character-class": "error",
"regexp/no-empty-string-literal": "error",
"regexp/no-extra-lookaround-assertions": "error",
"regexp/no-invisible-character": "error",
"regexp/no-legacy-features": "error",
Expand All @@ -701,6 +609,8 @@ export default {
"regexp/no-useless-lazy": "error",
"regexp/no-useless-quantifier": "error",
"regexp/no-useless-range": "error",
"regexp/no-useless-set-operand": "error",
"regexp/no-useless-string-literal": "error",
"regexp/no-useless-two-nums-quantifier": "error",
"regexp/no-zero-quantifier": "error",
"regexp/optimal-lookaround-quantifier": "error",
Expand All @@ -711,11 +621,14 @@ export default {
"regexp/prefer-range": "error",
"regexp/prefer-regexp-exec": "error",
"regexp/prefer-regexp-test": "error",
"regexp/prefer-set-operation": "error",
"regexp/require-unicode-regexp": "error",
"regexp/simplify-set-operations": "error",
"regexp/sort-alternatives": "error",
"regexp/use-ignore-case": "error",

// Stylistic Issues.
"regexp/grapheme-string-literal": "error",
"regexp/hexadecimal-escape": "off",
"regexp/letter-case": [
"error",
Expand Down
Loading

0 comments on commit e09aa42

Please sign in to comment.