Skip to content

Commit

Permalink
feat: fsd-router-ts-eslintAntfu-unocss
Browse files Browse the repository at this point in the history
  • Loading branch information
idmytro committed Jul 22, 2023
1 parent 2d97f65 commit 2eca017
Show file tree
Hide file tree
Showing 23 changed files with 3,787 additions and 2 deletions.
20 changes: 20 additions & 0 deletions fsd-router-ts-eslintAntfu-unocss/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
extends: '@antfu',
plugins: ['no-autofix'],
rules: {
'space-before-function-paren': 0,
'@typescript-eslint/space-before-function-paren': [
2,
{
anonymous: 'always',
named: 'always',
asyncArrow: 'always',
},
],

'@typescript-eslint/prefer-function-type': 2,

'unused-imports/no-unused-imports': 0, // look below
'no-autofix/unused-imports/no-unused-imports': 2,
},
}
24 changes: 24 additions & 0 deletions fsd-router-ts-eslintAntfu-unocss/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
5 changes: 5 additions & 0 deletions fsd-router-ts-eslintAntfu-unocss/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# fsd-router-ts-eslintAntfu-unocss

```
npx degit idmytro/vue3-multi-starter/fsd-router-ts-eslintAntfu-unocss myproject
```
13 changes: 13 additions & 0 deletions fsd-router-ts-eslintAntfu-unocss/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ts-eslintAntfu</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/app/main.ts"></script>
</body>
</html>
29 changes: 29 additions & 0 deletions fsd-router-ts-eslintAntfu-unocss/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "module",
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"lint": "eslint . --ext .ts,.js,.vue"
},
"dependencies": {
"vue": "^3.2.47",
"vue-router": "^4.2.4"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.5",
"@types/node": "16",
"@vitejs/plugin-vue": "^4.1.0",
"eslint": "^8.42.0",
"eslint-plugin-no-autofix": "^1.2.3",
"typescript": "5.0.4",
"unocss": "^0.53.6",
"vite": "^4.2.0",
"vue-tsc": "^1.2.0"
}
}
Loading

0 comments on commit 2eca017

Please sign in to comment.