Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit ee93c77

Browse files
committed
update eslint config
just updating it to the latest one we're using internally
1 parent 6db1d9b commit ee93c77

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.eslintrc.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,29 @@
3030
"@typescript-eslint/ban-ts-ignore": "off",
3131
"@typescript-eslint/camelcase": "off",
3232
"@typescript-eslint/explicit-function-return-type": "off",
33+
"@typescript-eslint/explicit-member-accessibility": "error",
3334
"@typescript-eslint/no-empty-function": "off",
3435
"@typescript-eslint/no-explicit-any": "off",
36+
"@typescript-eslint/no-loop-func": "error",
37+
"@typescript-eslint/no-shadow": "error",
3538
"@typescript-eslint/no-unused-vars": "off",
39+
"@typescript-eslint/no-use-before-define": "error",
3640
"arrow-parens": ["error", "always"],
3741
"class-methods-use-this": "off",
3842
"consistent-return": "off",
3943
"curly": "off",
4044
"default-case": "off",
4145
"dot-notation": "off",
4246
"func-names": "off",
47+
"function-paren-newline": ["error", "consistent"],
4348
"guard-for-in": "off",
4449
"import/extensions": "off",
4550
"import/newline-after-import": "off",
51+
"import/no-extraneous-dependencies": ["error", { "devDependencies": true } ],
4652
"import/no-unresolved": "off",
4753
"import/prefer-default-export": "off",
48-
"indent": ["error", "tab", {"SwitchCase": 1}],
49-
"linebreak-style": "off",
54+
"indent": ["error", "tab", { "SwitchCase": 1 }],
55+
"linebreak-style": ["warn", "unix"],
5056
"lines-between-class-members": "off",
5157
"max-len": "off",
5258
"newline-per-chained-call": "off",
@@ -55,18 +61,22 @@
5561
"no-console": "off",
5662
"no-continue": "off",
5763
"no-dupe-class-members": "off",
64+
"no-loop-func": "off",
5865
"no-mixed-operators": ["error", { "groups": [ ["&", "|", "^", "~", "<<", ">>", ">>>"], ["&&", "||"] ] }],
5966
"no-multi-assign": "off",
67+
"no-multiple-empty-lines": "off",
6068
"no-new": "off",
6169
"no-param-reassign": "off",
6270
"no-plusplus": "off",
6371
"no-prototype-builtins": "off",
6472
"no-restricted-syntax": "off",
6573
"no-return-assign": "off",
74+
"no-shadow": "off",
6675
"no-tabs": "off",
6776
"no-underscore-dangle": "off",
6877
"no-unreachable": "off",
6978
"no-unused-vars": "off",
79+
"no-use-before-define": "off",
7080
"no-useless-constructor": "off",
7181
"object-curly-newline": "off",
7282
"padded-blocks": "off",
@@ -77,13 +87,6 @@
7787
"quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }],
7888
"radix": "off",
7989
"semi": 1,
80-
"yoda": "off",
81-
82-
"import/no-extraneous-dependencies": [
83-
"error",
84-
{
85-
"devDependencies": true
86-
}
87-
]
90+
"yoda": "off"
8891
}
8992
}

src/view/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class Options {
6060
checkbox.type = 'checkbox';
6161
checkbox.checked = !!values[option.key];
6262

63-
// eslint-disable-next-line no-loop-func
63+
// eslint-disable-next-line @typescript-eslint/no-loop-func
6464
checkbox.addEventListener('change', async () => {
6565
await chrome.storage.sync.set({ [option.key]: checkbox.checked });
6666

0 commit comments

Comments
 (0)