Skip to content

Commit

Permalink
change contents
Browse files Browse the repository at this point in the history
  • Loading branch information
jeezliu committed Feb 7, 2018
1 parent fae947d commit 2579a04
Show file tree
Hide file tree
Showing 6 changed files with 426 additions and 360 deletions.
64 changes: 62 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
{
"extends": "airbnb"
}
"extends": "airbnb",
"exmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"settings": {
"import/core-modules": ["components", "actions", "api", "reducers", "utils", "constants"]
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"func-names": 0,
"max-len": ["error", 150, 4, {
"comments": 150
}],
"indent": ["error", 2],
"react/jsx-indent": [2, 2],
"semi": 0,
"react/sort-comp": 0,
"react/prop-types": 0,
"react/prefer-es6-class": 0,
"react/prefer-stateless-function": 0,
"react/jsx-first-prop-new-line": 0,
"react/jsx-filename-extension": 0,
"no-return-assign": 0,
"react/no-multi-comp": 0,
"array-callback-return": 0,
"no-underscore-dangle": 0,
"no-bitwise": ["error", {
"allow": ["~"]
}],
"no-plusplus": 1,
"no-unused-expressions": ["warn", { "allowShortCircuit": true, "allowTernary": true}],
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/img-has-alt": 0,
"no-unused-vars": ["error", {
"vars": "all",
"args": "none"
}],
"no-param-reassign": ["error", {
"props": false
}],
"object-shorthand": 0
},
"plugins": [
"react",
"babel"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "webpack-dev-server --open --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
"watch": "webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},
"repository": {
"type": "git",
Expand All @@ -34,6 +34,7 @@
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.6.0",
"html-webpack-plugin": "^2.30.1",
"jest": "^22.1.4",
"style-loader": "^0.19.1",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.11.1",
Expand Down
Loading

0 comments on commit 2579a04

Please sign in to comment.