From 5a49702688ba7566689d85a694aae86eb66635c7 Mon Sep 17 00:00:00 2001 From: Ryota Yamamoto Date: Wed, 3 Jul 2019 15:20:28 +0900 Subject: [PATCH] chore: fix eslint config --- .eslintignore | 6 ++++++ .eslintrc.js | 4 ++-- changelog.config.js | 3 +++ package.json | 4 ++-- 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .eslintignore create mode 100644 changelog.config.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..cbccf242 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +node_modules +yarn-error.log +build +lib/ +.eslintcache +examples diff --git a/.eslintrc.js b/.eslintrc.js index 2892878d..1f7947eb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,7 +2,7 @@ module.exports = { root: true, env: { browser: true, - node: true + node: true, }, parser: '@typescript-eslint/parser', parserOptions: { @@ -37,7 +37,7 @@ module.exports = { }, overrides: [ { - files: ['./test/**/*.spec.*'], + files: ['test/**/**.spec.*'], env: { jest: true, }, diff --git a/changelog.config.js b/changelog.config.js new file mode 100644 index 00000000..cc5b6323 --- /dev/null +++ b/changelog.config.js @@ -0,0 +1,3 @@ +module.exports = { + disableEmoji: true, +}; diff --git a/package.json b/package.json index 05f97014..e3a5632c 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "build": "tsc -p .", "preversion": "npm run build", "release": "semantic-release", - "lint": "eslint --ext .ts,.js src", - "lint:fix": "eslint --ext .ts,.js --fix src" + "lint": "eslint --ext .ts,.js .", + "lint:fix": "eslint --ext .ts,.js --fix ." }, "files": [ "lib"