dino-graph
Version:
a simple dynamic graphing library
178 lines (170 loc) • 4.59 kB
JavaScript
module.exports =
{
"env":
{
"es6": true,
"browser": true
},
"extends": [ "eslint:recommended" ],
"parser": "babel-eslint",
"parserOptions":
{
"ecmaFeatures":
{
"experimentalObjectRestSpread": true,
"impliedStrict": true,
"globalReturn": false
},
"sourceType": "module",
"allowImportExportEverywhere": true
},
"globals":
{
"module": true
},
"rules":
{
// semicolons
"no-extra-semi": 1,
"no-unexpected-multiline": 2,
"semi": [ 1, "never" ],
"semi-spacing": [ 1, { "before": false, "after": true } ],
// quotes
"quotes": [ 1, "single", { "avoidEscape": true, "allowTemplateLiterals": true } ],
// warn about possible mistakes
"array-callback-return": 1,
"block-scoped-var": 1,
"consistent-return": 1,
"constructor-super": 1,
"default-case": 1,
"dot-notation": 1,
"no-caller": 1,
"no-confusing-arrow": [ 1, { "allowParens": true } ],
"no-constant-condition": 1,
"no-control-regex": 1,
"no-delete-var": 1,
"no-dupe-class-members": 1,
"no-empty": 1,
"no-empty-character-class": 1,
"no-empty-function": 1,
"no-empty-pattern": 1,
"no-extra-boolean-cast": 1,
"no-extra-label": 1,
"no-invalid-regexp": 1,
"no-irregular-whitespace": 1,
"no-label-var": 1,
"no-labels": 1,
"no-new-object": 1,
"no-new-wrappers": 1,
"no-path-concat": 1,
"no-redeclare": 1,
"no-return-await": 1,
"no-self-assign": 1,
"no-self-compare": 1,
"no-shadow": 1,
"no-sparse-arrays": 1,
"no-template-curly-in-string": 1,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 1,
"no-unreachable": 1,
"no-unused-expressions": 1,
"no-unused-labels": 1,
"no-useless-call": 1,
"no-useless-concat": 1,
"no-useless-escape": 1,
"no-useless-rename": 1,
"no-useless-return": 1,
"no-var": 1,
"no-void": 1,
"prefer-arrow-callback": 1,
"prefer-const": 1,
"prefer-rest-params": 1,
"prefer-spread": 1,
"require-await": 1,
"require-yield": 1,
"use-isnan": 1,
// prevent possible errors
"eqeqeq": [ 2, "smart" ],
"no-catch-shadow": 2,
"no-class-assign": 2,
"no-cond-assign": 2,
"no-const-assign": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-eq-null": 2,
"no-ex-assign": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-func-assign": 2,
"no-global-assign": 2,
"no-loop-func": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-require": 2,
"no-new-symbol": 2,
"no-obj-calls": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-shadow-restricted-names": 2,
"no-this-before-super": 2,
"no-undef": 2,
"no-undefined": 2,
"no-unsafe-finally": 2,
"no-unsafe-negation": 2,
"no-use-before-define": 2,
"valid-typeof": 2,
// people will hate me
"array-bracket-spacing": [ 1, "always" ],
"object-curly-spacing": [ 1, "always" ],
// misc stylistic warnings
"arrow-spacing": 1,
"block-spacing": [ 1, "always" ],
"comma-dangle": [ 1, "always-multiline" ],
"comma-spacing": [ 1, { "before": false, "after": true } ],
"comma-style": [ 1, "last" ],
"dot-location": [ 1, "property" ],
"eol-last": 1,
"func-call-spacing": [ 1, "never" ],
"generator-star-spacing": [ 1, { "before": true, "after": true } ],
"key-spacing": [ 1, { "beforeColon": false, "afterColon": true } ],
"keyword-spacing": [ 1, { "before": true, "after": true } ],
"new-parens": 1,
"no-floating-decimal": 1,
"no-mixed-spaces-and-tabs": [ 1, "smart-tabs" ],
"no-multi-spaces": 1,
"no-multiple-empty-lines": [ 1, { "max": 2 } ],
"no-spaced-func": 1,
"no-trailing-spaces": [ 1, { "skipBlankLines": true } ],
"no-undef-init": 1,
"no-whitespace-before-property": 1,
"one-var": [ 1, "never" ],
"operator-assignment": 1,
"padded-blocks": [ 1, "never" ],
"quote-props": [ 1, "as-needed" ],
"rest-spread-spacing": [ 1, "never" ],
"space-before-blocks": [ 1, "always" ],
"space-before-function-paren": [ 1, { "anonymous": "never", "named": "never" } ],
"space-infix-ops": [ 1, { "int32Hint": false } ],
"space-unary-ops": [ 1, { "words": true, "nonwords": false } ],
"yield-star-spacing": [ 1, "both" ],
"yoda": 1,
// warn about "debug-like" code
"no-alert": 1,
"no-console": 1,
"no-debugger": 1,
"no-eval": 1,
"no-implied-eval": 1,
"no-lone-blocks": 1,
"no-script-url": 1,
"no-warning-comments": [ 1, { "terms": [ "todo", "to do", "xxx" ], "location": "anywhere" } ],
// turn off ESLint TURBOOOOO mode
"no-case-declarations": 0,
"no-inner-declarations": 0,
"no-regex-spaces": 0,
"no-unused-vars": 1,
}
}