Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
chore: init eslint & unocss
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Dec 11, 2023
1 parent 56131a2 commit 0fe64f2
Show file tree
Hide file tree
Showing 15 changed files with 2,047 additions and 121 deletions.
19 changes: 10 additions & 9 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript'
],
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-typescript'],
parserOptions: {
ecmaVersion: 'latest'
}
}
ecmaVersion: 'latest',
},
rules: {
indent: ['error', 2],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
};
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import antfu from '@antfu/eslint-config';

export default antfu({
stylistic: {
indent: 2,
quotes: 'single',
semi: true,
},
}, {
rules: {
'style/brace-style': ['warn', '1tbs', { allowSingleLine: true }],
},
ignores: ['components/ui/**', '.github/**/*'],
});
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "school-fair-2024-application",
"type": "module",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
"lint": "eslint ."
},
"dependencies": {
"vue": "^3.3.10"
},
"devDependencies": {
"@antfu/eslint-config": "^2.4.4",
"@rushstack/eslint-patch": "^1.3.3",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.19.2",
"@unocss/preset-uno": "^0.58.0",
"@vitejs/plugin-vue": "^4.5.1",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.49.0",
"eslint-plugin-vue": "^9.17.0",
"npm-run-all2": "^6.1.1",
"typescript": "~5.2.0",
"unocss": "^0.58.0",
"vite": "^5.0.5",
"vue-tsc": "^1.8.25"
}
Expand Down
Loading

0 comments on commit 0fe64f2

Please sign in to comment.