From c88de140592374c0351641128ef8353e101a2c75 Mon Sep 17 00:00:00 2001 From: himynameisdave Date: Wed, 18 Mar 2020 16:23:11 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A2=20Use=20ts=20for=20rollup=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also adds an eslintignore file, because the patterns flag was not working --- .eslintignore | 2 ++ package.json | 8 ++++---- rollup.config.js => rollup.config.ts | 0 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .eslintignore rename rollup.config.js => rollup.config.ts (100%) diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..4ff87d9 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +rollup.config.ts +**/__tests__/**/* diff --git a/package.json b/package.json index a0d3078..4dc0f72 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "browser": "lib/index.umd.js", "unpkg": "lib/index.umd.js", "scripts": { - "build": "rollup -c", - "lint": "eslint ./src/ --ext .ts --ignore-pattern **/__tests__/**/* --report-unused-disable-directives", - "lint:fix": "eslint ./src/ --ext .ts --ignore-pattern **/__tests__/**/* --fix", + "build": "rollup -c rollup.config.ts", + "lint": "eslint ./src/ --ext .ts --report-unused-disable-directives", + "lint:fix": "eslint ./src/ --ext .ts --fix", "test:js": "jest --coverage", "test:coverage": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "viewCoverage": "npm run test:js && open ./coverage/lcov-report/index.html -a Google\\ Chrome", @@ -62,7 +62,7 @@ } }, "lint-staged": { - "*.ts": "eslint ./src/ --ext .ts --ignore-pattern **/__tests__/**/* --fix --quiet" + "*.ts": "eslint ./src/ --ext .ts --fix --quiet" }, "engines": { "node": ">= 10" diff --git a/rollup.config.js b/rollup.config.ts similarity index 100% rename from rollup.config.js rename to rollup.config.ts