Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Had to disable few rules because it would be PITA to fix errors.
  • Loading branch information
Kagami committed Jul 19, 2018
1 parent 6be3ffb commit b1bc1b1
Show file tree
Hide file tree
Showing 10 changed files with 605 additions and 484 deletions.
13 changes: 7 additions & 6 deletions .eslintrc
Expand Up @@ -19,7 +19,7 @@
"BORAM_LIN_BUILD": false,
"BORAM_X64_BUILD": false,
},
"plugins": ["react", "class-property"],
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
// Old eslint defaults.
Expand All @@ -37,7 +37,7 @@
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
//"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
Expand Down Expand Up @@ -82,9 +82,9 @@
// Code style.
"strict": [2, "never"],
"max-len": [2, 80],
"indent": [2, 2],
"indent": 0,
"comma-dangle": [2, "always-multiline"],
"camelcase": [2, {properties: "never"}],
"camelcase": 0,
"curly": [2, "multi-line"],
"eqeqeq": [2, "allow-null"],
"no-underscore-dangle": 0,
Expand All @@ -93,7 +93,7 @@
"no-unused-labels": 2,
"keyword-spacing": 2,
"quotes": [2, "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
"class-property/class-property-semicolon": 2,
"no-multi-spaces": [2, {"ignoreEOLComments": true}],

// React.
"jsx-quotes": 2,
Expand All @@ -105,7 +105,8 @@
"react/no-did-update-set-state": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/jsx-wrap-multilines": 2,
"react/jsx-wrap-multilines": [2, {"arrow": "ignore"}],
"react/prop-types": 0,
"react/no-string-refs": 0,
},
}

0 comments on commit b1bc1b1

Please sign in to comment.