README hinzugefuegt, Lint-Fehler behoben, Code formatiert
This commit is contained in:
31
eslint.config.js
Normal file
31
eslint.config.js
Normal file
@@ -0,0 +1,31 @@
|
||||
const globals = require("globals");
|
||||
const js = require("@eslint/js");
|
||||
const prettierPlugin = require("eslint-plugin-prettier");
|
||||
const prettierConfig = require("eslint-config-prettier");
|
||||
|
||||
module.exports = [
|
||||
js.configs.recommended,
|
||||
prettierConfig,
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "script",
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.jquery,
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
prettier: prettierPlugin,
|
||||
},
|
||||
rules: {
|
||||
"prettier/prettier": "error",
|
||||
"no-unused-vars": "warn",
|
||||
"no-undef": "warn",
|
||||
},
|
||||
},
|
||||
{
|
||||
ignores: ["node_modules/**", "**/*.min.js"],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user