Skip to content

Commit c7c5780

Browse files
committed
Remove eslint-related dependencies, add XO config and use XO as the linter
1 parent 2dde977 commit c7c5780

File tree

1 file changed

+13
-34
lines changed

1 file changed

+13
-34
lines changed

package.json

+13-34
Original file line numberDiff line numberDiff line change
@@ -36,52 +36,31 @@
3636
"devDependencies": {
3737
"babel-cli": "^6.11.4",
3838
"babel-core": "^6.11.4",
39-
"babel-eslint": "^6.1.2",
4039
"babel-loader": "^6.2.4",
4140
"babel-preset-react": "^6.11.1",
4241
"copy-webpack-plugin": "^3.0.1",
4342
"electron-builder": "^7.0.1",
4443
"electron": "1.4.0",
45-
"eslint": "^3.2.0",
46-
"eslint-config-standard": "^5.3.5",
4744
"eslint-config-xo-react": "^0.9.0",
48-
"eslint-plugin-promise": "^2.0.0",
4945
"eslint-plugin-react": "^6.2.2",
50-
"eslint-plugin-standard": "^2.0.0",
5146
"husky": "^0.11.6",
5247
"webpack": "^2.1.0-beta.15",
5348
"xo": "^0.16.0"
5449
},
55-
"eslintConfig": {
56-
"extends": "standard",
57-
"plugins": [
58-
"react"
50+
"xo": {
51+
"extends": "xo-react",
52+
"esnext": true,
53+
"space": true,
54+
"env": [
55+
"browser",
56+
"node",
57+
"mocha"
5958
],
6059
"rules": {
61-
"yoda": "off",
62-
"semi": [
63-
"error",
64-
"always"
65-
],
66-
"no-unused-vars": "error",
67-
"no-extra-semi": "error",
68-
"semi-spacing": [
69-
"error",
70-
{
71-
"before": false,
72-
"after": true
73-
}
74-
],
75-
"react/jsx-uses-react": "warn",
76-
"react/jsx-uses-vars": "warn"
77-
},
78-
"parserOptions": {
79-
"ecmaFeatures": {
80-
"jsx": true
81-
}
82-
},
83-
"env": {
84-
"mocha": true
60+
"react/jsx-filename-extension": "off",
61+
"babel/new-cap": "off",
62+
"quote-props": "off",
63+
"import/no-extraneous-dependencies": "off"
8564
}
8665
},
8766
"babel": {
@@ -108,7 +87,7 @@
10887
},
10988
"scripts": {
11089
"dev": "webpack --watch",
111-
"lint": "eslint .",
90+
"lint": "xo",
11291
"build": "NODE_ENV=production webpack",
11392
"test": "npm run lint && electron-mocha test/*",
11493
"start": "electron app",

0 commit comments

Comments
 (0)