aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/.eslintrc
blob: 43598517599235982fec56d36a60670aa7cfa1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-we
{
    "parser": "babel-eslint",
    "parserOptions": {
        "ecmaVersion": 6,
        "sourceType": "module",
        "ecmaFeatures": {
            "jsx": true,
            "classes": true,
            "modules": true,
            "experimentalDecorators": true
        }
    },
    "env": {
        "es6": true,
        "jquery": true,
        "node": true,
        "jest": true,
        "browser": true
    },
    "plugins": ["react", "import", "prettier"],
    "extends": ["prettier"],
    "globals": {
        "Event": true,
        "window": true,
        "navigator": true,
        "System": true,
        "document": true,
        "localStorage": true,
        "sessionStorage": true,
        "Image": true,
        "requestAnimationFrame": true,
        "cancelAnimationFrame": true,
        "DEBUG": true,
        "SVGElement": true,
        "FormData": true,
        "DEV": true,
        "Blob": true,
        "XMLHttpRequest": true,
        "WebSocket": true,
        "URL": true,
        "PunchOutRegistry": true,
        "it": true,
        "describe": true
    },
    "rules": {
        "prettier/prettier": [
            "error",
            {
                "singleQuote": true,
                "jsxBracketSameLine": true,
                "tabWidth": 4
            }
        ],
        "linebreak-style": 0,
        "no-unused-vars": 2,
        "no-bitwise": 0,
        "no-eq-null": 2,
        "eqeqeq": 2,
        "no-unused-expressions": 2,
        "no-use-before-define": 2,
        "new-cap": [
            2,
            {
                "capIsNewExceptions": ["DataTable", "V"]
            }
        ],
        "no-caller": 2,
        "no-empty": 2,
        "no-undef": 2,
        "quotes": [2, "single", "avoid-escape"],
        "no-plusplus": 0,
        "no-cond-assign": [2, "except-parens"],
        "no-invalid-this": 0,
        "dot-notation": 0,
        "camelcase": [
            2,
            {
                "properties": "never"
            }
        ],
        "curly": 2,
        "semi": [2, "always"],
        "import/default": 0,
        "import/no-unresolved": 0,
        "import/no-named-as-default": 2,
        "import/no-duplicates": 0,
        "import/imports-first": 2,
        "import/export": 2,
        "react/display-name": 0,
        "react/forbid-prop-types": 0,
        "react/jsx-boolean-value": 0,
        "react/jsx-no-duplicate-props": 1,
        "react/jsx-no-literals": 0,
        "react/jsx-no-undef": 1,
        "react/jsx-sort-prop-types": 0,
        "react/jsx-sort-props": 0,
        "react/jsx-uses-react": 1,
        "react/jsx-uses-vars": 1,
        "react/no-danger": 1,
        "react/no-did-mount-set-state": 2,
        "react/no-did-update-set-state": 2,
        "react/no-direct-mutation-state": 1,
        "react/no-multi-comp": 0,
        "react/no-set-state": 0,
        "react/no-unknown-property": 1,
        "react/prop-types": 0,
        "react/react-in-jsx-scope": 1,
        "react/self-closing-comp": 1,
        "react/sort-comp": 0
    }
}