Skip to content

Instantly share code, notes, and snippets.

@ahomu
Last active August 29, 2015 14:16
Show Gist options
  • Save ahomu/fc3ee03e444e2961e700 to your computer and use it in GitHub Desktop.
Save ahomu/fc3ee03e444e2961e700 to your computer and use it in GitHub Desktop.
default off の項目をチェックしていくだけでも疲れました.eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"rules": {
"strict": 2,
"valid-jsdoc": 2,
"default-case": 2,
"no-self-compare": 2,
"no-else-return": 2,
"no-throw-literal": 2,
"no-void": 2,
"max-params": [1, 3],
"max-depth": [1, 3],
"max-len": [1, 100, 2],
"indent": [1, 2],
"comma-style": [2, "last"],
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"consistent-this": [2, "DO NOT USE"],
"space-in-brackets": [2, "never"],
"space-before-function-parentheses": [2, "never"],
"space-before-blocks": [2, "always"],
"space-after-keywords": [2, "always"],
"no-var": 2,
"no-new-require": 2,
"no-lonely-if": 2,
"no-nested-ternary": 2,
"no-multiple-empty-lines": [2, {
"max": 1
}],
"no-unused-expressions": 0,
"no-use-before-define": 0,
"quotes": [2, "single"],
"no-multi-spaces": [2, {
"exceptions": {
"Property": true,
"ImportDeclaration": true,
"VariableDeclarator": true,
"AssignmentExpression": true
}
}],
"key-spacing": [2, {
"align": "colon",
"beforeColon": true,
"afterColon": true
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment