eslint config and stuff
This commit is contained in:
@@ -5,12 +5,17 @@ module.exports = {
|
|||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
|
// "eslint:recommended",
|
||||||
|
// "plugin:import/errors",
|
||||||
|
// "plugin:import/warnings",
|
||||||
|
// "plugin:import/typescript",
|
||||||
|
// "google",
|
||||||
|
// "plugin:@typescript-eslint/recommended",
|
||||||
|
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:import/errors",
|
"plugin:import/errors",
|
||||||
"plugin:import/warnings",
|
"plugin:import/warnings",
|
||||||
"plugin:import/typescript",
|
"plugin:import/typescript",
|
||||||
"google",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
],
|
],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
@@ -23,7 +28,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: ["@typescript-eslint", "import"],
|
plugins: ["@typescript-eslint", "import"],
|
||||||
rules: {
|
rules: {
|
||||||
"quotes": ["error", "double"],
|
quotes: ["error", "double"],
|
||||||
"import/no-unresolved": 0,
|
// "import/no-unresolved": 0,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import * as functions from "firebase-functions";
|
||||||
|
import * as admin from "firebase-admin";
|
||||||
|
|
||||||
|
// exports.agoraToken = functions.https.onCall((data, context) => {
|
||||||
|
// console.log(data);
|
||||||
|
|
||||||
|
// console.log("user's id: " + context.auth?.uid);
|
||||||
|
// const channelName = data.channelName;
|
||||||
|
|
||||||
|
// const token = agora.getAgoraToken(channelName);
|
||||||
|
|
||||||
|
// return {token};
|
||||||
|
// });
|
||||||
@@ -11,13 +11,3 @@ export const helloWorld = functions.https.onRequest((request, response) => {
|
|||||||
response.send("Hello from woahhhhhh!");
|
response.send("Hello from woahhhhhh!");
|
||||||
});
|
});
|
||||||
|
|
||||||
// exports.agoraToken = functions.https.onCall((data, context) => {
|
|
||||||
// console.log(data);
|
|
||||||
|
|
||||||
// console.log("user's id: " + context.auth?.uid);
|
|
||||||
// const channelName = data.channelName;
|
|
||||||
|
|
||||||
// let token = agora.getAgoraToken(channelName);
|
|
||||||
|
|
||||||
// return { token };
|
|
||||||
// });
|
|
||||||
|
|||||||
@@ -6,10 +6,9 @@
|
|||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "es2017"
|
"target": "es2017",
|
||||||
|
"strictNullChecks": true
|
||||||
},
|
},
|
||||||
"compileOnSave": true,
|
"compileOnSave": true,
|
||||||
"include": [
|
"include": ["src"]
|
||||||
"src"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user