From 43223a2fb7d45d5adc7fccec4536935b7540ecda Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Tue, 11 May 2021 20:43:16 +0200 Subject: [PATCH] feat(jsconfig): highlight JS errors in editors for this project (#14) --- jsconfig.json | 8 ++++++++ package.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 jsconfig.json diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..081cb73 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + // highlight JS errors in editors for this project + "checkJs": true, + "module": "es2020", + "target": "es2020" + } +} diff --git a/package.json b/package.json index a23a026..1cbb4e4 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "ISC", "scripts": { - "lint": "prettier --check 'lib/*.js' cli.js README.md package.json", - "lint:fix": "prettier --write 'lib/*.js' cli.js README.md package.json", + "lint": "prettier --check 'lib/*.js' cli.js '**/*.md' '**/*.json'", + "lint:fix": "prettier --write 'lib/*.js' cli.js '**/*.md' '**/*.json'", "test": "npm run lint" }, "dependencies": {