Skip to content

Commit

Permalink
added prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hxhxhx88 committed Jan 16, 2024
1 parent 94140d9 commit 3fed90d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 31 deletions.
54 changes: 23 additions & 31 deletions app/backend-v2/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
module.exports = {
env: {
browser: true,
es2021: true
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
overrides: [
{
env: {
node: true
},
files: [
".eslintrc.{js,cjs}"
],
parserOptions: {
sourceType: "script"
}
}
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: [
"@typescript-eslint"
],
rules: {
}
}
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {},
};
16 changes: 16 additions & 0 deletions app/backend-v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions app/backend-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "nodemon src/index.ts",
"lint": "eslint src/",
"format": "prettier --write .",
"build": "webpack build",
"pkg": "npm run build && pkg --output bin/nutsh dist/main.js"
},
Expand All @@ -20,6 +21,7 @@
"@yao-pkg/pkg": "^5.11.1",
"eslint": "^8.56.0",
"nodemon": "^3.0.2",
"prettier": "3.2.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
Expand Down

0 comments on commit 3fed90d

Please sign in to comment.