Permalink
Browse files

ESLint

  • Loading branch information...
cazala committed Aug 8, 2016
1 parent 3891271 commit fe166a55dd76b1b70310587c6ca7f26deaf5e2da
Showing with 33 additions and 8 deletions.
  1. +19 −0 .eslintrc
  2. +0 −2 index.html
  3. +10 −0 package.json
  4. +0 −3 src/index.css
  5. +4 −3 src/index.js
@@ -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
}
}

This file was deleted.

Oops, something went wrong.
@@ -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",

This file was deleted.

Oops, something went wrong.
@@ -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.