Commit 1bdbc798 authored by A. Koch's avatar A. Koch

add flow types config

parent ffbf7ddf
......@@ -17,6 +17,9 @@
]
],
"plugins": [
"babel-plugin-transform-class-properties",
"babel-plugin-syntax-flow",
"babel-plugin-transform-flow-strip-types",
[
"@babel/transform-runtime", {
"polyfill": false,
......
......@@ -17,7 +17,8 @@ module.exports = {
],
// required to lint *.vue files
plugins: [
'vue'
'vue',
'flowtype-errors'
],
globals: {
'ga': true, // Google Analytics
......@@ -53,6 +54,9 @@ module.exports = {
'brace-style': [2, 'stroustrup', { 'allowSingleLine': true }],
// for mocha & chai tests
'no-unused-vars': ['error', { varsIgnorePattern: 'should|expect' }]
'no-unused-vars': ['error', { varsIgnorePattern: 'should|expect' }],
// flow types
'flowtype-errors/show-errors': 2
}
}
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment