|
36 | 36 | "devDependencies": {
|
37 | 37 | "babel-cli": "^6.11.4",
|
38 | 38 | "babel-core": "^6.11.4",
|
39 |
| - "babel-eslint": "^6.1.2", |
40 | 39 | "babel-loader": "^6.2.4",
|
41 | 40 | "babel-preset-react": "^6.11.1",
|
42 | 41 | "copy-webpack-plugin": "^3.0.1",
|
43 | 42 | "electron-builder": "^7.0.1",
|
44 | 43 | "electron": "1.4.0",
|
45 |
| - "eslint": "^3.2.0", |
46 |
| - "eslint-config-standard": "^5.3.5", |
47 | 44 | "eslint-config-xo-react": "^0.9.0",
|
48 |
| - "eslint-plugin-promise": "^2.0.0", |
49 | 45 | "eslint-plugin-react": "^6.2.2",
|
50 |
| - "eslint-plugin-standard": "^2.0.0", |
51 | 46 | "husky": "^0.11.6",
|
52 | 47 | "webpack": "^2.1.0-beta.15",
|
53 | 48 | "xo": "^0.16.0"
|
54 | 49 | },
|
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" |
59 | 58 | ],
|
60 | 59 | "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" |
85 | 64 | }
|
86 | 65 | },
|
87 | 66 | "babel": {
|
|
108 | 87 | },
|
109 | 88 | "scripts": {
|
110 | 89 | "dev": "webpack --watch",
|
111 |
| - "lint": "eslint .", |
| 90 | + "lint": "xo", |
112 | 91 | "build": "NODE_ENV=production webpack",
|
113 | 92 | "test": "npm run lint && electron-mocha test/*",
|
114 | 93 | "start": "electron app",
|
|
0 commit comments