Add ESLint, Add worker utils
This commit is contained in:
parent
a64f40b6cc
commit
c026087af1
29 changed files with 3042 additions and 1734 deletions
24
eslint.config.mts
Normal file
24
eslint.config.mts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
import { defineConfig } from "eslint/config";
|
||||
import stylistic from "@stylistic/eslint-plugin";
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
||||
plugins: { js,
|
||||
"@stylistic": stylistic
|
||||
},
|
||||
extends: ["js/recommended"],
|
||||
languageOptions: { globals: globals.browser },
|
||||
rules: {
|
||||
"@stylistic/max-len": ["error", { code: 80, tabWidth: 2 }],
|
||||
}
|
||||
},
|
||||
tseslint.configs.recommended,
|
||||
stylistic.configs.customize({
|
||||
quotes: "double",
|
||||
semi: true,
|
||||
})
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue