Added flow to ajax calls
This commit is contained in:
+12
-3
@@ -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/";
|
||||||
|
|||||||
Reference in New Issue
Block a user