@d-zero/linters v5.0.0-alpha.23
@d-zero/linters
複数のリンターと共有設定ファイルを含んだ統合リンターパッケージ
このパッケージ自体は空です。依存関係に以下のリンターと設定をリンクしています。
@d-zero/cspell-config
@d-zero/eslint-config
@d-zero/lint-staged-config
@d-zero/markuplint-config
@d-zero/prettier-config
@d-zero/pug-lint-config
@d-zero/stylelint-config
@d-zero/textlint-config
このパッケージは各依存パッケージのバージョン管理を簡潔にすることを目的としています。
:warning: プロジェクトによっては各パッケージをバラバラにインストールする方がよいかもしれません。
インストール
yarn add -D @d-zero/lint-config
使い方
プロジェクトで利用するには設定ファイルを用意する必要があります。このパッケージに含まれる設定ファイルを利用するには、それぞれの設定ファイルのExtends機能などを利用します。
CSpell
cspell.json
{
"import": ["@d-zero/cspell-config"]
}
ESLint
.eslintrc
{
"extends": ["@d-zero/eslint-config"]
}
lint-staged
lint-staged.config.mjs
import lintStagedConfigGenerator from '@d-zero/lint-staged-config';
export default lintStagedConfigGenerator();
詳細: @d-zero/lint-staged-config
Markuplint
.markuplintrc
{
"extends": ["@d-zero/markuplint-config"]
}
Prettier
.prettierrc
{
"extends": "@d-zero/prettier-config"
}
もしくは
package.json
{
"prettier": "@d-zero/prettier-config"
}
pug-lint
.pug-lintrc
{
"extends": "@d-zero/pug-lint-config"
}
Stylelint
.stylelintrc
{
"extends": ["@d-zero/stylelint-config"]
}
textlint
.textlintrc.json
module.exports = {
...require('@d-zero/textlint-config'),
};
5 days ago
18 days ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
9 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago