sonarqube/server/sonar-web/.eslintrc

190 lines
4.9 KiB
Plaintext

{
"extends": [
"eslint:recommended"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"globals": {
"baseUrl": true,
"SyntheticInputEvent": true
},
"parser": "babel-eslint",
"plugins": [
"import",
"jsx-a11y",
"flowtype",
"react"
],
"rules": {
"array-bracket-spacing": 2,
"array-callback-return": 2,
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"block-scoped-var": 2,
"block-spacing": 2,
"brace-style": 2,
"comma-dangle": [2, "never"],
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": 2,
"consistent-this": [2, "that"],
"curly": 2,
"dot-location": [2, "property"],
"eol-last": 2,
"eqeqeq": [2, "smart"],
"func-call-spacing": 2,
"func-name-matching": 2,
"func-names": [2, "never"],
"generator-star-spacing": 2,
"jsx-quotes": 2,
"key-spacing": 2,
"keyword-spacing": 2,
"max-len": [2, 100],
"new-parens": 2,
"no-lonely-if": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [2, { "max": 2 }],
"no-self-compare": 2,
"no-template-curly-in-string": 2,
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"no-unsafe-negation": 2,
"no-useless-computed-key": 2,
"no-useless-rename": 2,
"no-var": 2,
"no-whitespace-before-property": 2,
"object-curly-spacing": [2, "always"],
"object-shorthand": 2,
"one-var": [2, "never"],
"operator-assignment": 2,
"padded-blocks": [2, "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-spread": 2,
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"rest-spread-spacing": 2,
"semi": [2, "always"],
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": 2,
"space-unary-ops": 2,
"template-curly-spacing": 2,
"yield-star-spacing": 2,
"flowtype/boolean-style": 2,
"flowtype/generic-spacing": 2,
"flowtype/no-dupe-keys": 2,
"flowtype/no-primitive-constructor-types": 2,
"flowtype/no-weak-types": [2, {
"any": true,
"Object": false,
"Function": false
}],
"flowtype/object-type-delimiter": 2,
"flowtype/semi": 2,
"flowtype/space-after-type-colon": 2,
"flowtype/space-before-generic-bracket": 2,
"flowtype/space-before-type-colon": 2,
"flowtype/union-intersection-spacing": 2,
"import/no-unresolved": 2,
"import/named": 2,
"import/default": 2,
"import/namespace": 2,
"import/no-named-as-default": 2,
"import/no-named-as-default-member": 2,
"import/no-amd": 2,
"import/first": 2,
"import/no-duplicates": 2,
"import/extensions": 2,
"import/order": [2, {
"groups": ["builtin", "external"],
"newlines-between": "never"
}],
"import/newline-after-import": 2,
"import/no-named-default": 2,
"jsx-a11y/aria-props": 2,
"jsx-a11y/aria-proptypes": 2,
"jsx-a11y/aria-role": 2,
"jsx-a11y/aria-unsupported-elements": 2,
"jsx-a11y/heading-has-content": 2,
"jsx-a11y/html-has-lang": 2,
"jsx-a11y/img-has-alt": 2,
"jsx-a11y/img-redundant-alt": 2,
"jsx-a11y/lang": 2,
"jsx-a11y/mouse-events-have-key-events": 2,
"jsx-a11y/no-access-key": 2,
"jsx-a11y/no-marquee": 2,
"jsx-a11y/onclick-has-focus": 2,
"jsx-a11y/onclick-has-role": 2,
"jsx-a11y/role-has-required-aria-props": 2,
"jsx-a11y/role-supports-aria-props": 2,
"jsx-a11y/tabindex-no-positive": 2,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-closing-bracket-location": [2, {
"nonEmpty": "after-props",
"selfClosing": "tag-aligned"
}],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-key": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-space-before-closing": 2,
"react/jsx-tag-spacing": [2, {
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never"
}],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-children-prop": 2,
"react/no-danger-with-children": 2,
"react/no-deprecated": 2,
"react/no-direct-mutation-state": 2,
"react/no-is-mounted": 2,
"react/no-render-return-value": 2,
"react/no-unescaped-entities": 2,
"react/no-unknown-property": 2,
"react/react-in-jsx-scope": 2,
"react/require-render-return": 2,
"react/self-closing-comp": 2,
"react/sort-comp": [2, {
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"rendering"
],
"groups": {
"rendering": [
"/^render.+$/",
"render"
]
}
}]
},
"settings": {
"import/ignore": [
"node_modules",
"hbs$"
]
}
}