diff --git a/packages/authentication/index.js b/packages/authentication/index.js index 7606d891d2ae..58a5b15c5d7c 100644 --- a/packages/authentication/index.js +++ b/packages/authentication/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/cli/generators/app/templates/index.js b/packages/cli/generators/app/templates/index.js index b0f04ce3103a..e9e309f61490 100644 --- a/packages/cli/generators/app/templates/index.js +++ b/packages/cli/generators/app/templates/index.js @@ -3,11 +3,7 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; -const dist = './dist'; - -const application = (module.exports = require(dist)); +const application = (module.exports = require('./dist')); if (require.main === module) { // Run the application diff --git a/packages/cli/generators/extension/templates/index.js b/packages/cli/generators/extension/templates/index.js index db2cb6c7fb9d..290f483a6e50 100644 --- a/packages/cli/generators/extension/templates/index.js +++ b/packages/cli/generators/extension/templates/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/context/index.js b/packages/context/index.js index c0ee348b081a..02b88d34ff0f 100644 --- a/packages/context/index.js +++ b/packages/context/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/core/index.js b/packages/core/index.js index d1e9607b7dda..5ffcc4e9d9a2 100644 --- a/packages/core/index.js +++ b/packages/core/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/example-getting-started/index.js b/packages/example-getting-started/index.js index badd56796e93..bf96713b9849 100644 --- a/packages/example-getting-started/index.js +++ b/packages/example-getting-started/index.js @@ -3,9 +3,6 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; - const application = (module.exports = require('./dist')); if (require.main === module) { diff --git a/packages/example-hello-world/index.js b/packages/example-hello-world/index.js index 81b4a2935204..257c1394315e 100644 --- a/packages/example-hello-world/index.js +++ b/packages/example-hello-world/index.js @@ -3,9 +3,6 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; - const application = (module.exports = require('./dist')); if (require.main === module) { diff --git a/packages/example-log-extension/index.js b/packages/example-log-extension/index.js index 1f8f81b1e094..5a959bde84af 100644 --- a/packages/example-log-extension/index.js +++ b/packages/example-log-extension/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/example-rpc-server/index.js b/packages/example-rpc-server/index.js index badd56796e93..bf96713b9849 100644 --- a/packages/example-rpc-server/index.js +++ b/packages/example-rpc-server/index.js @@ -3,9 +3,6 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; - const application = (module.exports = require('./dist')); if (require.main === module) { diff --git a/packages/metadata/index.js b/packages/metadata/index.js index 1fbd1754f590..abe1a945f2d7 100644 --- a/packages/metadata/index.js +++ b/packages/metadata/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/openapi-spec-builder/index.js b/packages/openapi-spec-builder/index.js index 73896c501f72..787bb07128bd 100644 --- a/packages/openapi-spec-builder/index.js +++ b/packages/openapi-spec-builder/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/openapi-spec/index.js b/packages/openapi-spec/index.js index aeb3d385a2f5..5326c63c1525 100644 --- a/packages/openapi-spec/index.js +++ b/packages/openapi-spec/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/openapi-v2/index.js b/packages/openapi-v2/index.js index a829b57b2680..c849a637c3a7 100644 --- a/packages/openapi-v2/index.js +++ b/packages/openapi-v2/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/repository-json-schema/index.js b/packages/repository-json-schema/index.js index 0d1a80c777be..63d928e335a0 100644 --- a/packages/repository-json-schema/index.js +++ b/packages/repository-json-schema/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/repository/index.js b/packages/repository/index.js index 7e29c9720432..062e5fcd6297 100644 --- a/packages/repository/index.js +++ b/packages/repository/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/rest/index.js b/packages/rest/index.js index 207a5c3d0918..a783530a92cb 100644 --- a/packages/rest/index.js +++ b/packages/rest/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist'); diff --git a/packages/testlab/index.js b/packages/testlab/index.js index 02a4d408cce1..6ecdd18d3882 100644 --- a/packages/testlab/index.js +++ b/packages/testlab/index.js @@ -3,6 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -/* eslint-disable no-unused-vars*/ -const nodeMajorVersion = +process.versions.node.split('.')[0]; module.exports = require('./dist');