Skip to content
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
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = {
env: {
es2021: true,
Expand Down Expand Up @@ -34,6 +36,8 @@ module.exports = {
],
parserOptions: {
ecmaVersion: 2021,
// Explicitly tell ESLint to parse JavaScript as CommonJS, as airbnb-base sets this to "modules" for ECMAScript
sourceType: "script",
},
plugins: [
"import",
Expand All @@ -51,5 +55,6 @@ module.exports = {
"prefer-destructuring": ["error", { object: true, array: false }],
"promise/prefer-await-to-callbacks": "warn",
"promise/prefer-await-to-then": "warn",
strict: ["error", "global"],
},
};
2 changes: 2 additions & 0 deletions scripts/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = {
rules: {
"import/no-extraneous-dependencies": [
Expand Down
3 changes: 3 additions & 0 deletions scripts/license-checker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* eslint-disable security/detect-object-injection */
/* eslint-disable security-node/detect-crlf */

"use strict";

const checker = require("license-checker");
const copyLeftLicenses = require("spdx-copyleft");
const { promisify } = require("util");
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const fp = require("fastify-plugin");
const accepts = require("accepts");
const js2xmlparser = require("js2xmlparser");
Expand Down
2 changes: 2 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const Fastify = require("fastify");
const plugin = require(".");

Expand Down