BlueGit

timfa frameworkv3

Files

frameworkv3 / eslint.config.mjs

eslint.config.mjs

remove useless import
timfa Tim Falken · pushed by timfa · 2 years ago
b0003760 History
eslint.config.mjs 1.2 KiB Download Raw
1export default [
2 {
3 files: ["**/*.js"],
4 languageOptions: {
5 ecmaVersion: 12, // equivalent to es2021: true
6 sourceType: "module", // for ECMAScript modules
7 globals: {
8 window: "readonly", // For browser environment globals (e.g., `window`, `document`)
9 document: "readonly"
10 }
11 },
12 rules: {
13 "no-undef": "error", // Disallow the use of undeclared variables
14 "no-dupe-keys": "error", // Disallow duplicate keys in object literals
15 "curly": ["error", "all"], // Require curly braces for all control statements
16 "no-eval": "error", // Disallow the use of eval()
17 "no-multi-spaces": "error", // Disallow multiple spaces
18 "semi": ["error", "always"], // Require semicolons at the end of statements
19 "indent": ["error", "tab"], // Enforce consistent indentation with tabs
20 "prefer-const": "error", // Suggest using `const` if a variable is never reassigned
21 "no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs
22 }
23 }
24];