Added flow to ajax calls

This commit is contained in:
fkereki
2018-03-28 14:52:39 -03:00
parent afbe264c71
commit 72034b13e4
3 changed files with 16 additions and 3 deletions
+12 -3
View File
@@ -15,7 +15,10 @@
"author": "Federico Kereki",
"license": "ISC",
"babel": {
"presets": ["env", "flow"]
"presets": [
"env",
"flow"
]
},
"eslintConfig": {
"parserOptions": {
@@ -28,8 +31,14 @@
"node": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:flowtype/recommended"],
"plugins": ["babel", "flowtype"],
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"babel",
"flowtype"
],
"rules": {
"no-console": "off"
}
@@ -1,3 +1,5 @@
/* @flow */
const axios = require("axios");
const BASE_URL = "https://weather.com/en-IN/weather/today/l/";
@@ -1,3 +1,5 @@
/* @flow */
const axios = require("axios");
const BASE_URL = "https://weather.com/en-IN/weather/today/l/";