Moved some configs to package.json, removed an unnecessary dependency, added shebang to get_instances.py

This commit is contained in:
Hygna 2022-10-25 20:54:31 +01:00
parent 65243b5b93
commit 9d3239c81f
No known key found for this signature in database
4 changed files with 27 additions and 36 deletions

View File

@ -1,24 +0,0 @@
{
"semi": false,
"tabWidth": 2,
"useTabs": true,
"arrowParens": "avoid",
"printWidth": 200,
"bracketSameLine": true,
"endOfLine": "lf",
"overrides": [
{
"files": ["*.js", "*.json"],
"options": {
"singleQuote": false
}
},
{
"files": ["*.html", "*.py"],
"options": {
"tabWidth": 4,
"singleQuote": true
}
}
]
}

View File

@ -27,7 +27,31 @@
"prettier": "^2.7.1",
"web-ext": "^7.2.0"
},
"dependencies": {
"buffer": "^6.0.3"
"prettier": {
"semi": false,
"tabWidth": 2,
"useTabs": true,
"arrowParens": "avoid",
"printWidth": 200,
"bracketSameLine": true,
"endOfLine": "lf",
"singleQuote": false
},
"webExt": {
"ignoreFiles": [
"instances/get_instances.py",
"instances/beatbump.json",
"instances/bibliogram.json",
"instances/cloudtube.json",
"instances/facil.json",
"instances/neuters.json"
],
"sourceDir": "./src/",
"run": {
"browserConsole": true
},
"build": {
"overwriteDest": true
}
}
}

1
src/instances/get_instances.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/python3
# Note: Run this script from the root of the repo
import traceback

View File

@ -1,10 +0,0 @@
module.exports = {
ignoreFiles: ["instances/get_instances.py"],
sourceDir: "./src/",
run: {
browserConsole: true,
},
build: {
overwriteDest: true,
},
}