Added linter for json files and fixed newly created linting errors.
This commit is contained in:
parent
4c847d5e2b
commit
a982ae83a9
6 changed files with 170 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import eslint from "@eslint/js";
|
||||
import eslintConfigPrettier from "eslint-config-prettier";
|
||||
import eslintPluginVue from "eslint-plugin-vue";
|
||||
import jsonc from "eslint-plugin-jsonc";
|
||||
import globals from "globals";
|
||||
import typescriptEslint from "typescript-eslint";
|
||||
|
||||
|
|
@ -26,5 +27,9 @@ export default typescriptEslint.config(
|
|||
"@typescript-eslint/no-require-imports": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.json"],
|
||||
extends: [...jsonc.configs["flat/recommended-with-json"]],
|
||||
},
|
||||
eslintConfigPrettier
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue