@enihsyou/editor-config
v0.0.2
Published
A shareable .editorconfig file based on enihsyou's preferences
Downloads
0
Readme
@enihsyou/editor-config
这是一个可共享的 EditorConfig 配置,用于统一项目中的编码风格。
安装
请在项目的终端中运行以下命令安装发布版本。
npm install --save-dev @enihsyou/editor-config或者运行以下命令引用 GitHub 上的最新版本。
pnpm add --save-dev github:enihsyou/shared-config#path:/packages/editor-config或者直接从 GitHub 上以文件形式下载最新版本。
curl -L https://raw.githubusercontent.com/enihsyou/shared-config/main/packages/editor-config/.editorconfig -o .editorconfig补充说明
一般而言包管理工具会自动运行 postinstall 命令将 .editorconfig 文件复制到项目根目录中,
如果它因为安全原因没有执行,你需要手动复制文件,或者执行 install.mjs 让脚本帮你复制。
- 从包中复制
.editorconfig文件到你的当前目录:
cp node_modules/@enihsyou/editor-config/.editorconfig .- 执行
install.mjs脚本,复制到你的当前目录:
node node_modules/@enihsyou/editor-config/install.mjs有关如何配置 EditorConfig 的更多信息,请访问 https://editorconfig.org。
