Convert spaces to tabs in .eslintrc

This commit is contained in:
Dan Stillman 2019-03-05 01:14:36 -05:00
parent 3c6ab77e44
commit e44dc23f55

742
.eslintrc
View file

@ -1,373 +1,373 @@
{ {
"env": { "env": {
"browser": true, "browser": true,
"es6": true, "es6": true,
"node": true "node": true
}, },
"globals": { "globals": {
"Zotero": false, "Zotero": false,
"ZOTERO_CONFIG": false, "ZOTERO_CONFIG": false,
"AddonManager": false, "AddonManager": false,
"assert": false, "assert": false,
"Cc": false, "Cc": false,
"Ci": false, "Ci": false,
"Components": false, "Components": false,
"ConcurrentCaller": false, "ConcurrentCaller": false,
"ctypes": false, "ctypes": false,
"OS": false, "OS": false,
"PluralForm": false, "PluralForm": false,
"Services": false, "Services": false,
"XPCOMUtils": false, "XPCOMUtils": false,
"XRegExp": false "XRegExp": false
}, },
"extends": [ "extends": [
"eslint:recommended", "eslint:recommended",
"plugin:react/recommended" "plugin:react/recommended"
], ],
"parserOptions": { "parserOptions": {
"ecmaVersion": 2018, "ecmaVersion": 2018,
"ecmaFeatures": { "ecmaFeatures": {
"jsx": true "jsx": true
}, },
"sourceType": "module" "sourceType": "module"
}, },
"plugins": [ "plugins": [
"react" "react"
], ],
"settings": { "settings": {
"react": { "react": {
"version": "16.3" "version": "16.3"
} }
}, },
"rules": { "rules": {
"accessor-pairs": "error", "accessor-pairs": "error",
"array-bracket-newline": [ "array-bracket-newline": [
"error", "error",
"consistent" "consistent"
], ],
"array-bracket-spacing": "error", "array-bracket-spacing": "error",
"array-callback-return": "error", "array-callback-return": "error",
"array-element-newline": [ "array-element-newline": [
"error", "error",
"consistent" "consistent"
], ],
"arrow-body-style": "off", "arrow-body-style": "off",
"arrow-parens": [ "arrow-parens": [
"warn", "warn",
"as-needed", "as-needed",
{ {
"requireForBlockBody": true "requireForBlockBody": true
} }
], ],
"arrow-spacing": [ "arrow-spacing": [
"error", "error",
{ {
"after": true, "after": true,
"before": true "before": true
} }
], ],
"block-scoped-var": "off", "block-scoped-var": "off",
"block-spacing": [ "block-spacing": [
"error", "error",
"always" "always"
], ],
"brace-style": [ "brace-style": [
"warn", "warn",
"stroustrup" "stroustrup"
], ],
"callback-return": "off", "callback-return": "off",
"camelcase": "error", "camelcase": "error",
"capitalized-comments": "off", "capitalized-comments": "off",
"class-methods-use-this": "error", "class-methods-use-this": "error",
"comma-dangle": "off", "comma-dangle": "off",
"comma-spacing": [ "comma-spacing": [
"warn", "warn",
{ {
"after": true, "after": true,
"before": false "before": false
} }
], ],
"comma-style": [ "comma-style": [
"error", "error",
"last" "last"
], ],
"complexity": "off", "complexity": "off",
"computed-property-spacing": [ "computed-property-spacing": [
"error", "error",
"never" "never"
], ],
"consistent-return": "error", "consistent-return": "error",
"consistent-this": "error", "consistent-this": "error",
"curly": "off", "curly": "off",
"default-case": "off", "default-case": "off",
"dot-location": [ "dot-location": [
"error", "error",
"property" "property"
], ],
"dot-notation": "error", "dot-notation": "error",
"eol-last": "error", "eol-last": "error",
"eqeqeq": "off", "eqeqeq": "off",
"func-call-spacing": "error", "func-call-spacing": "error",
"func-name-matching": "error", "func-name-matching": "error",
"func-names": [ "func-names": [
"error", "error",
"never" "never"
], ],
"func-style": "off", "func-style": "off",
"function-paren-newline": "off", "function-paren-newline": "off",
"generator-star-spacing": [ "generator-star-spacing": [
"error", "error",
{ {
"before": false, "before": false,
"after": true "after": true
} }
], ],
"global-require": "off", "global-require": "off",
"guard-for-in": "off", "guard-for-in": "off",
"handle-callback-err": "error", "handle-callback-err": "error",
"id-blacklist": "error", "id-blacklist": "error",
"id-length": "off", "id-length": "off",
"id-match": "error", "id-match": "error",
"implicit-arrow-linebreak": [ "implicit-arrow-linebreak": [
"error", "error",
"beside" "beside"
], ],
"indent": [ "indent": [
"error", "error",
"tab" "tab"
], ],
"init-declarations": "off", "init-declarations": "off",
"jsx-quotes": "error", "jsx-quotes": "error",
"key-spacing": "warn", "key-spacing": "warn",
"keyword-spacing": "warn", "keyword-spacing": "warn",
"line-comment-position": "off", "line-comment-position": "off",
"linebreak-style": [ "linebreak-style": [
"error", "error",
"unix" "unix"
], ],
"lines-around-comment": "error", "lines-around-comment": "error",
"lines-around-directive": "error", "lines-around-directive": "error",
"lines-between-class-members": "error", "lines-between-class-members": "error",
"max-depth": "off", "max-depth": "off",
"max-len": "off", "max-len": "off",
"max-lines": "off", "max-lines": "off",
"max-nested-callbacks": "error", "max-nested-callbacks": "error",
"max-params": "off", "max-params": "off",
"max-statements": "off", "max-statements": "off",
"max-statements-per-line": "off", "max-statements-per-line": "off",
"multiline-comment-style": "off", "multiline-comment-style": "off",
"multiline-ternary": [ "multiline-ternary": [
"error", "error",
"always-multiline" "always-multiline"
], ],
"new-parens": "off", "new-parens": "off",
"newline-per-chained-call": "error", "newline-per-chained-call": "error",
"no-alert": "off", "no-alert": "off",
"no-array-constructor": "error", "no-array-constructor": "error",
"no-await-in-loop": "warn", "no-await-in-loop": "warn",
"no-bitwise": "off", "no-bitwise": "off",
"no-buffer-constructor": "error", "no-buffer-constructor": "error",
"no-caller": "error", "no-caller": "error",
"no-confusing-arrow": "error", "no-confusing-arrow": "error",
"no-constant-condition": [ "no-constant-condition": [
"error", "error",
{ {
"checkLoops": false "checkLoops": false
} }
], ],
"no-control-regex": "off", "no-control-regex": "off",
"no-continue": "off", "no-continue": "off",
"no-div-regex": "off", "no-div-regex": "off",
"no-duplicate-imports": "error", "no-duplicate-imports": "error",
"no-else-return": "off", "no-else-return": "off",
"no-empty": "off", "no-empty": "off",
"no-empty-function": "off", "no-empty-function": "off",
"no-eq-null": "error", "no-eq-null": "error",
"no-eval": "error", "no-eval": "error",
"no-extend-native": "error", "no-extend-native": "error",
"no-extra-bind": "error", "no-extra-bind": "error",
"no-extra-label": "error", "no-extra-label": "error",
"no-extra-parens": "off", "no-extra-parens": "off",
"no-floating-decimal": "error", "no-floating-decimal": "error",
"no-implicit-globals": "error", "no-implicit-globals": "error",
"no-implied-eval": "error", "no-implied-eval": "error",
"no-inline-comments": "off", "no-inline-comments": "off",
"no-invalid-this": "off", "no-invalid-this": "off",
"no-iterator": "error", "no-iterator": "error",
"no-label-var": "error", "no-label-var": "error",
"no-labels": "off", "no-labels": "off",
"no-lone-blocks": "error", "no-lone-blocks": "error",
"no-lonely-if": "error", "no-lonely-if": "error",
"no-loop-func": "error", "no-loop-func": "error",
"no-magic-numbers": "off", "no-magic-numbers": "off",
"no-mixed-operators": "off", "no-mixed-operators": "off",
"no-mixed-requires": "error", "no-mixed-requires": "error",
"no-multi-assign": "off", "no-multi-assign": "off",
"no-multi-spaces": "error", "no-multi-spaces": "error",
"no-multi-str": "error", "no-multi-str": "error",
"no-multiple-empty-lines": "warn", "no-multiple-empty-lines": "warn",
"no-native-reassign": "error", "no-native-reassign": "error",
"no-negated-condition": "off", "no-negated-condition": "off",
"no-negated-in-lhs": "error", "no-negated-in-lhs": "error",
"no-nested-ternary": "off", "no-nested-ternary": "off",
"no-new": "error", "no-new": "error",
"no-new-func": "error", "no-new-func": "error",
"no-new-object": "error", "no-new-object": "error",
"no-new-require": "error", "no-new-require": "error",
"no-new-wrappers": "error", "no-new-wrappers": "error",
"no-octal-escape": "error", "no-octal-escape": "error",
"no-param-reassign": "off", "no-param-reassign": "off",
"no-path-concat": "error", "no-path-concat": "error",
"no-plusplus": "off", "no-plusplus": "off",
"no-process-env": "error", "no-process-env": "error",
"no-process-exit": "error", "no-process-exit": "error",
"no-proto": "error", "no-proto": "error",
"no-prototype-builtins": "off", "no-prototype-builtins": "off",
"no-restricted-globals": "error", "no-restricted-globals": "error",
"no-restricted-imports": "error", "no-restricted-imports": "error",
"no-restricted-modules": "error", "no-restricted-modules": "error",
"no-restricted-properties": "error", "no-restricted-properties": "error",
"no-restricted-syntax": "error", "no-restricted-syntax": "error",
"no-return-assign": "off", "no-return-assign": "off",
"no-return-await": "error", "no-return-await": "error",
"no-script-url": "error", "no-script-url": "error",
"no-self-compare": "error", "no-self-compare": "error",
"no-sequences": "error", "no-sequences": "error",
"no-shadow": "off", "no-shadow": "off",
"no-shadow-restricted-names": "error", "no-shadow-restricted-names": "error",
"no-spaced-func": "error", "no-spaced-func": "error",
"no-sync": "off", "no-sync": "off",
"no-tabs": "off", "no-tabs": "off",
"no-template-curly-in-string": "error", "no-template-curly-in-string": "error",
"no-ternary": "off", "no-ternary": "off",
"no-throw-literal": "error", "no-throw-literal": "error",
"no-trailing-spaces": [ "no-trailing-spaces": [
"error", "error",
{ {
"skipBlankLines": true "skipBlankLines": true
} }
], ],
"no-undef-init": "error", "no-undef-init": "error",
"no-undefined": "off", "no-undefined": "off",
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error", "no-unmodified-loop-condition": "error",
"no-unneeded-ternary": [ "no-unneeded-ternary": [
"error", "error",
{ {
"defaultAssignment": true "defaultAssignment": true
} }
], ],
"no-unused-expressions": [ "no-unused-expressions": [
"error", "error",
{ {
"allowShortCircuit": true "allowShortCircuit": true
} }
], ],
"no-unused-vars": [ "no-unused-vars": [
"error", "error",
{ {
"argsIgnorePattern": "^_" "argsIgnorePattern": "^_"
} }
], ],
"no-use-before-define": "off", "no-use-before-define": "off",
"no-useless-call": "error", "no-useless-call": "error",
"no-useless-computed-key": "error", "no-useless-computed-key": "error",
"no-useless-concat": "error", "no-useless-concat": "error",
"no-useless-constructor": "error", "no-useless-constructor": "error",
"no-useless-rename": "error", "no-useless-rename": "error",
"no-useless-return": "error", "no-useless-return": "error",
"no-var": "off", "no-var": "off",
"no-void": "error", "no-void": "error",
"no-warning-comments": "off", "no-warning-comments": "off",
"no-whitespace-before-property": "error", "no-whitespace-before-property": "error",
"no-with": "error", "no-with": "error",
"nonblock-statement-body-position": "error", "nonblock-statement-body-position": "error",
"object-curly-newline": "error", "object-curly-newline": "error",
"object-curly-spacing": [ "object-curly-spacing": [
"error", "error",
"always" "always"
], ],
"object-shorthand": "off", "object-shorthand": "off",
"one-var": "off", "one-var": "off",
"one-var-declaration-per-line": "off", "one-var-declaration-per-line": "off",
"operator-assignment": [ "operator-assignment": [
"error", "error",
"always" "always"
], ],
"operator-linebreak": [ "operator-linebreak": [
"error", "error",
"before" "before"
], ],
"padded-blocks": [ "padded-blocks": [
"error", "error",
"never" "never"
], ],
"padding-line-between-statements": "error", "padding-line-between-statements": "error",
"prefer-arrow-callback": "off", "prefer-arrow-callback": "off",
"prefer-const": "off", "prefer-const": "off",
"prefer-destructuring": "off", "prefer-destructuring": "off",
"prefer-numeric-literals": "error", "prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error", "prefer-promise-reject-errors": "error",
"prefer-rest-params": "off", "prefer-rest-params": "off",
"prefer-spread": "error", "prefer-spread": "error",
"prefer-template": "off", "prefer-template": "off",
"quote-props": [ "quote-props": [
"error", "error",
"as-needed" "as-needed"
], ],
"quotes": "off", "quotes": "off",
"radix": [ "radix": [
"error", "error",
"as-needed" "as-needed"
], ],
"require-await": "off", "require-await": "off",
"require-yield": "off", "require-yield": "off",
"rest-spread-spacing": [ "rest-spread-spacing": [
"error", "error",
"never" "never"
], ],
"semi": "error", "semi": "error",
"semi-spacing": [ "semi-spacing": [
"error", "error",
{ {
"after": true, "after": true,
"before": false "before": false
} }
], ],
"semi-style": [ "semi-style": [
"error", "error",
"last" "last"
], ],
"space-before-blocks": "warn", "space-before-blocks": "warn",
"space-before-function-paren": [ "space-before-function-paren": [
"warn", "warn",
{ {
"anonymous": "always", "anonymous": "always",
"asyncArrow": "always", "asyncArrow": "always",
"named": "never" "named": "never"
} }
], ],
"space-in-parens": [ "space-in-parens": [
"error", "error",
"never" "never"
], ],
"space-infix-ops": "warn", "space-infix-ops": "warn",
"space-unary-ops": "error", "space-unary-ops": "error",
"spaced-comment": "warn", "spaced-comment": "warn",
"strict": "error", "strict": "error",
"switch-colon-spacing": "error", "switch-colon-spacing": "error",
"symbol-description": "error", "symbol-description": "error",
"template-curly-spacing": [ "template-curly-spacing": [
"error", "error",
"never" "never"
], ],
"template-tag-spacing": "error", "template-tag-spacing": "error",
"unicode-bom": [ "unicode-bom": [
"error", "error",
"never" "never"
], ],
"vars-on-top": "off", "vars-on-top": "off",
"wrap-regex": "off", "wrap-regex": "off",
"yield-star-spacing": "error" "yield-star-spacing": "error"
} }
} }