diff --git a/.eslintrc.json b/.eslintrc.json index 18ddef1..635beae 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,8 @@ { "env": { "node": true, - "mocha": true + "mocha": true, + "es2021": true }, "parser": "@babel/eslint-parser", "parserOptions": { @@ -9,15 +10,27 @@ "ecmaVersion": 8, "requireConfigFile": false }, - "extends": "google", + "extends": [ + "eslint:recommended", + "google" + ], "rules": { "arrow-parens": ["error", "as-needed" ], "max-len": ["error", { - "code": 120, + "code": 140, "ignoreComments": true }], + "no-empty": ["error", { + "allowEmptyCatch": true + }], + "no-unused-vars": ["error", { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + }], + "require-jsdoc": ["error", { "require": { "FunctionDeclaration": true, diff --git a/.github/workflows/pr-nginx-tests.yml b/.github/workflows/pr-nginx-tests.yml index 922a791..d7403be 100644 --- a/.github/workflows/pr-nginx-tests.yml +++ b/.github/workflows/pr-nginx-tests.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: lando-version: - - 3-edge-slim + - 3-edge os: - ubuntu-24.04 node-version: diff --git a/CHANGELOG.md b/CHANGELOG.md index 53a41b6..1f5594c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) +* Optimized for `midcore` + ## v1.4.3 - [December 6, 2024](https://github.com/lando/nginx/releases/tag/v1.4.3) * Updated the version index.md to get Docuverse page to build correctly. diff --git a/builders/nginx.js b/builders/nginx.js index cee1ba6..5bf273a 100644 --- a/builders/nginx.js +++ b/builders/nginx.js @@ -91,6 +91,6 @@ module.exports = { // Send it downstream super(id, options, {services: _.set({}, options.name, nginx)}); - }; + } }, }; diff --git a/index.js b/index.js index 4b6e364..529aa95 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = lando => {}; +module.exports = () => {}; diff --git a/tmpfile b/tmpfile deleted file mode 100644 index e69de29..0000000