From c7c57809027ad47167351b57c7bfcc8dd326a76e Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Tue, 20 Sep 2016 00:05:14 -0300 Subject: [PATCH] Remove eslint-related dependencies, add XO config and use XO as the linter --- package.json | 47 +++++++++++++---------------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index b628bac9d6a9..06ab6539e06c 100644 --- a/package.json +++ b/package.json @@ -36,52 +36,31 @@ "devDependencies": { "babel-cli": "^6.11.4", "babel-core": "^6.11.4", - "babel-eslint": "^6.1.2", "babel-loader": "^6.2.4", "babel-preset-react": "^6.11.1", "copy-webpack-plugin": "^3.0.1", "electron-builder": "^7.0.1", "electron": "1.4.0", - "eslint": "^3.2.0", - "eslint-config-standard": "^5.3.5", "eslint-config-xo-react": "^0.9.0", - "eslint-plugin-promise": "^2.0.0", "eslint-plugin-react": "^6.2.2", - "eslint-plugin-standard": "^2.0.0", "husky": "^0.11.6", "webpack": "^2.1.0-beta.15", "xo": "^0.16.0" }, - "eslintConfig": { - "extends": "standard", - "plugins": [ - "react" + "xo": { + "extends": "xo-react", + "esnext": true, + "space": true, + "env": [ + "browser", + "node", + "mocha" ], "rules": { - "yoda": "off", - "semi": [ - "error", - "always" - ], - "no-unused-vars": "error", - "no-extra-semi": "error", - "semi-spacing": [ - "error", - { - "before": false, - "after": true - } - ], - "react/jsx-uses-react": "warn", - "react/jsx-uses-vars": "warn" - }, - "parserOptions": { - "ecmaFeatures": { - "jsx": true - } - }, - "env": { - "mocha": true + "react/jsx-filename-extension": "off", + "babel/new-cap": "off", + "quote-props": "off", + "import/no-extraneous-dependencies": "off" } }, "babel": { @@ -108,7 +87,7 @@ }, "scripts": { "dev": "webpack --watch", - "lint": "eslint .", + "lint": "xo", "build": "NODE_ENV=production webpack", "test": "npm run lint && electron-mocha test/*", "start": "electron app",