Skip to content

Commit

Permalink
feat: extract link tag regex and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Jan 23, 2024
1 parent 131b3f3 commit a8c2ebf
Show file tree
Hide file tree
Showing 8 changed files with 651 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@ module.exports = {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
overrides: [
{
files: ["tests/**"],
env: {
"vitest/env": true,
},
plugins: ["vitest"],
extends: ["plugin:vitest/recommended"],
},
],
};
1 change: 1 addition & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
],
}
},
"include": ["src/**/*.js", "src/**/*.vue", "tests/**/*.js", "tests/**/*.vue"],
"vueCompilerOptions": {
"target": 2.7,
"plugins": [
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev": "vite build --watch --mode dev",
"build": "vite build",
"serve": "vite preview",
"test": "vitest --run",
"lint": "eslint --ext .js,.cjs,.vue .",
"lint:fix": "eslint --fix --ext .js,.cjs,.vue ."
},
Expand All @@ -33,12 +34,14 @@
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-vitest": "^0.3.20",
"eslint-plugin-vue": "^9.20.1",
"prettier": "^3.2.4",
"pug": "^3.0.2",
"stylus": "^0.62.0",
"vite": "^5.0.12",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-css-injected-by-js": "^3.3.1"
"vite-plugin-css-injected-by-js": "^3.3.1",
"vitest": "^1.2.1"
}
}
Loading

0 comments on commit a8c2ebf

Please sign in to comment.