Enable all ES6 features for the whole project
Some of ES6 features (like template strings, let, const, etc) were disabled as we couldn't enable them in our functional tests, so we would end up with 2 code styles. Since the tests are also transpiled, we can enable all the features. no-use-before-define was disabled as it started to cause errors on the networks tab on the code which looked totally fine, and fixing them would cause the code look worse. Change-Id: I5e20b1f7ebb6c18e31faa19271b73f53b5aea878
This commit is contained in:
parent
4b30f4dfeb
commit
f362389863
|
@ -20,7 +20,6 @@
|
|||
no-useless-call: 2
|
||||
yoda: 2
|
||||
no-undef: 2
|
||||
no-use-before-define: 2
|
||||
array-bracket-spacing: 2
|
||||
comma-spacing: 2
|
||||
computed-property-spacing: 2
|
||||
|
|
|
@ -2,19 +2,8 @@
|
|||
plugins:
|
||||
- react
|
||||
ecmaFeatures:
|
||||
arrowFunctions: true
|
||||
classes: true
|
||||
defaultParams: true
|
||||
destructuring: true
|
||||
jsx: true
|
||||
modules: true
|
||||
objectLiteralComputedProperties: true
|
||||
objectLiteralShorthandMethods: true
|
||||
objectLiteralShorthandProperties: true
|
||||
restParams: true
|
||||
spread: true
|
||||
superInFunctions: true
|
||||
templateStrings: true
|
||||
rules:
|
||||
# es6
|
||||
arrow-parens: 2
|
||||
|
@ -52,6 +41,7 @@
|
|||
react/self-closing-comp: 2
|
||||
react/sort-comp: 0
|
||||
env:
|
||||
es6: true
|
||||
browser: true
|
||||
node: false
|
||||
globals:
|
||||
|
|
Loading…
Reference in New Issue