Set up eslint
This commit is contained in:
parent
4c8a22368d
commit
de4574f938
3 changed files with 1044 additions and 2 deletions
23
showbits-thermal-printer-ui/eslint.config.js
Normal file
23
showbits-thermal-printer-ui/eslint.config.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import eslint from "@eslint/js";
|
||||
import prettier from "eslint-config-prettier";
|
||||
import vue from "eslint-plugin-vue";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default tseslint.config(
|
||||
{ files: ["**/*.{js,mjs,cjs,ts,vue}"] },
|
||||
{ ignores: ["dist/"] },
|
||||
|
||||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
||||
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.strict,
|
||||
...tseslint.configs.stylistic,
|
||||
...vue.configs["flat/recommended"],
|
||||
prettier,
|
||||
|
||||
{
|
||||
files: ["**/*.vue"],
|
||||
languageOptions: { parserOptions: { parser: tseslint.parser } },
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue