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 Mar 4, 2023
1 parent 2c1b334 commit abe47c7
Show file tree
Hide file tree
Showing 11 changed files with 444 additions and 302 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
allow:
- dependency-type: production

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
29 changes: 21 additions & 8 deletions .metalint/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {
plugins: [
"array-func",
Expand Down Expand Up @@ -310,7 +316,7 @@ export default {
"keyword-spacing": 2,
"line-comment-position": 2,
"linebreak-style": 2,
"lines-around-comment": 2,
"lines-around-comment": [2, { afterHashbangComment: true }],
"lines-between-class-members": 2,
"max-len": 1,
"max-statements-per-line": [2, { max: 2 }],
Expand Down Expand Up @@ -393,7 +399,7 @@ export default {
"import/no-deprecated": 2,
"import/no-empty-named-blocks": 2,
"import/no-extraneous-dependencies": [2, {
devDependencies: ["test/**/*.js", ".script/**/*.js"],
devDependencies: [".script/**/*.js", "test/**/*.js"],
}],
"import/no-mutable-exports": 2,
"import/no-named-as-default": 0,
Expand Down Expand Up @@ -448,7 +454,11 @@ export default {
// les imports ne sont pas gérés.
// https://github.com/import-js/eslint-plugin-import/issues/2673
"import/newline-after-import": [2, { considerComments: false }],
"import/no-anonymous-default-export": 2,
"import/no-anonymous-default-export": [2, {
allowArray: true,
allowCallExpression: false,
allowObject: true,
}],
"import/no-default-export": 0,
"import/no-duplicates": 2,
"import/no-named-default": 2,
Expand All @@ -469,10 +479,13 @@ export default {
// https://github.com/gajus/eslint-plugin-jsdoc/releases/tag/v37.0.0
"jsdoc/check-examples": 0,
"jsdoc/check-indentation": 0,
// Ne pas activer cette règle car elle demande d'aligner les paramètres
// et les valeurs de retours (l'option "tags" fonctionne seulement avec
// "never").
"jsdoc/check-line-alignment": 0,
"jsdoc/check-line-alignment": [2, "always", {
tags: ["param", "property"],
customSpacings: {
postDelimiter: 1,
postTag: 1,
},
}],
"jsdoc/check-param-names": 2,
"jsdoc/check-property-names": 2,
"jsdoc/check-syntax": 2,
Expand Down Expand Up @@ -778,7 +791,7 @@ export default {
exception: "throws",
yield: "yields",
linkcode: "link",
linkplain:" link",
linkplain: "link",
},
},
},
Expand Down
6 changes: 6 additions & 0 deletions .metalint/eslint_config.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {
rules: {
// Layout & Formatting.
Expand Down
6 changes: 6 additions & 0 deletions .metalint/eslint_node.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {
env: {
node: true,
Expand Down
6 changes: 6 additions & 0 deletions .metalint/eslint_test.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {
env: {
mocha: true,
Expand Down
9 changes: 9 additions & 0 deletions .metalint/markdownlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

/**
* @type {import("markdownlint").Configuration}
*/
export default {
"heading-increment": true,
"heading-style": { style: "atx" },
Expand Down
11 changes: 9 additions & 2 deletions .metalint/metalint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {
patterns: [
"!/CHANGELOG.md",
"!/.git/",
"!/jsdocs/",
"!/node_modules/",
Expand Down Expand Up @@ -27,12 +34,12 @@ export default {
eslint: ["eslint.config.js", "eslint_node.config.js"],
},
}, {
patterns: ["/.metalint/**/*.js", "/.stryker.conf.js"],
patterns: "*.config.js",
linters: {
eslint: ["eslint.config.js", "eslint_config.config.js"],
},
}, {
patterns: ["!/CHANGELOG.md", "*.md"],
patterns: "*.md",
linters: "markdownlint",
}, {
patterns: "*.json",
Expand Down
6 changes: 6 additions & 0 deletions .metalint/npm-package-json-lint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

export default {
rules: {
// Require node rules.
Expand Down
9 changes: 9 additions & 0 deletions .stryker.conf.js → .stryker.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @module
* @license MIT
* @author Sébastien Règne
*/

/**
* @type {import("@stryker-mutator/api/core").PartialStrykerOptions}
*/
export default {
incremental: true,
incrementalFile: ".stryker/stryker-incremental.json",
Expand Down
Loading

0 comments on commit abe47c7

Please sign in to comment.