From 836f3af1ab6e3391495ed7f744687fc0a7a172d6 Mon Sep 17 00:00:00 2001 From: sota1235 Date: Wed, 11 Jan 2017 23:52:22 +0900 Subject: [PATCH] add: files for using eslint --- .eslintignore | 3 +++ .eslintrc | 6 ++++++ package.json | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..e9a81977 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules/ +compiled/ +dist/ diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..f4f88ad0 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,6 @@ +{ + "extends": ["standard", "standard-jsx"], + "rules": { + "no-useless-escape": 0 + } +} diff --git a/package.json b/package.json index 50159372..5530a8b2 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "webpack": "webpack-dev-server --hot --inline --config webpack.config.js", "compile": "grunt compile", "test": "PWD=$(pwd) NODE_ENV=test ava", - "fix": "standard --fix", - "lint": "standard" + "fix": "npm run lint --fix", + "lint": "eslint ./**/*.js" }, "config": { "electron-version": "1.2.8"