codeclimate validate-config
WARNING: 'engines' has been deprecated, please use 'plugins' instead
WARNING: 'exclude_paths' has been deprecated, please use 'exclude_patterns' instead
WARNING: 'ratings' has been deprecated, and will not be used
|
/usr/src/app/lib/validate_config.js:17
throw e;
^
YAMLException: Cannot read config file: /code/.eslintrc
Error: duplicated mapping key at line 196, column 37:
no-extra-parens: 2 # disallow wrapping of non-IIFE ...
^
at generateError (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:162:10)
at throwError (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:168:9)
at storeMappingPair (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:305:7)
at readBlockMapping (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1066:9)
at composeNode (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1327:12)
at readBlockMapping (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1057:11)
at composeNode (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1327:12)
at readDocument (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1489:3)
at loadDocuments (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1545:5)
at load (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1562:19) {
reason: 'duplicated mapping key',
mark: Mark {
name: null,
buffer: "# extends: 'eslint:recommended'\n" +
'\n' +
'root: true\n' +
'\n' +
'env:\n' +
'\n' +
' ###########################################################################\n' +
' # #\n' +
' # ENVIRONMENT: if you write code that will be executed in one of the #\n' +
' # following environments, the value for that environment should be #\n' +
' # set to true. #\n' +
' # #\n' +
' ###########################################################################\n' +
'\n' +
' browser: false\n' +
' es6: false\n' +
' node: true\n' +
'\n' +
'ecmaFeatures:\n' +
' #modules: true\n' +
' #blockBindings: true\n' +
'\n' +
'globals:\n' +
'\n' +
' ###########################################################################\n' +
' # #\n' +
' # GLOBALS: ESLint will assume the following variables are declared #\n' +
' # globally; other variables will require explicit declaration. #\n' +
' # #\n' +
' ###########################################################################\n' +
'\n' +
' require: true\n' +
'\n' +
'rules:\n' +
'\n' +
' ###########################################################################\n' +
' # #\n' +
' # POSSIBLE ERRORS: these rules point out areas where you might have #\n' +
' # made mistakes. #\n' +
' # #\n' +
' ###########################################################################\n' +
'\n' +
' no-console: 0 # disallow use of console\n' +
' comma-dangle: 2 # disallow trailing commas in object literals\n' +
' no-cond-assign: 2 # disallow assignment in conditional expressions\n' +
' no-constant-condition: 2 # disallow use of constant expressions in conditions\n' +
' no-control-regex: 2 # disallow control characters in regular expressions\n' +
' no-debugger: 2 # disallow use of debugger\n' +
' no-dupe-args: 2 # disallow duplicate arguments in functions\n' +
' no-dupe-keys: 2 # disallow duplicate keys when creating object literals\n' +
' no-duplicate-case: 2 # disallow a duplicate case label\n' +
' no-empty-character-class: 2 # disallow the use of empty character classes in regular expressions\n' +
' no-empty: 2 # disallow empty statements\n' +
' no-ex-assign: 2 # disallow assigning to the exception in a catch block\n' +
' no-extra-boolean-cast: 2 # disallow double-negation boolean casts in a boolean context\n' +
' no-extra-parens: 1 # disallow unnecessary parentheses\n' +
' no-extra-semi: 2 # disallow unnecessary semicolons\n' +
' no-func-assign: 2 # disallow overwriting functions written as function declarations\n' +
' no-inner-declarations: 2 # disallow function or variable declarations in nested blocks\n' +
' no-invalid-regexp: 2 # disallow invalid regular expression strings in the RegExp constructor\n' +
' no-irregular-whitespace: 2 # disallow irregular whitespace outside of strings and comments\n' +
' no-negated-in-lhs: 2 # disallow negation of the left operand of an in expression\n' +
' no-obj-calls: 2 # disallow the use of object properties of the global object (Math and JSON) as functions\n' +
' no-regex-spaces: 1 # disallow multiple spaces in a regular expression literal\n' +
' no-sparse-arrays: 2 # disallow sparse arrays\n' +
' no-unreachable: 2 # disallow unreachable statements after a return, throw, continue, or break statement\n' +
' use-isnan: 2 # disallow comparisons with the value NaN\n' +
' valid-jsdoc: [2, { "requireReturn": false }] # ensure JSDoc comments are valid, returns optional in void functions\n' +
' valid-typeof: 2 # ensure that the results of typeof are compared against a valid string\n' +
' no-unexpected-multiline: 2 # Avoid code that looks like two expressions but is actually one\n' +
'\n' +
' ###########################################################################\n' +
' # #\n' +
' # BEST PRACTICES: these rules are designed to prevent you from making #\n' +
' # mistakes. They either prescribe a better way of doing something or #\n' +
' # help you avoid pitfalls. #\n' +
' # #\n' +
' ###########################################################################\n' +
'\n' +
' block-scoped-var: 2 # treat var statements as if they were block scoped\n' +
' complexity: [1, 9] # specify the maximum cyclomatic complexity allowed in a program\n' +
' consistent-return: 1 # require return statements to either always or never specify values\n' +
' curly: 0 # specify curly brace conventions for all control statements\n' +
' default-case: 1 # require default case in switch statements\n' +
' dot-notation: 1 # encourages use of dot notation whenever possible\n' +
' eqeqeq: [2, "smart"] # require the use of === and !==\n' +
' guard-for-in: 1 # make sure for-in loops have an if statement\n' +
' no-alert: 2 # disallow the use of alert, confirm, and prompt\n' +
' no-caller: 2 # disallow use of arguments.caller or arguments.callee\n' +
' no-div-regex: 2 # disallow division operators explicitly at beginning of regular expression\n' +
' no-else-return: 1 # disallow else after a return in an if\n' +
' no-empty-label: 2 # disallow use of labels for anything other then loops and switches\n' +
' no-eq-null: 0 # disallow comparisons to null without a type-checking operator\n' +
' no-eval: 2 # disallow use of eval()\n' +
' no-extend-native: 2 # disallow adding to native types\n' +
' no-extra-bind: 2 # disallow unnecessary function binding\n' +
' no-fallthrough: 2 # disallow fallthrough of case statements\n' +
' no-floating-decimal: 2 # disallow the use of leading or trailing decimal points in numeric literals\n' +
' no-implied-eval: 2 # disallow use of eval()-like methods\n' +
' no-iterator: 2 # disallow usage of __iterator__ property\n' +
' no-labels: 2 # disallow use of labeled statements\n' +
' no-lone-blocks: 2 # disallow unnecessary nested blocks\n' +
' no-loop-func: 2 # disallow creation of functions within loops\n' +
' #no-multi-spaces: 0 # disallow use of multiple spaces\n' +
' no-multi-str: 2 # disallow use of multiline strings\n' +
' no-native-reassign: 2 # disallow reassignments of native objects\n' +
' no-new: 2 # disallow use of new operator when not part of the assignment or comparison\n' +
' no-new-func: 2 # disallow use of new operator for Function object\n' +
' no-new-wrappers: 2 # disallows creating new instances of String,Number, and Boolean\n' +
' no-octal: 2 # disallow use of octal literals\n' +
' no-octal-escape: 2 # disallow use of octal escape sequences in string literals\n' +
' no-proto: 2 # disallow usage of __proto__ property\n' +
' no-redeclare: 2 # disallow declaring the same variable more then once\n' +
' no-return-assign: 2 # disallow use of assignment in return statement\n' +
' no-script-url: 2 # disallow use of javascript urls.\n' +
' no-self-compare: 2 # disallow comparisons where both sides are exactly the same\n' +
' no-sequences: 2 # disallow use of comma operator\n' +
' no-unused-expressions: 1 # disallow usage of expressions in statement position\n' +
' no-void: 2 # disallow use of void operator\n' +
' no-warning-comments: 0 # disallow usage of configurable warning terms in comments\n' +
' no-with: 2 # disallow use of the with statement\n' +
' radix: 2 # require use of the second argument for parseInt()\n' +
' wrap-iife: [2, "inside"] # require immediate function invocation to be wrapped in parentheses\n' +
' yoda: [2, "never"] # require or disallow Yoda conditions\n' +
'\n' +
' ###########################################################################\n' +
' # #\n' +
' # STRICT MODE: these rules relate to using strict mode. #\n' +
' # #\n' +
' ###########################################################################\n' +
'\n' +
' #strict: [2, "global"] # require run in strict mode\n' +
' #strict: 2 # require strict mode\n' +
'\n' +
' ###########################################################################\n' +
' # #\n' +
' # VARIABLES: these rules have to do with variable declarations. #\n' +
' # #\n' +
' ###########################################################################\n' +
'\n' +
' no-catch-shadow: 2 # disallow the catch clause parameter name being the same as a variable in the outer scope\n' +
' no-delete-var: 2 # disallow deletion of variables\n' +
' no-label-var: 2 # disallow labels that share a name with a variable\n' +
' no-shadow: 2 # disallow declaration of variables already declared in the outer scope\n' +
' no-shadow-restricted-names: 2 # disallow shadowing of names such as arguments\n' +
' no-undef: 2 # disallow use of undeclared variables unless mentioned in a block\n' +
' no-undef-init: 1 # disallow use of undefined when initializing variables\n' +
' no-undefined: 2 # disallow use of undefined variable\n' +
' no-unused-'... 4703 more characters,
position: 13527,
line: 195,
column: 36
}
}
Node.js v17.3.0
|