From 9132ee80a4351d8b00387263af78347e64ca1f9a Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Wed, 21 Mar 2018 00:14:33 +0800 Subject: [PATCH] use airbnb of eslint to check js code. --- dot/.eslintrc.json | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/dot/.eslintrc.json b/dot/.eslintrc.json index 8979c2a..23a3564 100644 --- a/dot/.eslintrc.json +++ b/dot/.eslintrc.json @@ -1,32 +1,13 @@ { - "parserOptions": { - "ecmaVersion": 6, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true - } - }, - "extends": "eslint:recommended", - "rules": { - "no-console": "off", - "no-unused-vars": "warn", - "semi": ["error", "always"] - }, "env": { "browser": true, - "jquery": true, - "node": true, - "es6": true, - "mocha": true + "node": true }, - "plugins": [ - "react" - ], - "globals": { - "cc": false, - "CC_EDITOR": false, - "CC_DEV": false, - "CC_JSB": false, - "_ccsg": false + "extends": "airbnb", + "rules": { + "comma-dangle": [2, "never"], + "spaced-comment": "off", + "quotes": ["error", "double"], + "react/jsx-filename-extension": "off" } }