sonarqube/server/sonar-web/.eslintrc
2016-09-06 17:44:55 +02:00

69 lines
1.3 KiB
Plaintext

{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"globals": {
"key": true,
"d3": true,
"baseUrl": true
},
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"rules": {
"arrow-spacing": 2,
"comma-spacing": 2,
"curly": 2,
"eol-last": 2,
"eqeqeq": [2, "smart"],
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
"jsx-quotes": 2,
"key-spacing": 2,
"no-multi-spaces": 2,
"no-self-compare": 2,
"no-unexpected-multiline": 2,
"max-len": [2, 120],
"no-const-assign": 2,
"no-multiple-empty-lines": [2, { "max": 3 }],
"no-spaced-func": 2,
"no-this-before-super": 2,
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2, "always"],
"no-var": 2,
"object-shorthand": 2,
"one-var": [2, { "let": "never", "const": "never" }],
"quotes": [2, "single", "avoid-escape"],
"prefer-const": 2,
"semi": [2, "always"],
"keyword-spacing": 2,
"react/display-name": 0,
"react/no-find-dom-node": 0,
"react/prop-types": 0
},
"settings": {
"import/ignore": [
"node_modules",
"hbs$"
]
}
}