Skip to content

Commit

Permalink
Consolidate config in @LincWorld/dot-files
Browse files Browse the repository at this point in the history
  • Loading branch information
brahma-dev committed Sep 5, 2019
1 parent f032eb1 commit 8eecc2c
Showing 1 changed file with 4 additions and 316 deletions.
320 changes: 4 additions & 316 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
const restrictedGlobals = require("confusing-browser-globals");
const config = require("@lincworld/dot-files/.eslintrc.json");
module.exports = {
plugins: ["import"],
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
impliedStrict: true
}
},
env: config.env,
parserOptions: config.parserOptions,
overrides: [
{
files: ["**/*.ts?(x)"],
Expand Down Expand Up @@ -65,308 +56,5 @@ module.exports = {
}
}
],
rules: {
"accessor-pairs": 0,
"array-bracket-newline": 0,
"array-bracket-spacing": [2, "never", {}],
"array-callback-return": 0,
"array-element-newline": 0,
"arrow-body-style": 0,
"arrow-parens": [2, "always"],
"arrow-spacing": 0,
"block-scoped-var": 0,
"block-spacing": 0,
"brace-style": [
2,
"1tbs",
{
allowSingleLine: true
}
],
"callback-return": 0,
camelcase: 0,
"capitalized-comments": 0,
"class-methods-use-this": 0,
"comma-dangle": [2, "never"],
"comma-spacing": 0,
"comma-style": [2, "last"],
complexity: 0,
"computed-property-spacing": 0,
"consistent-return": 0,
"consistent-this": 0,
"constructor-super": 2,
curly: [2, "all"],
"default-case": 0,
"dot-location": 0,
"dot-notation": 2,
"eol-last": 2,
eqeqeq: [2, "always", { null: "ignore" }],
"for-direction": 0,
"func-call-spacing": 0,
"func-name-matching": 0,
"func-names": 0,
"func-style": 0,
"function-paren-newline": 0,
"generator-star-spacing": 0,
"getter-return": 0,
"global-require": 0,
"guard-for-in": 0,
"handle-callback-err": 1,
"id-blacklist": 0,
"id-length": 0,
"id-match": 0,
"implicit-arrow-linebreak": 0,
"indent-legacy": 0,
indent: [
2,
"tab",
{
SwitchCase: 1
}
],
"init-declarations": 0,
"jsx-quotes": 0,
"key-spacing": 0,
"keyword-spacing": [2, {}],
"line-comment-position": 0,
"linebreak-style": 0,
"lines-around-comment": 0,
"lines-around-directive": 0,
"lines-between-class-members": 0,
"max-depth": 0,
"max-len": 0,
"max-lines": 0,
"max-nested-callbacks": 0,
"max-params": 0,
"max-statements-per-line": 0,
"max-statements": 0,
"multiline-comment-style": 0,
"multiline-ternary": 0,
"new-cap": 0,
"new-parens": 0,
"newline-after-var": 0,
"newline-before-return": 0,
"newline-per-chained-call": 0,
"no-alert": 1,
"no-array-constructor": 0,
"no-await-in-loop": 0,
"no-bitwise": 0,
"no-buffer-constructor": 0,
"no-caller": 1,
"no-case-declarations": 0,
"no-catch-shadow": 0,
"no-class-assign": 0,
"no-compare-neg-zero": 0,
"no-cond-assign": [1, "always"],
"no-confusing-arrow": 0,
"no-console": 1,
"no-const-assign": 0,
"no-constant-condition": 1,
"no-continue": 0,
"no-control-regex": 1,
"no-debugger": 1,
"no-delete-var": 2,
"no-div-regex": 0,
"no-dupe-args": 1,
"no-dupe-class-members": 0,
"no-dupe-keys": 2,
"no-duplicate-case": 1,
"no-duplicate-imports": 0,
"no-else-return": 0,
"no-empty-character-class": 2,
"no-empty-function": 0,
"no-empty-pattern": 0,
"no-empty": 2,
"no-eq-null": 0,
"no-eval": 0,
"no-ex-assign": 2,
"no-extend-native": 0,
"no-extra-bind": 0,
"no-extra-boolean-cast": 0,
"no-extra-label": 0,
"no-extra-parens": [1, "all"],
"no-extra-semi": 2,
"no-fallthrough": 0,
"no-floating-decimal": 2,
"no-func-assign": 2,
"no-global-assign": 0,
"no-implicit-coercion": 0,
"no-implicit-globals": 0,
"no-implied-eval": 1,
"no-inline-comments": 0,
"no-inner-declarations": [1, "functions"],
"no-invalid-regexp": 2,
"no-invalid-this": 0,
"no-irregular-whitespace": 1,
"no-iterator": 0,
"no-label-var": 1,
"no-labels": 2,
"no-lone-blocks": 2,
"no-lonely-if": 0,
"no-loop-func": 2,
"no-magic-numbers": 0,
"no-mixed-operators": 0,
"no-mixed-requires": 0,
"no-mixed-spaces-and-tabs": 2,
"no-multi-assign": 0,
"no-multi-spaces": 0,
"no-multi-str": 2,
"no-multiple-empty-lines": [
2,
{
max: 2
}
],
"no-native-reassign": 0,
"no-negated-condition": 0,
"no-negated-in-lhs": 2,
"no-nested-ternary": 0,
"no-new-func": 0,
"no-new-object": 0,
"no-new-require": 0,
"no-new-symbol": 0,
"no-new-wrappers": 0,
"no-new": 0,
"no-obj-calls": 2,
"no-octal-escape": 0,
"no-octal": 0,
"no-param-reassign": [
1,
{
props: true
}
],
"no-path-concat": 2,
"no-plusplus": 0,
"no-process-env": 0,
"no-process-exit": 0,
"no-proto": 0,
"no-prototype-builtins": 0,
"no-redeclare": [
2,
{
builtinGlobals: true
}
],
"no-regex-spaces": 2,
"no-restricted-globals": [2].concat(restrictedGlobals),
"no-restricted-imports": 0,
"no-restricted-modules": 0,
"no-restricted-properties": 0,
"no-restricted-syntax": 0,
"no-return-assign": [1, "always"],
"no-return-await": 0,
"no-script-url": 2,
"no-self-assign": 0,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow-restricted-names": 1,
"no-shadow": [
1,
{
builtinGlobals: true,
hoist: "all"
}
],
"no-spaced-func": 0,
"no-sparse-arrays": 1,
"no-sync": 0,
"no-tabs": 0,
"no-template-curly-in-string": 0,
"no-ternary": 0,
"no-this-before-super": 2,
"no-throw-literal": 0,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-undef": 2,
"no-undefined": 2,
"no-underscore-dangle": 2,
"no-unexpected-multiline": 1,
"no-unmodified-loop-condition": 0,
"no-unneeded-ternary": 0,
"no-unreachable": 1,
"no-unsafe-finally": 0,
"no-unsafe-negation": 0,
"no-unused-expressions": 0,
"no-unused-labels": 0,
"no-unused-vars": 0,
"no-use-before-define": 2,
"no-useless-call": 0,
"no-useless-computed-key": 0,
"no-useless-concat": 0,
"no-useless-constructor": 0,
"no-useless-escape": 0,
"no-useless-rename": 0,
"no-useless-return": 0,
"no-var": 0,
"no-void": 0,
"no-warning-comments": 0,
"no-whitespace-before-property": 0,
"no-with": 2,
"nonblock-statement-body-position": 0,
"object-curly-newline": 0,
"object-curly-spacing": 0,
"object-property-newline": 0,
"object-shorthand": 0,
"one-var-declaration-per-line": 0,
"one-var": 0,
"operator-assignment": 0,
"operator-linebreak": 0,
"padded-blocks": 0,
"padding-line-between-statements": 0,
"prefer-arrow-callback": 0,
"prefer-const": 0,
"prefer-destructuring": 0,
"prefer-numeric-literals": 0,
"prefer-promise-reject-errors": 0,
"prefer-reflect": 0,
"prefer-rest-params": 0,
"prefer-spread": 0,
"prefer-template": 0,
"quote-props": 0,
quotes: 0,
radix: 1,
"require-await": 0,
"require-jsdoc": 0,
"require-yield": 2,
"rest-spread-spacing": 0,
"semi-spacing": 0,
"semi-style": 0,
semi: [2, "always"],
"sort-imports": 0,
"sort-keys": 0,
"sort-vars": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [
2,
{
anonymous: "ignore",
named: "never"
}
],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [
2,
{
words: false,
nonwords: false
}
],
"spaced-comment": 0,
strict: 0,
"switch-colon-spacing": 0,
"symbol-description": 0,
"template-curly-spacing": 0,
"template-tag-spacing": 0,
"unicode-bom": 0,
"use-isnan": 2,
"valid-jsdoc": 0,
"valid-typeof": 2,
"vars-on-top": 0,
"wrap-iife": 2,
"wrap-regex": 0,
"yield-star-spacing": 0,
yoda: [1, "never", {}]
}
rules: config.rules
};

0 comments on commit 8eecc2c

Please sign in to comment.