Skip to content

Instantly share code, notes, and snippets.

@gt3
Last active July 25, 2017 18:26
Show Gist options
  • Select an option

  • Save gt3/eb3f2c746d399500ec5d8937ecee59b3 to your computer and use it in GitHub Desktop.

Select an option

Save gt3/eb3f2c746d399500ec5d8937ecee59b3 to your computer and use it in GitHub Desktop.
eslint-config
module.exports = exports = {
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"array-callback-return": "warn",
"default-case": [
"warn",
{
"commentPattern": "^no default$"
}
],
"dot-location": [
"warn",
"property"
],
"eqeqeq": [
"warn",
"allow-null"
],
"guard-for-in": "warn",
"indent": [
"warn",
2
],
"linebreak-style": [
"error",
"unix"
],
"max-len": [
"warn",
130,
2,
{
"ignoreUrls": true
}
],
"new-cap": [
"warn",
{
"newIsCap": true
}
],
"new-parens": "warn",
"no-array-constructor": "warn",
"no-caller": "warn",
"no-cond-assign": [
"warn"
],
"no-const-assign": "warn",
"no-control-regex": "warn",
"no-delete-var": "warn",
"no-dupe-args": "warn",
"no-dupe-class-members": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty-character-class": "warn",
"no-empty-pattern": "warn",
"no-eval": "warn",
"no-ex-assign": "warn",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-fallthrough": "warn",
"no-func-assign": "warn",
"no-implied-eval": "warn",
"no-invalid-regexp": "warn",
"no-iterator": "warn",
"no-label-var": "warn",
"no-labels": [
"warn",
{
"allowLoop": false,
"allowSwitch": false
}
],
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-mixed-operators": [
"warn",
{
"groups": [
[
"&",
"|",
"^",
"~",
"<<",
">>",
">>>"
],
[
"==",
"!=",
"===",
"!==",
">",
">=",
"<",
"<="
],
[
"&&",
"||"
],
[
"in",
"instanceof"
]
],
"allowSamePrecedence": false
}
],
"no-multi-str": "warn",
"no-native-reassign": "warn",
"no-negated-in-lhs": "warn",
"no-new-func": "warn",
"no-new-object": "warn",
"no-new-symbol": "warn",
"no-new-wrappers": "warn",
"no-obj-calls": "warn",
"no-octal": "warn",
"no-octal-escape": "warn",
"no-redeclare": "warn",
"no-regex-spaces": "warn",
"no-restricted-syntax": [
"warn",
"LabeledStatement",
"WithStatement"
],
"no-return-assign": "off",
"no-script-url": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"no-sequences": "warn",
"no-shadow-restricted-names": "warn",
"no-sparse-arrays": "warn",
"no-this-before-super": "warn",
"no-throw-literal": "warn",
"no-undef": "warn",
"no-unexpected-multiline": "warn",
"no-unreachable": "warn",
"no-unused-expressions": "warn",
"no-unused-labels": "warn",
"no-unused-vars": [
"warn",
{
"vars": "local",
"args": "none"
}
],
"no-use-before-define": [
"warn",
{
"functions": false,
"classes": false
}
],
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-useless-constructor": "warn",
"no-useless-escape": "off",
"no-useless-rename": [
"warn",
{
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}
],
"no-with": "warn",
"no-whitespace-before-property": "warn",
"operator-assignment": [
"warn",
"always"
],
"radix": "warn",
"require-yield": "warn",
"rest-spread-spacing": [
"warn",
"never"
],
"strict": [
"warn",
"never"
],
"unicode-bom": [
"warn",
"never"
],
"use-isnan": "warn",
"valid-typeof": "warn"
}
}
{
"name": "@gt3/eslint-config",
"version": "0.0.1"
}
@gt3
Copy link
Copy Markdown
Author

gt3 commented Jul 2, 2017

npm i -D gist:eb3f2c746d399500ec5d8937ecee59b3

package.json

  "eslintConfig": {
    "extends": "@gt3"
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment