summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/js/build-aux/eslint.json
diff options
context:
space:
mode:
Diffstat (limited to 'macros/texinfo/texinfo/js/build-aux/eslint.json')
-rw-r--r--macros/texinfo/texinfo/js/build-aux/eslint.json172
1 files changed, 172 insertions, 0 deletions
diff --git a/macros/texinfo/texinfo/js/build-aux/eslint.json b/macros/texinfo/texinfo/js/build-aux/eslint.json
new file mode 100644
index 0000000000..bc68ba808e
--- /dev/null
+++ b/macros/texinfo/texinfo/js/build-aux/eslint.json
@@ -0,0 +1,172 @@
+{
+ "env": { "browser": true },
+ "extends": "eslint:recommended",
+ "parserOptions": { "sourceType": "script" },
+ "rules": {
+ "accessor-pairs": "error",
+ "array-bracket-spacing": "error",
+ "array-callback-return": "error",
+ "arrow-body-style": "error",
+ "arrow-parens": ["error", "as-needed"],
+ "arrow-spacing": "error",
+ "block-spacing": "error",
+ "callback-return": "error",
+ "class-methods-use-this": "error",
+ "comma-dangle": "error",
+ "comma-spacing": "error",
+ "comma-style": "error",
+ "complexity": "error",
+ "computed-property-spacing": "error",
+ "consistent-return": "error",
+ "consistent-this": "error",
+ "curly": ["error", "multi-or-nest"],
+ "default-case": "error",
+ "dot-location": ["error", "property"],
+ "eol-last": "error",
+ "eqeqeq": "off",
+ "func-call-spacing": ["error", "always"],
+ "func-name-matching": "error",
+ "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
+ "generator-star-spacing": ["error", "both"],
+ "global-require": "error",
+ "guard-for-in": "error",
+ "handle-callback-err": "error",
+ "id-blacklist": "error",
+ "id-match": [
+ "error",
+ "^([A-Z]+(_[A-Z]+)*|[_A-Z]?[a-z\\d]+(_[a-z\\d]+)*\\$*)$",
+ { "onlyDeclarations": true }
+ ],
+ "key-spacing": "error",
+ "keyword-spacing": "error",
+ "linebreak-style": ["error", "unix"],
+ "lines-around-directive": "error",
+ "max-depth": "error",
+ "max-len": ["error", 80],
+ "max-nested-callbacks": ["error", 3],
+ "max-params": "error",
+ "max-statements": "off",
+ "max-statements-per-line": "error",
+ "new-cap": "error",
+ "new-parens": "error",
+ "newline-per-chained-call": "error",
+ "no-alert": "error",
+ "no-array-constructor": "off",
+ "no-await-in-loop": "error",
+ "no-bitwise": "error",
+ "no-caller": "error",
+ "no-catch-shadow": "error",
+ "no-compare-neg-zero": "error",
+ "no-confusing-arrow": ["error", {"allowParens": true}],
+ "no-console": "off",
+ "no-div-regex": "error",
+ "no-duplicate-imports": "error",
+ "no-empty-function": "error",
+ "no-eq-null": "error",
+ "no-eval": "error",
+ "no-extend-native": "error",
+ "no-extra-bind": "error",
+ "no-floating-decimal": "error",
+ "no-implicit-coercion": "error",
+ "no-implicit-globals": "error",
+ "no-implied-eval": "error",
+ "no-iterator": "error",
+ "no-labels": "error",
+ "no-lone-blocks": "error",
+ "no-lonely-if": "error",
+ "no-loop-func": "error",
+ "no-magic-numbers": ["error", { "ignore": [-1, 0, 1] }],
+ "no-mixed-operators": "error",
+ "no-mixed-requires": "error",
+ "no-multi-assign": "error",
+ "no-multi-spaces": "error",
+ "no-multiple-empty-lines": "error",
+ "no-native-reassign": "error",
+ "no-negated-in-lhs": "error",
+ "no-nested-ternary": "error",
+ "no-new-func": "error",
+ "no-new-object": "error",
+ "no-new-require": "error",
+ "no-new-wrappers": "error",
+ "no-octal-escape": "error",
+ "no-path-concat": "error",
+ "no-plusplus": "error",
+ "no-process-env": "error",
+ "no-process-exit": "error",
+ "no-proto": "error",
+ "no-restricted-globals": "error",
+ "no-restricted-imports": "error",
+ "no-restricted-modules": "error",
+ "no-restricted-properties": "error",
+ "no-restricted-syntax": "error",
+ "no-return-assign": "error",
+ "no-return-await": "error",
+ "no-script-url": "error",
+ "no-self-compare": "error",
+ "no-sequences": "error",
+ "no-shadow-restricted-names": "error",
+ "no-sync": "error",
+ "no-tabs": "error",
+ "no-template-curly-in-string": "error",
+ "no-throw-literal": "error",
+ "no-trailing-spaces": "error",
+ "no-undef-init": "error",
+ "no-undefined": "error",
+ "no-underscore-dangle": "error",
+ "no-unmodified-loop-condition": "error",
+ "no-unneeded-ternary": "error",
+ "no-unused-expressions": "error",
+ "no-use-before-define": "off",
+ "no-useless-call": "error",
+ "no-useless-computed-key": "error",
+ "no-useless-concat": "error",
+ "no-useless-constructor": "error",
+ "no-useless-rename": "error",
+ "no-useless-return": "error",
+ "no-void": "error",
+ "no-whitespace-before-property": "error",
+ "no-with": "error",
+ "object-curly-newline": "error",
+ "object-curly-spacing": ["error", "always"],
+ "object-property-newline": [
+ "error",
+ { "allowMultiplePropertiesPerLine": true }
+ ],
+ "object-shorthand": ["error", "never"],
+ "one-var": ["error", "never"],
+ "one-var-declaration-per-line": "error",
+ "operator-assignment": "error",
+ "operator-linebreak": [
+ "error",
+ "before",
+ { "overrides": { "=" : "after", "?": "after", ":": "after" } }
+ ],
+ "padded-blocks": ["error", "never"],
+ "prefer-numeric-literals": "error",
+ "prefer-promise-reject-errors": "error",
+ "prefer-spread": "error",
+ "quote-props": ["error", "as-needed"],
+ "quotes": ["error", "double"],
+ "radix": "error",
+ "require-await": "error",
+ "require-jsdoc": "off",
+ "rest-spread-spacing": "error",
+ "semi": "error",
+ "semi-spacing": "error",
+ "sort-imports": "error",
+ "space-before-blocks": "error",
+ "space-before-function-paren": "error",
+ "space-in-parens": ["error", "never"],
+ "space-infix-ops": "error",
+ "space-unary-ops": "error",
+ "strict": "error",
+ "symbol-description": "error",
+ "template-curly-spacing": "error",
+ "unicode-bom": "error",
+ "valid-jsdoc": "off",
+ "wrap-iife": "error",
+ "wrap-regex": "error",
+ "yield-star-spacing": ["error", { "before": true, "after": false }],
+ "yoda": "error"
+ }
+}