-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- with disable rules at one place - and ignore cypress override for now
- Loading branch information
Showing
8 changed files
with
565 additions
and
420 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginVue from "eslint-plugin-vue"; | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
// How to migrate this to new eslint config? // | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
// { | ||
// files: [ | ||
// "**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}", | ||
// "cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}", | ||
// ], | ||
// extends: ["plugin:cypress/recommended"], | ||
// }, | ||
// | ||
// FIXME: fix this error | ||
// /Users/haishengwu/freizl/duyijing/src/App.vue | ||
// 2:10 error 'RouterLink' is defined but never used @typescript-eslint/no-unused-vars | ||
// 2:22 error 'RouterView' is defined but never used @typescript-eslint/no-unused-vars | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
".gitignore", | ||
"dist/*", | ||
".vscode/*", | ||
"eslint.config.js", | ||
".log/*", | ||
"public/*", | ||
], | ||
}, | ||
{ | ||
files: ["**/*.{js,ts,vue}"], | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: globals.browser, | ||
}, | ||
}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...pluginVue.configs["flat/essential"], | ||
// ...pluginVue.configs["flat/strongly-recommended"], | ||
// ...pluginVue.configs["flat/recommended"], | ||
{ | ||
files: ["**/*.vue"], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: tseslint.parser, | ||
}, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.