build: ensure that text files have lf line endings

that any contributor introduces to the repository
这个提交包含在:
安忆 2023-11-07 02:21:32 +08:00
父节点 b7b726ff3c
当前提交 9bda745ed0
签署人:: AnYi
GPG 密钥 ID: 190DF37D01FFE4BC
共有 5 个文件被更改,包括 7 次插入13 次删除

1
.gitattributes vendored 普通文件
查看文件

@ -0,0 +1 @@
* text=auto eol=lf

5
.lintstagedrc 普通文件
查看文件

@ -0,0 +1,5 @@
{
"*.{css,less}": ["prettier --cache --write", "stylelint --allow-empty-input --cache --fix"],
"*.{cjs,js,ts}": ["prettier --cache --write", "eslint --cache --fix"],
"*": "prettier --cache --ignore-unknown --write"
}

查看文件

@ -1,6 +1,5 @@
{
"bracketSpacing": false,
"endOfLine": "auto",
"printWidth": 120,
"quoteProps": "as-needed",
"singleQuote": true,

查看文件

@ -62,7 +62,7 @@
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"package.json": ".babel*, .browserslist*, .commitlint*, .editorConfig, .eslint*, .git*, pnpm-lock.yaml, .prettier*, .stylelint*, esbuild.config.ts, tsconfig.json, LICENCE",
"package.json": ".*cache, .*ignore, .*rc, .editorConfig, .git*, pnpm-lock.yaml, esbuild.config.ts, tsconfig.json, LICENCE",
"readme*": "*.md"
},
"json.schemas": [

查看文件

@ -64,16 +64,5 @@
"ts-node": "^10.9.1",
"types-mediawiki": "github:AnYiEE/types-mediawiki",
"typescript": "^5.2.2"
},
"lint-staged": {
"*.{css,less}": [
"prettier --cache --write",
"stylelint --allow-empty-input --cache --fix"
],
"*.{cjs,js,ts}": [
"prettier --cache --write",
"eslint --cache --fix"
],
"*": "prettier --cache --ignore-unknown --write"
}
}