Skip to content

Commit 5093e2d

Browse files
committed
Switch to eslint
1 parent 4c3c57c commit 5093e2d

7 files changed

Lines changed: 1070 additions & 78 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222

2323
- run: npm ci
2424

25-
- run: npx web-ext lint --self-hosted
25+
- run: npx eslint

eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import { defineConfig } from "eslint/config";
4+
5+
export default defineConfig([
6+
{
7+
files: ["**/*.{js,mjs,cjs}"],
8+
ignores: ["translators/zotero/**", "test.js"],
9+
plugins: { js },
10+
extends: ["js/recommended"],
11+
languageOptions: {
12+
globals: {
13+
...globals.browser,
14+
...globals.webextensions
15+
}
16+
},
17+
},
18+
]);

0 commit comments

Comments
 (0)