Skip to content

Commit

Permalink
Add script to format js/css/scss/json using prettier and .prettierrc …
Browse files Browse the repository at this point in the history
…as configuration file

Update all js/css/scss/json files from config and src
  • Loading branch information
luc-github committed May 29, 2024
1 parent 16f26c8 commit 443c408
Show file tree
Hide file tree
Showing 113 changed files with 3,674 additions and 3,320 deletions.
17 changes: 13 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"tabWidth": 4,
"useTabs": false,
"semi": false,
"singleQuote": true,
"jsxSingleQuote": false,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"bracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
Expand All @@ -19,10 +18,20 @@
"parser": "babel"
}
},
{"files": "*.scss",
{"files": "*.css",
"options": {
"parser": "css"
}
},
{"files": "*.scss",
"options": {
"parser": "scss"
}
},
{"files": "*.json",
"options": {
"printWidth": 120,
}
}
]
}
8 changes: 5 additions & 3 deletions config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ const {
configURI,
getLastconnection,
hasEnabledAuthentication,
} = require(path.normalize(
__dirname + "/targets/" + target + "/" + subtarget + "/index.js"
))
} = require(
path.normalize(
__dirname + "/targets/" + target + "/" + subtarget + "/index.js"
)
)

const WebSocketServer = require("ws").Server,
wss = new WebSocketServer({ port: 8089 })
Expand Down
Loading

0 comments on commit 443c408

Please sign in to comment.