Skip to content

Commit

Permalink
fix eslint failed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amitamrutiya committed Feb 13, 2024
1 parent fe6aea8 commit b2b9127
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 18 deletions.
38 changes: 38 additions & 0 deletions backend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"eslint:recommended",
],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,ejs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: true, // This is the key line - it tells ESLint to expect JSX syntax
},
requireConfigFile: false,
},
rules: {
"comma-dangle": ["error", "always-multiline"],
quotes: ["error", "double"],
"no-undef" : "off",
},
settings: {
react: {
version: "detect", // Automatically picks the version you have installed.
},
},
}
7 changes: 0 additions & 7 deletions backend/.prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions backend/.prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Studynotion app by Amit",
"main": "index.js",
"type": "module",
"type": "commonjs",
"scripts": {
"start": "node -r dotenv/config --experimental-json-modules index.js",
"dev": "nodemon -r dotenv/config --experimental-json-modules index.js",
Expand Down
1 change: 0 additions & 1 deletion .eslintrc.js → frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
extends: [
"plugin:react/recommended",
"eslint:recommended",
"plugin:react/recommended",
],
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"type": "commonjs",
"scripts": {
"dev": "vite --port 3000",
"build": "vite build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function PublishCourse () {
setLoading(false)
}

const onSubmit = (data) => {
const onSubmit = () => {
handleCoursePublish()
}

Expand Down

0 comments on commit b2b9127

Please sign in to comment.