-
-
Save tomoat/b71f770a14fb9d60a598d24e6caae147 to your computer and use it in GitHub Desktop.
eslint 3.3 yaml config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
env: | |
browser: true | |
es6: true | |
parserOptions: | |
ecmaVersion: 6 | |
sourceType: module | |
rules: | |
# Auto fixed | |
semi: | |
- error | |
- always | |
indent: | |
- warn | |
- 2 | |
- MemberExpression: 2 | |
SwitchCase: 1 | |
VariableDeclarator: | |
var: 2 | |
let: 2 | |
const: 3 | |
no-extra-semi: | |
- error | |
no-unused-vars: | |
- error | |
- args: none | |
no-redeclare: | |
- error | |
linebreak-style: | |
- error | |
- windows | |
no-trailing-spaces: | |
- error | |
object-shorthand: | |
- error | |
no-var: | |
- error | |
quotes: | |
- error | |
- single | |
- avoidEscape: true | |
allowTemplateLiterals: true | |
comma-spacing: | |
- error | |
- before: false | |
after: true | |
space-before-function-paren: | |
- error | |
space-before-blocks: | |
- error | |
space-infix-ops: | |
- error | |
eol-last: | |
- error | |
key-spacing: | |
- error | |
- mode: minimum | |
no-multiple-empty-lines: | |
- error | |
arrow-parens: | |
- error | |
- as-needed | |
arrow-spacing: | |
- error | |
# A little safety net | |
no-dupe-keys: | |
- error | |
no-dupe-args: | |
- error | |
no-func-assign: | |
- error | |
no-undef: | |
- error | |
no-unreachable: | |
- error | |
valid-typeof: | |
- error | |
no-unsafe-negation: | |
- error | |
no-sparse-arrays: | |
- error | |
no-irregular-whitespace: | |
- error | |
use-isnan: | |
- error | |
no-empty: | |
- error | |
no-duplicate-imports: | |
- error | |
no-useless-rename: | |
- error | |
no-self-assign: | |
- error | |
no-useless-call: | |
- error | |
no-unmodified-loop-condition: | |
- error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment