Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 3, 2023
1 parent 7804dd5 commit b674f74
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dist
/src/assets
package.json
.eslintrc.cjs
.prettierrc.json
.prettierrc.js
commitlint.config.cjs
postcss.config.cjs
tailwind.config.ts
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-check
const { defineConfig } = require('eslint-define-config')

module.exports = defineConfig({
Expand Down Expand Up @@ -44,7 +45,7 @@ module.exports = defineConfig({
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
ecmaVersion: "latest",
sourceType: "module",
jsxPragma: "React",
ecmaFeatures: {
Expand Down
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check

/** @type {import("prettier").Config} */
export default {
bracketSpacing: true,
singleQuote: false,
arrowParens: "avoid",
trailingComma: "none"
};
6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ module.exports = {
]
]
}
};
}
2 changes: 1 addition & 1 deletion postcss.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ module.exports = {
autoprefixer: {},
...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {})
}
};
}
3 changes: 3 additions & 0 deletions stylelint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// @ts-check

/** @type {import("stylelint").Config} */
module.exports = {
root: true,
extends: [
Expand Down
21 changes: 16 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@
"baseUrl": ".",
"allowJs": false,
"resolveJsonModule": true,
"lib": ["dom", "esnext"],
"lib": [
"dom",
"esnext"
],
"paths": {
"@/*": ["src/*"],
"@build/*": ["build/*"]
"@/*": [
"src/*"
],
"@build/*": [
"build/*"
]
},
"types": [
"node",
Expand All @@ -38,5 +45,9 @@
"types/*.d.ts",
"vite.config.ts"
],
"exclude": ["dist", "**/*.js", "node_modules"]
}
"exclude": [
"dist",
"**/*.js",
"node_modules"
]
}

0 comments on commit b674f74

Please sign in to comment.