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", "author": "Federico Kereki",
"license": "ISC", "license": "ISC",
"babel": { "babel": {
"presets": ["env", "flow"] "presets": [
"env",
"flow"
]
}, },
"eslintConfig": { "eslintConfig": {
"parserOptions": { "parserOptions": {
@@ -28,8 +31,14 @@
"node": true, "node": true,
"es6": true "es6": true
}, },
"extends": ["eslint:recommended", "plugin:flowtype/recommended"], "extends": [
"plugins": ["babel", "flowtype"], "eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"babel",
"flowtype"
],
"rules": { "rules": {
"no-console": "off" "no-console": "off"
} }
@@ -1,3 +1,5 @@
/* @flow */
const axios = require("axios"); const axios = require("axios");
const BASE_URL = "https://weather.com/en-IN/weather/today/l/"; const BASE_URL = "https://weather.com/en-IN/weather/today/l/";
@@ -1,3 +1,5 @@
/* @flow */
const axios = require("axios"); const axios = require("axios");
const BASE_URL = "https://weather.com/en-IN/weather/today/l/"; const BASE_URL = "https://weather.com/en-IN/weather/today/l/";