@d-zero/pug-lint-config 5.0.0-dev.92 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 D-ZERO Co., Ltd.
3
+ Copyright (c) 2024 D-ZERO Co., Ltd.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,4 +1,29 @@
1
1
  # `@d-zero/pug-lint-config`
2
2
 
3
- - 使用: 🆗 使用可
4
- - 解説: 🚧 準備中
3
+ ## 個別インストール
4
+
5
+ ```sh
6
+ npm install -D @d-zero/pug-lint-config
7
+ ```
8
+
9
+ ## 使い方
10
+
11
+ `.pug-lintrc`を作成し、[`extends`](https://github.com/pugjs/pug-lint?tab=readme-ov-file#extends)機能を使って読み込みます。
12
+
13
+ ```json
14
+ {
15
+ "extends": "@d-zero/pug-lint-config"
16
+ }
17
+ ```
18
+
19
+ ### 拡張
20
+
21
+ プロジェクトに合わせて設定を追加します。
22
+
23
+ ```json
24
+ {
25
+ "extends": "@d-zero/pug-lint-config",
26
+ // 例: Block Expansion構文を禁止する
27
+ "disallowBlockExpansion": true
28
+ }
29
+ ```
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
- disallowClassAttributeWithStaticValue: true,
3
2
  disallowAttributeTemplateString: true,
3
+ disallowClassAttributeWithStaticValue: true,
4
4
  disallowDuplicateAttributes: true,
5
5
  disallowIdAttributeWithStaticValue: true,
6
6
  disallowLegacyMixinCall: true,
@@ -12,10 +12,11 @@ module.exports = {
12
12
  requireStrictEqualityOperators: true,
13
13
  validateAttributeQuoteMarks: '"',
14
14
  validateAttributeSeparator: {
15
- separator: ' ',
16
15
  multiLineSeparator: '\n\t',
16
+ separator: ' ',
17
17
  },
18
18
  validateLineBreaks: 'LF',
19
19
  validateSelfClosingTags: true,
20
20
  validateTemplateString: true,
21
+ disallowHtmlText: true,
21
22
  };
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@d-zero/pug-lint-config",
3
- "version": "5.0.0-dev.92+cac5756",
3
+ "version": "5.0.0",
4
4
  "description": "Configurations of pug-lint",
5
- "repository": "https://github.com/d-zero-dev/node-dev-env.git",
5
+ "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
7
7
  "license": "MIT",
8
- "private": false,
9
8
  "publishConfig": {
10
9
  "access": "public"
11
10
  },
11
+ "engines": {
12
+ "node": ">=22.0.0"
13
+ },
12
14
  "files": [
13
15
  "index.js"
14
16
  ],
@@ -16,5 +18,5 @@
16
18
  "dependencies": {
17
19
  "pug-lint": "2.7.0"
18
20
  },
19
- "gitHead": "cac5756806a90edaa73a57e49f0dcd45495290ab"
21
+ "gitHead": "7f635ad8bbb1455d0d362fe00478a2f7bd216924"
20
22
  }