From ae81e2aae50bbf69863d144360436d35c17bda41 Mon Sep 17 00:00:00 2001 From: Atul R Date: Fri, 8 Nov 2019 20:39:08 +0100 Subject: [PATCH] cleanup plugin.js --- package.json | 2 +- plugin/index.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 205ca5bfc..39c36b919 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build:addon": "cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js build", "test": "qode ./node_modules/.bin/jest", "lint:cpp": "clang-format -i --glob=src/cpp/**/*.[h,c]*", - "lint:ts": "tsc --noEmit && eslint './src/**/*.{ts,tsx}' --fix" + "lint:ts": "tsc --noEmit && eslint './src/**/*.{ts,tsx,js,jsx}' --fix" }, "dependencies": { "@nodegui/qode": "^1.0.5", diff --git a/plugin/index.js b/plugin/index.js index f9a6e1781..390a495f5 100644 --- a/plugin/index.js +++ b/plugin/index.js @@ -1,11 +1,11 @@ -const path = require("path"); +const path = require('path'); -const NODEGUI_ROOT = path.resolve(__dirname, ".."); -const CMAKE_HELPER_DIR = path.resolve(NODEGUI_ROOT, "config"); -const CMAKE_HELPER_FILE = path.resolve(CMAKE_HELPER_DIR, "plugin.cmake"); +const NODEGUI_ROOT = path.resolve(__dirname, '..'); +const CMAKE_HELPER_DIR = path.resolve(NODEGUI_ROOT, 'config'); +const CMAKE_HELPER_FILE = path.resolve(CMAKE_HELPER_DIR, 'plugin.cmake'); module.exports = { - CMAKE_HELPER_FILE, - CMAKE_HELPER_DIR, - NODEGUI_ROOT + CMAKE_HELPER_FILE, + CMAKE_HELPER_DIR, + NODEGUI_ROOT, };