Siggg/culottes

View on GitHub
src/app/revolution/revolution.component.ts

Summary

Maintainability
D
2 days
Test Coverage

Function ngOnInit has 128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async ngOnInit() {
    // console.log("OnInit: " + this.web3Service);
    // console.log(this);
    this.getAddress();
    this.otherRevolutions = this.web3Service.revolutions;
Severity: Major
Found in src/app/revolution/revolution.component.ts - About 5 hrs to fix

    Function ngOnInit has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
    Open

      async ngOnInit() {
        // console.log("OnInit: " + this.web3Service);
        // console.log(this);
        this.getAddress();
        this.otherRevolutions = this.web3Service.revolutions;
    Severity: Minor
    Found in src/app/revolution/revolution.component.ts - About 4 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    File revolution.component.ts has 357 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { Component, OnInit } from "@angular/core";
    import { Web3Service } from "../util/web3.service";
    import { Router, ActivatedRoute } from '@angular/router';
    
    declare let require: any;
    Severity: Minor
    Found in src/app/revolution/revolution.component.ts - About 4 hrs to fix

      Function loadOtherRevolutionsThenCitizens has 108 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        private async loadOtherRevolutionsThenCitizens() {
          this.revolutionOwner = await this.revolutionContract.owner();
          console.log("Revolution owner: ", this.revolutionOwner);
          console.log("Getting other revolutions from this factory");
          this.factoryAddress = await this.revolutionContract.factory();
      Severity: Major
      Found in src/app/revolution/revolution.component.ts - About 4 hrs to fix

        Function loadOtherRevolutionsThenCitizens has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
        Open

          private async loadOtherRevolutionsThenCitizens() {
            this.revolutionOwner = await this.revolutionContract.owner();
            console.log("Revolution owner: ", this.revolutionOwner);
            console.log("Getting other revolutions from this factory");
            this.factoryAddress = await this.revolutionContract.factory();
        Severity: Minor
        Found in src/app/revolution/revolution.component.ts - About 2 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        TODO found
        Open

              // TODO : figure out a way for web3 to work properly in e2e protractor tests

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

                if (hashtag == null || hashtag.length == 0) {
                  hashtag = "#CulottesRevolution";
                  this.hashtagWithoutSymbol = "CulottesRevolution";
                } else if (hashtag[0] != '#') {
                    this.hashtagWithoutSymbol = hashtag;
        Severity: Major
        Found in src/app/revolution/revolution.component.ts and 1 other location - About 1 hr to fix
        src/app/citizen/citizen.component.ts on lines 88..95

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 61.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Type number trivially inferred from a number literal, remove type annotation
        Open

          distributionBlockPeriod: number = 0;

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

          public onRevolutionChange(event): void {  

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        space indentation expected
        Open

                console.log("redirect failed: ", err);

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Forbidden 'var' keyword, use 'let' or 'const' instead
        Open

            var ra = "";

        Rule: no-var-keyword

        Disallows usage of the var keyword.

        Use let or const instead.

        Rationale

        Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

        Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

        Notes
        • Has Fix

        Config

        Not configurable.

        Examples
        "no-var-keyword": true

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        space indentation expected
        Open

            console.log("lock error with receipt: ", receipt);

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Forbidden 'var' keyword, use 'let' or 'const' instead
        Open

                var seconds = blocks * 15; // about 15 seconds per block

        Rule: no-var-keyword

        Disallows usage of the var keyword.

        Use let or const instead.

        Rationale

        Declaring variables using var has several edge case behaviors that make var unsuitable for modern code. Variables declared by var have their parent function block as their scope, ignoring other control flow statements. vars have declaration "hoisting" (similar to functions) and can appear to be used before declaration.

        Variables declared by const and let instead have as their scope the block in which they are defined, and are not allowed to used before declaration or be re-declared with another const or let.

        Notes
        • Has Fix

        Config

        Not configurable.

        Examples
        "no-var-keyword": true

        For more information see this page.

        Type number trivially inferred from a number literal, remove type annotation
        Open

          distributionPeriod: number = 0;

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        space indentation expected
        Open

                  /* this

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

          fullAddressShown: boolean = false;

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Type number trivially inferred from a number literal, remove type annotation
        Open

          distributionAmount: number = 0;

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

          getAddress(): void { 

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        unused expression, expected an assignment or function call
        Open

                console.error;

        Rule: no-unused-expression

        Disallows unused expression statements.

        Unused expressions are expression statements which are not assignments or function calls (and thus usually no-ops).

        Rationale

        Detects potential errors where an assignment or function call was intended.

        Config

        Three arguments may be optionally provided:

        • allow-fast-null-checks allows to use logical operators to perform fast null checks and perform method or function calls for side effects (e.g. e && e.preventDefault()).
        • allow-new allows 'new' expressions for side effects (e.g. new ModifyGlobalState();.
        • allow-tagged-template allows tagged templates for side effects (e.g. this.add\foo`;`.
        Examples
        "no-unused-expression": true
        "no-unused-expression": true,allow-fast-null-checks
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-fast-null-checks",
              "allow-new",
              "allow-tagged-template"
            ]
          },
          "minLength": 0,
          "maxLength": 3
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

          loadingRevolutions: boolean = true;

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

          canLockRevolution: boolean = false;

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

                  this.hashtagWithoutSymbol = "CulottesRevolution";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "weeks";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("redirect to: /revolution/" + revolutionAddress);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("factoryAddress: ", this.factoryAddress);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Getting citzens");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        == should be ===
        Open

              if (this.revolutionOwner == this.account || this.factoryOwner == this.account) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        missing whitespace
        Open

              .on('receipt', function(receipt){

        Rule: one-line

        Requires the specified tokens to be on the same line as the expression preceding them.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "check-catch" checks that catch is on the same line as the closing brace for try.
        • "check-finally" checks that finally is on the same line as the closing brace for catch.
        • "check-else" checks that else is on the same line as the closing brace for if.
        • "check-open-brace" checks that an open brace falls on the same line as its preceding expression.
        • "check-whitespace" checks preceding whitespace for the specified tokens.
        Examples
        "one-line": true,check-catch,check-finally,check-else
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "check-catch",
              "check-finally",
              "check-else",
              "check-open-brace",
              "check-whitespace"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          title: String = "<loading title>";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          distributionPeriodUnit: String = "?";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          web3Status: String = "Status of connection to your blockchain accounts";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    .next("Revolution ready.");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    .formatUnits(result, "ether");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "seconds";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            var ra = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        missing whitespace
        Open

            this.citizensLoaderActivity="";

        Rule: whitespace

        Enforces whitespace style conventions.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Notes
        • Has Fix

        Config

        Several arguments may be optionally provided:

        • "check-branch" checks branching statements (if/else/for/while) are followed by whitespace.
        • "check-decl"checks that variable declarations have whitespace around the equals token.
        • "check-operator" checks for whitespace around operator tokens.
        • "check-module" checks for whitespace in import & export statements.
        • "check-separator" checks for whitespace after separator tokens (,/;).
        • "check-rest-spread" checks that there is no whitespace after rest/spread operator (...).
        • "check-type" checks for whitespace before a variable type specification.
        • "check-typecast" checks for whitespace between a typecast and its target.
        • "check-type-operator" checks for whitespace between type operators | and &.
        • "check-preblock" checks for whitespace before the opening brace of a block.
        • "check-postbrace" checks for whitespace after an opening brace.
        Examples
        "whitespace": true,check-branch,check-operator,check-typecast
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "check-branch",
              "check-decl",
              "check-operator",
              "check-module",
              "check-separator",
              "check-rest-spread",
              "check-type",
              "check-typecast",
              "check-type-operator",
              "check-preblock",
              "check-postbrace"
            ]
          },
          "minLength": 0,
          "maxLength": 11
        }

        For more information see this page.

        Identifier 'seconds' is never reassigned; use 'const' instead of 'var'.
        Open

                var seconds = blocks * 15; // about 15 seconds per block

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

          criteria: String = "<loading criteria>";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    .next("The balance of this bastille is null !");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                      console.log("Could read name from contract: ", e);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                      .next("An error occured while reading trialStatus of citizen #" + i.toString() + " : " + error);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Missing semicolon
        Open

          revolutionContract

        Rule: semicolon

        Enforces consistent semicolon usage at the end of every statement.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • "always" enforces semicolons at the end of every statement.
        • "never" disallows semicolons at the end of every statement except for when they are necessary.

        The following arguments may be optionally provided:

        • "ignore-interfaces" skips checking semicolons at the end of interface members.
        • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
        • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
        Examples
        "semicolon": true,always
        "semicolon": true,never
        "semicolon": true,always,ignore-interfaces
        "semicolon": true,always,ignore-bound-class-methods
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "always",
                "never"
              ]
            },
            {
              "type": "string",
              "enum": [
                "ignore-interfaces"
              ]
            }
          ],
          "additionalItems": false
        }

        For more information see this page.

        Identifier 'otherLocked' is never reassigned; use 'const' instead of 'let'.
        Open

              let otherLocked = await otherRevolutionContract.locked();

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        Identifier 'factoryContract' is never reassigned; use 'const' instead of 'let'.
        Open

            let factoryContract = await this

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

        const revolutionContractABI = require("../../../build/contracts/Revolution.json");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  hashtag = "#CulottesRevolution";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Tried locking revolution");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        != should be !==
        Open

                } else if (hashtag[0] != '#') {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

        import { Web3Service } from "../util/web3.service";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  return "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "days";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

              this.web3ModalActivity = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            if (ra != "" && ra != null) {

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

              console.log("factoryAddress is null !");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

              this.factoryAddress = "0x598Bbb5819E8349Eb4D06D4f5aF149444aD8a11D";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                      .next("An error occured while reading trialStatus of citizen #" + i.toString() + " : " + error);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("criteria: ", this.criteria);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  return "active";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

              this.web3ModalActivity = "active";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Revolution owner: ", this.revolutionOwner);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Getting other revolutions from this factory");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            let revolutionHashtag = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        != should be !==
        Open

            if (this.account != undefined) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        missing whitespace
        Open

            this.citizensLoaderActivity="";

        Rule: whitespace

        Enforces whitespace style conventions.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Notes
        • Has Fix

        Config

        Several arguments may be optionally provided:

        • "check-branch" checks branching statements (if/else/for/while) are followed by whitespace.
        • "check-decl"checks that variable declarations have whitespace around the equals token.
        • "check-operator" checks for whitespace around operator tokens.
        • "check-module" checks for whitespace in import & export statements.
        • "check-separator" checks for whitespace after separator tokens (,/;).
        • "check-rest-spread" checks that there is no whitespace after rest/spread operator (...).
        • "check-type" checks for whitespace before a variable type specification.
        • "check-typecast" checks for whitespace between a typecast and its target.
        • "check-type-operator" checks for whitespace between type operators | and &.
        • "check-preblock" checks for whitespace before the opening brace of a block.
        • "check-postbrace" checks for whitespace after an opening brace.
        Examples
        "whitespace": true,check-branch,check-operator,check-typecast
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "check-branch",
              "check-decl",
              "check-operator",
              "check-module",
              "check-separator",
              "check-rest-spread",
              "check-type",
              "check-typecast",
              "check-type-operator",
              "check-preblock",
              "check-postbrace"
            ]
          },
          "minLength": 0,
          "maxLength": 11
        }

        For more information see this page.

        missing whitespace
        Open

              .on('error', function(error, receipt){

        Rule: one-line

        Requires the specified tokens to be on the same line as the expression preceding them.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "check-catch" checks that catch is on the same line as the closing brace for try.
        • "check-finally" checks that finally is on the same line as the closing brace for catch.
        • "check-else" checks that else is on the same line as the closing brace for if.
        • "check-open-brace" checks that an open brace falls on the same line as its preceding expression.
        • "check-whitespace" checks preceding whitespace for the specified tokens.
        Examples
        "one-line": true,check-catch,check-finally,check-else
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "check-catch",
              "check-finally",
              "check-else",
              "check-open-brace",
              "check-whitespace"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          revolutionBlockchain: String = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "hours";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    console.log("redirect succeeded: ", nav);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

              console.log("read citizen: ", citizenAddress);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        == should be ===
        Open

              if (this.revolutionOwner == this.account || this.factoryOwner == this.account) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

          lockModalActivity: String = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                this.web3ModalActivity = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Identifier 'otherRevolutionContract' is never reassigned; use 'const' instead of 'let'.
        Open

              let otherRevolutionContract = await this

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

          hashtagWithoutSymbol: String = "<loading hashtag>";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("lock error with receipt: ", receipt);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            let citizenAddress = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    console.log("error: ", error);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        == should be ===
        Open

                if (locked == true) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        != should be !==
        Open

            if (ra != "" && ra != null) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        trailing whitespace
        Open

          

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        " should be '
        Open

          revolutionAddress: String = "0x0000000...";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                this.web3ModalActivity = "active";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Missing semicolon
        Open

           privilegedScale: number

        Rule: semicolon

        Enforces consistent semicolon usage at the end of every statement.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • "always" enforces semicolons at the end of every statement.
        • "never" disallows semicolons at the end of every statement except for when they are necessary.

        The following arguments may be optionally provided:

        • "ignore-interfaces" skips checking semicolons at the end of interface members.
        • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
        • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
        Examples
        "semicolon": true,always
        "semicolon": true,never
        "semicolon": true,always,ignore-interfaces
        "semicolon": true,always,ignore-bound-class-methods
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "always",
                "never"
              ]
            },
            {
              "type": "string",
              "enum": [
                "ignore-interfaces"
              ]
            }
          ],
          "additionalItems": false
        }

        For more information see this page.

        != should be !==
        Open

              if (citizenAddress != "" && citizenAddress != null) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

        import { Component, OnInit } from "@angular/core";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          templateUrl: "./revolution.component.html",

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          styleUrls: ["./revolution.component.css"]

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            if (revolutionAddress == "menu") {

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    .next("An error occured while reading citizen " + i.toString() + " : " + error);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        == should be ===
        Open

                if (hashtag == null || hashtag.length == 0) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        == should be ===
        Open

                if (otherLocked != true || otherBalance.isZero() == false) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "months";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            this.lockModalActivity = "";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          selector: "app-revolution",

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          web3ModalActivity: String = "active";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "minutes";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Trying to lock revolution");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    .next("An error occured while reading citizen " + i.toString() + " : " + error);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        != should be !==
        Open

                if (otherLocked != true || otherBalance.isZero() == false) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        missing whitespace
        Open

                    } catch(e) {

        Rule: whitespace

        Enforces whitespace style conventions.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Notes
        • Has Fix

        Config

        Several arguments may be optionally provided:

        • "check-branch" checks branching statements (if/else/for/while) are followed by whitespace.
        • "check-decl"checks that variable declarations have whitespace around the equals token.
        • "check-operator" checks for whitespace around operator tokens.
        • "check-module" checks for whitespace in import & export statements.
        • "check-separator" checks for whitespace after separator tokens (,/;).
        • "check-rest-spread" checks that there is no whitespace after rest/spread operator (...).
        • "check-type" checks for whitespace before a variable type specification.
        • "check-typecast" checks for whitespace between a typecast and its target.
        • "check-type-operator" checks for whitespace between type operators | and &.
        • "check-preblock" checks for whitespace before the opening brace of a block.
        • "check-postbrace" checks for whitespace after an opening brace.
        Examples
        "whitespace": true,check-branch,check-operator,check-typecast
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "check-branch",
              "check-decl",
              "check-operator",
              "check-module",
              "check-separator",
              "check-rest-spread",
              "check-type",
              "check-typecast",
              "check-type-operator",
              "check-preblock",
              "check-postbrace"
            ]
          },
          "minLength": 0,
          "maxLength": 11
        }

        For more information see this page.

        " should be '
        Open

          hashtag: String = "<loading hashtag>";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  .next("An error occured while reading bastille balance: " + error);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                  this.distributionPeriodUnit = "years";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                console.log("redirect failed: ", err);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Closing lock modal");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Got factoryContract");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

              if (citizenAddress != "" && citizenAddress != null) {

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    console.log("citizen result: ", result);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        == should be ===
        Open

            if (revolutionAddress == "menu") {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        != should be !==
        Open

                if (citizen != undefined) {

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Identifier 'otherBalance' is never reassigned; use 'const' instead of 'let'.
        Open

                let otherBalance = await otherRevolutionContract.bastilleBalance();

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

          bastilleBalance: String = "?";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

          citizensLoaderActivity: String = "active";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                    .formatUnits(result, "ether");

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("account, revolutionOwner, factoryOwner: ", this.account, this.revolutionOwner, this.factoryOwner);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("Factory owner: ", this.factoryOwner);

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            this.citizensLoaderActivity="";

        Rule: quotemark

        Enforces quote character for string literals.

        Notes
        • Has Fix

        Config

        Five arguments may be optionally provided:

        • "single" enforces single quotes.
        • "double" enforces double quotes.
        • "backtick" enforces backticks.
        • "jsx-single" enforces single quotes for JSX attributes.
        • "jsx-double" enforces double quotes for JSX attributes.
        • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
        • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
        Examples
        "quotemark": true,single,avoid-escape,avoid-template
        "quotemark": true,single,jsx-double
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "single",
              "double",
              "backtick",
              "jsx-single",
              "jsx-double",
              "avoid-escape",
              "avoid-template"
            ]
          },
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        There are no issues that match your filters.

        Category
        Status