ResultadosDigitais/matrix

View on GitHub

Showing 157 of 160 total issues

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React, { useEffect } from "react";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import axios from "axios";
Severity: Minor
Found in frontend/src/morpheus/socket.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Assignment to property of function parameter 'config'.
Open

  config.currentUser.imageUrl = encodeURIComponent(config.currentUser.imageUrl);
Severity: Minor
Found in frontend/src/office-events.js by eslint

Disallow Reassignment of Function Parameters (no-param-reassign)

Assignment to variables declared as function parameters can be misleading and lead to confusing behavior, as modifying function parameters will also mutate the arguments object. Often, assignment to function parameters is unintended and indicative of a mistake or programmer error.

This rule can be also configured to fail when function parameters are modified. Side effects on parameters can cause counter-intuitive execution flow and make errors difficult to track down.

Rule Details

This rule aims to prevent unintended behavior caused by modification or reassignment of function parameters.

Examples of incorrect code for this rule:

/*eslint no-param-reassign: "error"*/

function foo(bar) {
    bar = 13;
}

function foo(bar) {
    bar++;
}

Examples of correct code for this rule:

/*eslint no-param-reassign: "error"*/

function foo(bar) {
    var baz = bar;
}

Options

This rule takes one option, an object, with a boolean property "props" and an array "ignorePropertyModificationsFor". "props" is false by default. If "props" is set to true, this rule warns against the modification of parameter properties unless they're included in "ignorePropertyModificationsFor", which is an empty array by default.

props

Examples of correct code for the default { "props": false } option:

/*eslint no-param-reassign: ["error", { "props": false }]*/

function foo(bar) {
    bar.prop = "value";
}

function foo(bar) {
    delete bar.aaa;
}

function foo(bar) {
    bar.aaa++;
}

Examples of incorrect code for the { "props": true } option:

/*eslint no-param-reassign: ["error", { "props": true }]*/

function foo(bar) {
    bar.prop = "value";
}

function foo(bar) {
    delete bar.aaa;
}

function foo(bar) {
    bar.aaa++;
}

Examples of correct code for the { "props": true } option with "ignorePropertyModificationsFor" set:

/*eslint no-param-reassign: ["error", { "props": true, "ignorePropertyModificationsFor": ["bar"] }]*/

function foo(bar) {
    bar.prop = "value";
}

function foo(bar) {
    delete bar.aaa;
}

function foo(bar) {
    bar.aaa++;
}

When Not To Use It

If you want to allow assignment to function parameters, then you can safely disable this rule.

Further Reading

Parsing error: Invalid ecmaVersion.
Open

import fs from "fs";
Severity: Minor
Found in backend/app/services/rooms.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";
Severity: Minor
Found in frontend/src/components/Select.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import auth from "./auth";
Severity: Minor
Found in frontend/src/locales/en/index.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import ptBr from "./pt-br";
Severity: Minor
Found in frontend/src/locales/index.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";
Severity: Minor
Found in frontend/src/morpheus.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";
Severity: Minor
Found in frontend/src/morpheus/Routes.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import { createStore } from "redux";
Severity: Minor
Found in frontend/src/morpheus/store/index.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import PropTypes from "prop-types";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

export { Logo } from "./logo";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";
Severity: Minor
Found in frontend/src/components/Grid.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Parsing error: Unexpected token >
Open

    <>

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import auth from "./auth";
Severity: Minor
Found in frontend/src/locales/pt-br/index.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

import React from "react";

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'react-hooks/exhaustive-deps' was not found
Open

export const ADD_ERROR = "ADD_ERROR";

For more information visit Source: http://eslint.org/docs/rules/

Severity
Category
Status
Source
Language