Add browser asset quality gate
This commit is contained in:
parent
2841042b9c
commit
5ccb336e84
14 changed files with 2898 additions and 16 deletions
23
eslint.config.mjs
Normal file
23
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
|
||||
export default [
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
...js.configs.recommended,
|
||||
languageOptions: {
|
||||
ecmaVersion: 2024,
|
||||
sourceType: "script",
|
||||
globals: globals.browser,
|
||||
},
|
||||
linterOptions: {
|
||||
reportUnusedDisableDirectives: "error",
|
||||
},
|
||||
rules: {
|
||||
eqeqeq: "error",
|
||||
"no-implicit-coercion": "error",
|
||||
"no-var": "error",
|
||||
"prefer-const": "error",
|
||||
},
|
||||
},
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue