Created
March 12, 2018 22:55
-
-
Save dperrymorrow/949677846149caa1aff2201742db7a84 to your computer and use it in GitHub Desktop.
eslint settings
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
{ | |
"root": true, | |
"parserOptions": { | |
"ecmaVersion": 8 | |
}, | |
"plugins": [ | |
"prettier", | |
"unicorn", | |
"promise" | |
], | |
"rules": { | |
"no-debugger": [ | |
"error" | |
], | |
"no-regex-spaces": [ | |
"error" | |
], | |
"no-unsafe-negation": [ | |
"error" | |
], | |
"curly": [ | |
"error", | |
"multi-or-nest", | |
"consistent" | |
], | |
"dot-location": [ | |
"error", | |
"property" | |
], | |
"dot-notation": [ | |
"error" | |
], | |
"eqeqeq": [ | |
"error", | |
"smart" | |
], | |
"no-else-return": [ | |
"error" | |
], | |
"no-extra-bind": [ | |
"error" | |
], | |
"no-extra-label": [ | |
"error" | |
], | |
"no-floating-decimal": [ | |
"error" | |
], | |
"no-implicit-coercion": [ | |
"error", | |
{ | |
"allow": [ | |
"!!" | |
] | |
} | |
], | |
"wrap-iife": [ | |
"error", | |
"inside" | |
], | |
"strict": [ | |
"error", | |
"global" | |
], | |
"eol-last": [ | |
"error", | |
"always" | |
], | |
"func-call-spacing": [ | |
"error", | |
"never" | |
], | |
"comma-style": [ | |
"error", | |
"last" | |
], | |
"comma-dangle": [ | |
"error", | |
{ | |
"arrays": "always-multiline", | |
"objects": "always-multiline", | |
"imports": "always-multiline", | |
"exports": "always-multiline", | |
"functions": "ignore" | |
} | |
], | |
"keyword-spacing": [ | |
"error" | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"new-parens": [ | |
"error" | |
], | |
"no-lonely-if": [ | |
"error" | |
], | |
"no-multiple-empty-lines": [ | |
"error", | |
{ | |
"max": 2, | |
"maxEOF": 1 | |
} | |
], | |
"no-trailing-spaces": [ | |
"error", | |
{ | |
"ignoreComments": true | |
} | |
], | |
"no-whitespace-before-property": [ | |
"error" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"template-tag-spacing": [ | |
"error", | |
"never" | |
], | |
"arrow-body-style": [ | |
"error", | |
"as-needed" | |
], | |
"arrow-parens": [ | |
"error", | |
"as-needed" | |
], | |
"arrow-spacing": [ | |
"error" | |
], | |
"no-useless-computed-key": [ | |
"error" | |
], | |
"no-useless-rename": [ | |
"error" | |
], | |
"no-var": [ | |
"error" | |
], | |
"prefer-spread": [ | |
"error" | |
], | |
"prefer-template": [ | |
"error" | |
], | |
"rest-spread-spacing": [ | |
"error", | |
"never" | |
], | |
"prettier/prettier": [ | |
"warn", | |
{ | |
"printWidth": 100, | |
"trailingComma": "es5" | |
} | |
], | |
"unicorn/filename-case": [ | |
0, | |
{ | |
"case": "kebabCase" | |
} | |
], | |
"unicorn/throw-new-error": [ | |
"error" | |
], | |
"unicorn/no-array-instanceof": [ | |
"error" | |
], | |
"unicorn/no-new-buffer": [ | |
"error" | |
], | |
"unicorn/no-hex-escape": [ | |
"error" | |
], | |
"unicorn/prefer-starts-ends-with": [ | |
"warn" | |
], | |
"promise/catch-or-return": [ | |
"error" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment