From 9d3239c81f73b75afacd5048fd7bd687c5e3a538 Mon Sep 17 00:00:00 2001 From: Hygna Date: Tue, 25 Oct 2022 20:54:31 +0100 Subject: [PATCH] Moved some configs to package.json, removed an unnecessary dependency, added shebang to get_instances.py --- .prettierrc.json | 24 ------------------------ package.json | 28 ++++++++++++++++++++++++++-- src/instances/get_instances.py | 1 + web-ext-config.js | 10 ---------- 4 files changed, 27 insertions(+), 36 deletions(-) delete mode 100644 .prettierrc.json mode change 100644 => 100755 src/instances/get_instances.py delete mode 100644 web-ext-config.js diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index ce2a27b2..00000000 --- a/.prettierrc.json +++ /dev/null @@ -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 - } - } - ] -} diff --git a/package.json b/package.json index 7df440f6..98351dad 100644 --- a/package.json +++ b/package.json @@ -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 + } } } diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py old mode 100644 new mode 100755 index 8a0258c0..46b8589d --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -1,3 +1,4 @@ +#!/usr/bin/python3 # Note: Run this script from the root of the repo import traceback diff --git a/web-ext-config.js b/web-ext-config.js deleted file mode 100644 index 8c691b04..00000000 --- a/web-ext-config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - ignoreFiles: ["instances/get_instances.py"], - sourceDir: "./src/", - run: { - browserConsole: true, - }, - build: { - overwriteDest: true, - }, -}