Skip to content

Instantly share code, notes, and snippets.

@casprwang
Created January 8, 2018 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casprwang/da1be95b53d9690440e842d23b9fa23b to your computer and use it in GitHub Desktop.
Save casprwang/da1be95b53d9690440e842d23b9fa23b to your computer and use it in GitHub Desktop.
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"rules": {
"indent": [0, 2],
"linebreak-style": ["error", "unix"],
"quotes": [0, "single"],
"semi": ["error", "never"],
"brace-style": [2, "1tbs", {
"allowSingleLine": true
}],
"curly": [2, "all"],
"no-console": ["error", {
"allow": ["warn", "error", "log"]
}],
"no-unused-vars": 0,
"no-empty": [0, "never"],
"curly": 0,
"comma-dangle": [2, "always-multiline"],
"no-constant-condition": [2, {
"checkLoops": false
}],
"key-spacing": [
0, {
"multiLine": {
"beforeColon": false,
"afterColon": true
},
"align": {
"beforeColon": false,
"afterColon": false,
"on": "colon"
}
}
],
"react/jsx-indent": [2, 2],
"react/jsx-tag-spacing": {
"closingSlash": "never"
},
"react/self-closing-comp": ["error", {
"component": true,
"html": true
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment