update gitignore, format eslint config
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
**/config.json
|
**/config.json
|
||||||
**/package-lock.json
|
|
||||||
**/node_modules
|
|
||||||
dist/*
|
dist/*
|
||||||
go.sum
|
go.sum
|
||||||
@@ -2,7 +2,9 @@ import { defineConfig } from "eslint/config";
|
|||||||
import globals from "globals";
|
import globals from "globals";
|
||||||
import js from "@eslint/js";
|
import js from "@eslint/js";
|
||||||
|
|
||||||
export default defineConfig([js.configs.recommended,{
|
export default defineConfig([
|
||||||
|
js.configs.recommended,
|
||||||
|
{
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
@@ -26,4 +28,5 @@ export default defineConfig([js.configs.recommended,{
|
|||||||
}],
|
}],
|
||||||
"prefer-const": ["error"]
|
"prefer-const": ["error"]
|
||||||
},
|
},
|
||||||
}]);
|
}
|
||||||
|
]);
|
||||||
Reference in New Issue
Block a user