aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/.eslintrc')
-rw-r--r--openecomp-ui/.eslintrc71
1 files changed, 20 insertions, 51 deletions
diff --git a/openecomp-ui/.eslintrc b/openecomp-ui/.eslintrc
index 2ebd851b87..5bc1423a4a 100644
--- a/openecomp-ui/.eslintrc
+++ b/openecomp-ui/.eslintrc
@@ -1,5 +1,15 @@
{
"parser": "babel-eslint",
+ "parserOptions": {
+ "ecmaVersion": 6,
+ "sourceType": "module",
+ "ecmaFeatures": {
+ "jsx": true,
+ "classes": true,
+ "modules": true,
+ "experimentalDecorators": true
+ }
+ },
"env": {
"es6": true,
"jquery": true,
@@ -8,14 +18,12 @@
},
"plugins": [
"react",
- "import"
+ "import",
+ "prettier"
+ ],
+ "extends": [
+ "prettier"
],
- "ecmaFeatures": {
- "jsx": true,
- "classes": true,
- "modules": true,
- "experimentalDecorators": true
- },
"globals": {
"Event": true,
"window": true,
@@ -40,23 +48,17 @@
"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,
- "wrap-iife": [
- 2,
- "any"
- ],
"no-unused-expressions": 2,
- "indent": [
- 1,
- "tab",
- {
- "SwitchCase": 1
- }
- ],
"no-use-before-define": 2,
"new-cap": [
2,
@@ -75,25 +77,13 @@
"single",
"avoid-escape"
],
- "jsx-quotes": [
- 2,
- "prefer-single"
- ],
"no-plusplus": 0,
"no-cond-assign": [
2,
"except-parens"
],
- "comma-style": [
- 2,
- "last"
- ],
"no-invalid-this": 0,
"dot-notation": 0,
- "max-len": [
- 1,
- 200
- ],
"camelcase": [
2,
{
@@ -101,16 +91,10 @@
}
],
"curly": 2,
- "brace-style": 0,
"semi": [
2,
"always"
],
- "space-in-brackets": [
- 0,
- "never"
- ],
- "space-infix-ops": 2,
"import/default": 0,
"import/no-unresolved": 0,
"import/no-named-as-default": 2,
@@ -120,19 +104,6 @@
"react/display-name": 0,
"react/forbid-prop-types": 0,
"react/jsx-boolean-value": 0,
- "react/jsx-closing-bracket-location": [
- 1,
- {
- "nonEmpty": "after-props",
- "selfClosing": "after-props"
- }
- ],
- "react/jsx-curly-spacing": 0,
- "react/jsx-indent-props": [
- 1,
- "tab"
- ],
- "react/jsx-max-props-per-line": 0,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 1,
@@ -149,9 +120,7 @@
"react/no-unknown-property": 1,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
- "react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 0,
- "react/wrap-multilines": 1
}
}