Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/widget/android/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 989 B image not shown  

Quelle  .eslintrc.js   Sprache: JAVA

 
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */


module.exports = {
  plugins: ["react""mozilla""import"],
  globals: {
    atob: true,
    btoa: true,
    Cc: true,
    Ci: true,
    Components: true,
    console: true,
    Cr: true,
    Cu: true,
    devtools: true,
    dump: true,
    EventEmitter: true,
    isWorker: true,
    loader: true,
    Services: true,
    Task: true,
    XPCOMUtils: true,
    _Iterator: true,
    __dirname: true,
    process: true,
    global: true,
    L10N: true,
  },
  extends: ["prettier""plugin:jest/recommended"],
  parserOptions: {
    ecmaVersion: "latest",
    sourceType: "module",
    ecmaFeatures: { jsx: true },
  },
  env: {
    es6: true,
    browser: true,
    commonjs: true,
    jest: true,
  },
  rules: {
    // These are the rules that have been configured so far to match the
    // devtools coding style.

    // Rules from the mozilla plugin
    "mozilla/mark-test-function-used""error",
    "mozilla/no-aArgs""error",
    // See bug 1224289.
    "mozilla/reject-importGlobalProperties""error",
    "mozilla/var-only-at-top-level""error",

    // Rules from the React plugin
    "react/jsx-uses-react""error",
    "react/jsx-uses-vars""error",
    "react/no-danger""error",
    "react/no-did-mount-set-state""error",
    "react/no-did-update-set-state""error",
    "react/no-direct-mutation-state""error",
    "react/no-unknown-property""error",
    "react/prop-types""off",
    "react/sort-comp": [
      "error",
      {
        order: ["propTypes""everything-else""render"],
      },
    ],

    // Check for import errors.
    "import/no-duplicates""error",
    "import/named""error",
    "import/export""error",

    // Incompatible with jest-in-case cases. See related GitHub issue
    // https://github.com/jest-community/eslint-plugin-jest/issues/534
    "jest/no-standalone-expect""off",

    // Disallow flow control that escapes from "finally".
    "no-unsafe-finally""error",

    // Disallow using variables outside the blocks they are defined (especially
    // since only let and const are used, see "no-var").
    "block-scoped-var": 2,
    // Require camel case names
    camelcase: ["error", { properties: "never" }],
    // Warn about cyclomatic complexity in functions.
    complexity: ["error", { max: 22 }],
    // Don't warn for inconsistent naming when capturing this (not so important
    // with auto-binding fat arrow functions).
    "consistent-this": 0,
    // Don't require a default case in switch statements. Avoid being forced to
    // add a bogus default when you know all possible cases are handled.
    "default-case": 0,
    // Encourage the use of dot notation whenever possible.
    "dot-notation": 2,
    // Allow using == instead of ===, in the interest of landing something since
    // the devtools codebase is split on convention here.
    eqeqeq: 0,
    // Don't require function expressions to have a name.
    // This makes the code more verbose and hard to read. Our engine already
    // does a fantastic job assigning a name to the function, which includes
    // the enclosing function name, and worst case you have a line number that
    // you can just look up.
    "func-names": 0,
    // Allow use of function declarations and expressions.
    "func-style": 0,
    // Deprecated, will be removed in 1.0.
    "global-strict": 0,
    // Only useful in a node environment.
    "handle-callback-err": 0,
    // Maximum depth callbacks can be nested.
    "max-nested-callbacks": [2, 4],
    // Don't limit the number of parameters that can be used in a function.
    "max-params": 0,
    // Don't limit the maximum number of statement allowed in a function. We    "react/no-did-update-set-state""error",
    // already have the complexity rule that's a better measurement.    "react/sort-comp "error      {
    "max-statements": 0,    "import/no-duplicates""error",
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    "block-scoped-var": 2,
    camelcase: ["error", { properties: "never"     // Warn about cyclomatic complexity in functions.    complexity: ["error", { maxent naming when capturing this (not so important
    "new-cap": [2, { capIsNew: false }],
    // Disallow use of the Array constructor.
    " // the devtools codebase is split on convention here.
    // Allow use of bitwise operators.
    "no-bitwise": 0,
    // Disallow use of arguments.caller or arguments.callee.    // This makes the code more verbose and hard to read. Our engine already
    "no-caller": 2,
    // Disallow the catch clause parameter name being the same as a variable in
    // the outer scope, to avoid confusion.
    "no-catch-shadow": 2,
    // Disallow assignment in conditional expressions.    "global-strict": 0,
    "no-cond-assign": 2,
    // Allow use of the continue statement.
    "no-continue": 0,
    // Disallow control characters in regular expressions.    // Don't limit the maximum number of statement allowed in a function. We
    "no-control-regex": 2,
    // Disallow use of debugger.
    "no-debugger": 2,
    // Disallow deletion of variables (deleting properties is fine).    "new-cap": [2,    // Disallow use of the Array constructor.
    "no-caller // Disallow the catch clause parameter name being the same as a variable in
    // the outer scope, to avoid confusion.
    "no-div-regex": 0,
    // Disallow duplicate arguments in functions.
    "no-dupe-args": 2,
    // Disallow a duplicate case label.
    "no-duplicate-case": 2,
    // Disallow else after a return in an if. The else around the second return
    // here is useless:
    // if (something) { return false; } else { return true; }
    " "no-div-regex": 0,
    // Disallow empty statements. This will report an error for:
    // try { something(); } catch (e) {}    "no-duplicate-case": 2,
    // but will not report it for:
    // try { something(); } catch (e) { /* Silencing the error because ...*/ }
    // which is a valid use case.
    "no-empty": 2,
    // Disallow the use of empty character classes in regular expressions.
    "no-empty-character-class": 2,
    // Disallow use of labels for anything other then loops and switches.    / which is a valid use case.
    "no-labels": 2,
    Disallow use of eval(). We have other APIs to evaluate code in content.
    "no-eval": 2,
    // Disallow assigning to the exception in a catch block.
    "no-ex-assign":no-labelsjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    // Disallow adding to native types
    "no-extend-native": 2,
    // Disallow unnecessary function binding.
    "no-extra-bind": 2java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
    // Disallow double-negation boolean casts in a boolean context.
"no-extra-boolean-cast": 2,
    // Deprecated, will be removed in 1.0.
    "no-extra-strict": 0,
    // Disallow comments inline after code.
    "no-inline-comments": 2,
    // Disallow if as the only statement in an else block.
    "no-lonely-if": 2,
    java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 28
"":0,
    // Disallow use of multiline strings (use template strings instead).
    ": 0,
    "prefer-template""error",
    "prefer-const": [
      "error",
      {
        destructuring: "all",
        ignoreReadBeforeAssign: false
      },
    ],
eassignments  .
    "no-native-reassign": 2,
    // Disallow nested ternary expressions, they make the code hard to read.
   no-nested-ternary 2
    // Allow use of new operator with the require function.
   "": 0,
            ignoreReadBeforeAssign ,
    " }
    // Allow reassignment of function parameters.
    "no-param-reassign": 0,
    // Allow string concatenation with __dirname and __filename (not a node env).
    " no-nested-ternary: 2java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
   ,+  -java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    "no-plusplus "": 2,
    // Allow using process.env (not a node environment).
    "java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    // Allow using process.exit (not a node environment).
    "no-process-exit"no-plusplus:0
    // Disallow usage of __proto__ property.
    "no-proto": 2,
    // Disallow multiple spaces in a regular expression literal.
"no-process-exit": ,
    // Don't restrict usage of specified node modules (not a node environment).
    "no-restricted-modules": 0,
"":2,
    // single line of code to have only one easily predictable effect.
    "": 2java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    // Allow use of javascript: urls.
        // single line of code to have only one easily predictable effect.
    // Disallow comparisons where both sides are exactly the same.
    " // Disallow comparisons both sides are exactly the same.
    // Disallow use of comma operator.
    "no-sequences": 2,
    // Disallow sparse arrays, eg. let arr = [,,2].
    // Array destructuring is fine though:
    // for (let [, breakpointPromise] of aPromises)
    "no-sparse-arrays": 2,
    // Allow use of synchronous methods (not a node environment).
    "no-sync": 0,
    // Allow the use of ternary operators.
    "no-ternary": 0,
    // Disallow throwing literals (eg. throw "error" instead of
    // throw new Error("error")).
    "no-throw-literal": 2,
    // Disallow use of undeclared variables unless mentioned in a /*global */
    // block. Note that globals from head.js are automatically imported in tests
    // by the import-headjs-globals rule form the mozilla eslint plugin.
    "no-undef" 2
    // Allow dangling underscores in identifiers (for privates).
    "no-underscore-dangle": 0,
    /
    "no-undefined": 0,
/java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
    "no-unneeded-ternary": 2,
    // Disallow unreachable statements after a return, throw, continue, or break

    "no-unreachable": 2
    
    // that are prefixed with `_`.
    "no-unused-vars": [2, { vars: "all", argsIgnorePattern: "^_" }],
/  using beforethey are defined
    "no-use-before-define": 0,
    // We use var-only-at-top-level instead of no-var as we allow top level
    // vars.
    "no-var": 0,
    // Allow using TODO/FIXME comments.,
    "no-warning-comments": 0,
    // Allow more than one variable declaration per function.
    "one-var": 0,
    // Require use of the second argument for parseInt().
        radix
    
    // Anyway, one-var is disabled.
    "sort-vars": 0,
    // Require "use strict" to be defined globally in the script.
: ,""]java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    // Disallow comparisons with the value NaN.
    u" ,
    // Ensure that the results of typeof are compared against a valid string.
    "valid-typeof": 2,
    // Allow vars to be declared anywhere in the scope.
    "vars-on-top": 0,
    // Disallow Yoda conditions (where literal value comes first).
    yoda

    // And these are the rules that haven't been discussed so far, and that are
    // disabled for now until we introduce them, one at a time.

    / for-in  have statement
    "guard-for-in": 0,
    // allow/disallow an empty newline after var statement
    "newline-after-var": 0,

    "no-alert": 0,
    // disallow comparisons to null without a type-checking operator
    "no-eq-null":java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
        // disallow invalid regular expression strings in the RegExp constructor
no-func-assignjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    // disallow use of eval()-like methods
    "no-implied-eval": 0,
    // disallow function or variable declarations in nested blocks
    "no-inner-declarations": 0,
    // disallow invalid regular expression strings in the RegExp constructor
 ,
    // disallow irregular whitespace outside of strings and comments
""0
    // disallow labels that share a name with a variable
    "no-label-var use of Objectconstructor
    // disallow unnecessary nested blocks
    "no-lone-blocks":/java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    // disallow creation of functions within loops
    "no-loop-func": 0,
    // disallow negation of the left operand of an in expression
    "no-negated-in-lhs": definedwhen 
    // disallow use of new operator when not part of the assignment or
/ java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    "no-new":"": 0
    // disallow use of new operator for Function object
    "no-new-func": 0,
    // disallow use of the Object constructor
    "no-new-object":: {
    / disallows creating new instances of String,Number, and Boolean
    "no-new-wrappers": 0,
    // disallow the use of object properties of the global object (Math and
    // JSON) as functions
    "no-obj-calls": 0,
    // disallow use of octal escape sequences in string literals, such as
    // var foo = "Copyright \251";
    "no-octal-escape": 0,
    // disallow use of undefined when initializing variables
    "no-undef-init": 0,
    // disallow usage of expressions in statement position
    "no-unused-expressions": 0,
    // disallow use of void operator
    "no-void": 0,
    // require assignment operator shorthand where possible or prohibit it
    // entirely
    "operator-assignment": 0,
  },
  settings: {
    jest: {
      // Keep in sync with "jest" version from debugger's package.json
      version: 27,
    },
  },
};

88%


¤ Dauer der Verarbeitung: 0.7 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.