/* 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 = { // When adding items to this file please check for effects on sub-directories.
plugins: ["import", "react", "jsx-a11y"],
settings: {
react: {
version: "16.2.0",
},
}, extends: ["plugin:jsx-a11y/recommended"],
overrides: [
{ // TODO: Bug 1773467 - Move these to .mjs or figure out a generic way // to identify these as modules.
files: ["tests/unit/**/*.js"],
parserOptions: {
sourceType: "module",
},
},
{
files: ["bin/**", "content-src/**", "tests/unit/**"],
env: {
node: true,
},
},
{ // Use a configuration that's appropriate for modules, workers and // non-production files.
files: ["tests/**", "modules/**"],
rules: { "no-implicit-globals": "off",
},
},
{
files: ["content-src/**", "tests/unit/**"],
rules: { // Disallow commonjs in these directories. "import/no-commonjs": 2,
},
},
{ // These tests simulate the browser environment.
files: "tests/unit/**",
env: {
browser: true,
mocha: true,
},
globals: { assert: true,
expect: true,
chai: true,
sinon: true,
},
},
{
files: "tests/**",
rules: { "func-name-matching": 0, "lines-between-class-members": 0,
},
},
],
rules: { "react/jsx-boolean-value": ["error", "always"], "react/jsx-key": "error", "react/jsx-no-bind": [ "error",
{ allowArrowFunctions: true, allowFunctions: true },
], "react/jsx-no-comment-textnodes": "error", "react/jsx-no-duplicate-props": "error", "react/jsx-no-target-blank": "error", "react/jsx-no-undef": "error", "react/jsx-pascal-case": "error", "react/jsx-uses-react": "error", "react/jsx-uses-vars": "error", "react/no-access-state-in-setstate": "error", "react/no-danger": "error", "react/no-deprecated": "error", "react/no-did-mount-set-state": "error", "react/no-did-update-set-state": "error", "react/no-direct-mutation-state": "error", "react/no-is-mounted": "error", "react/no-unknown-property": "error", "react/require-render-return": "error",
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 und die Messung sind noch experimentell.