forked from jonathanbertholet/promptmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
32 lines (31 loc) · 1.25 KB
/
eslint.config.js
File metadata and controls
32 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import globals from "globals";
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser, // This adds browser APIs for Firefox and other browsers
...globals.webextensions, // This adds chrome and other extension APIs
chrome: 'readonly', // Explicitly define Chrome API
PromptUIManager: 'readonly', // Explicitly define Chrome API
InputBoxHandler: 'readonly', // Explicitly define Chrome API
},
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"], // Enforce Unix line endings
"quotes": ["error", "single"], // Enforce single quotes
"semi": ["error", "always"], // Enforce semicolons
"no-unused-vars": "off", // Warn on unused variables
"no-console": "off", // Allow console statements for debugging
},
ignores: [
"node_modules/*",
"tests/*",
"src/icons/*"
]
}
];