Skip to content

Commit

Permalink
convert single quotes into double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitamrutiya committed Feb 12, 2024
1 parent c7bb956 commit 1a27161
Show file tree
Hide file tree
Showing 74 changed files with 1,331 additions and 1,334 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

15 changes: 7 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,39 @@ module.exports = {
extends: [
"standard",
"plugin:react/recommended",
"eslint:recommended",
"plugin:react/recommended",
],
overrides: [
{
env: {
node: true,
},
files: [
".eslintrc.{js,cjs}",
],
files: [".eslintrc.{js,cjs,jsx,mjs,ts,tsx}"],
parserOptions: {
sourceType: "script",
},
},
],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true, // This is the key line - it tells ESLint to expect JSX syntax
},
requireConfigFile: false,
},
plugins: [
"react",
],
plugins: ["react"],
rules: {
"comma-dangle": ["error", "always-multiline"], // Enforces trailing commas for multiline statements
"react/jsx-filename-extension": ["warn", { extensions: [".js", ".jsx"] }], // Enforces .jsx extension for JSX files
"react/react-in-jsx-scope": "off", // Prevents React to be incorrectly marked as unused
quotes: ["error", "double"],
semi: ["error", "always"],
},
settings: {
react: {
version: "detect", // Automatically picks the version you have installed.
},
},
};
}
6 changes: 3 additions & 3 deletions backend/config/cloudinary.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { v2 as cloudinary } from "cloudinary";
import { v2 as cloudinary } from "cloudinary"

export function cloudinaryConnect () {
try {
cloudinary.config({
cloud_name: process.env.CLOUDINARY_CLOUD_NAME,
api_key: process.env.CLOUDINARY_API_KEY,
api_secret: process.env.CLOUDINARY_API_SECRET,
});
})
} catch (error) {
console.log("Error in connecting to cloudinary: " + error);
console.log("Error in connecting to cloudinary: " + error)
}
}
14 changes: 7 additions & 7 deletions backend/config/database.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import mongoose from "mongoose";
import mongoose from "mongoose"

const connectDB = async () => {
try {
await mongoose.connect(process.env.MONGODB_URL);
console.log("\n MongoDB connected");
await mongoose.connect(process.env.MONGODB_URL)
console.log("\n MongoDB connected")
} catch (error) {
console.log("MongoDB connection FAILED", error);
process.exit(1);
console.log("MongoDB connection FAILED", error)
process.exit(1)
}
};
}

export default connectDB;
export default connectDB
6 changes: 3 additions & 3 deletions backend/config/razorpay.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Razorpay from "razorpay";
import Razorpay from "razorpay"

const instance = new Razorpay({
key_id: process.env.RAZORPAY_KEY_ID,
key_secret: process.env.RAZORPAY_KEY_SECRET,
});
})

export default instance;
export default instance
Loading

0 comments on commit 1a27161

Please sign in to comment.