Skip to content

Commit

Permalink
Remove console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SinclaM committed Jun 8, 2022
1 parent 58642cf commit e4cfd98
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 66 deletions.
97 changes: 39 additions & 58 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,43 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import"
],
"rules": {
"linebreak-style": [
"error",
"unix"
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"eol-last": [
"error",
"always"
],
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": "error"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"eol-last": ["error", "always"],
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-console": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": "error"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}
}
16 changes: 8 additions & 8 deletions src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ setToDesmosDefault.onclick = function () {
};

// Log changes to storage for testing
browser.storage.onChanged.addListener(function (changes, namespace) {
for (const [key, { oldValue, newValue }] of Object.entries(changes)) {
console.log(
`Storage key '${key}' in namespace '${namespace}' changed.`,
`Old value was '${oldValue}', new value is '${newValue}'.`
);
}
});
// browser.storage.onChanged.addListener(function (changes, namespace) {
// for (const [key, { oldValue, newValue }] of Object.entries(changes)) {
// console.log(
// `Storage key '${key}' in namespace '${namespace}' changed.`,
// `Old value was '${oldValue}', new value is '${newValue}'.`
// );
// }
// });

// Set many sliders at once. Used when the user presses a reset-to-default button.
// toSet is an array of all the autoCommands to be set.
Expand Down

0 comments on commit e4cfd98

Please sign in to comment.