Skip to content

Commit

Permalink
ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cazala committed Aug 8, 2016
1 parent 3891271 commit fe166a5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"extends": ["standard", "standard-react"],
"rules": {
"comma-dangle" : [0, "always-multiline"],
"semi": [2, "never"],
"no-extra-semi": 2,
"jsx-quotes": [2, "prefer-single"],
"react/jsx-boolean-value": [0, "always"],
"react/jsx-max-props-per-line": [2, {"maximum": 4}],
"react/self-closing-comp": 2,
"react/jsx-indent-props": [2, 2],
"react/sort-comp": 2
}
}
2 changes: 0 additions & 2 deletions index.html

This file was deleted.

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
"babel-register": "^6.11.6",
"babel-runtime": "^6.11.6",
"css-loader": "^0.23.1",
"eslint": "^3.2.2",
"eslint-config-standard": "^5.3.5",
"eslint-config-standard-react": "^3.0.0",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^1.12.0",
"eslint-plugin-jsx-a11y": "^2.0.1",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-react": "^6.0.0",
"eslint-plugin-standard": "^2.0.0",
"eslint-watch": "^2.1.14",
"postcss-import": "^8.1.2",
"postcss-loader": "^0.9.1",
"postcss-mixins": "^5.0.0",
Expand Down
3 changes: 0 additions & 3 deletions src/index.css

This file was deleted.

7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import styles from './index.css'
console.log(styles) // { red: '...' }
window.onload = () => document.body.classList.add(styles.red)
const a = 1
const b = 2
const c = 3 // unused variable
console.log(a + b)

0 comments on commit fe166a5

Please sign in to comment.