does not work
This commit is contained in:
39
eslint.config.js
Normal file
39
eslint.config.js
Normal file
@@ -0,0 +1,39 @@
|
||||
export default [
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: "commonjs",
|
||||
globals: {
|
||||
// Node.js globals
|
||||
console: "readonly",
|
||||
process: "readonly",
|
||||
Buffer: "readonly",
|
||||
__dirname: "readonly",
|
||||
__filename: "readonly",
|
||||
module: "readonly",
|
||||
require: "readonly",
|
||||
exports: "readonly",
|
||||
global: "readonly",
|
||||
setTimeout: "readonly",
|
||||
clearTimeout: "readonly",
|
||||
setInterval: "readonly",
|
||||
clearInterval: "readonly",
|
||||
URLSearchParams: "readonly",
|
||||
// Browser globals (for public/ files)
|
||||
window: "readonly",
|
||||
document: "readonly",
|
||||
fetch: "readonly",
|
||||
event: "readonly"
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
"indent": ["error", 4],
|
||||
"quotes": ["error", "single"],
|
||||
"semi": ["error", "always"],
|
||||
"no-unused-vars": "warn",
|
||||
"no-console": "off",
|
||||
"no-undef": "error"
|
||||
}
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user