@d-zero/scaffold 5.0.0-alpha.31 → 5.0.0-alpha.32

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-alpha.32](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.31...v5.0.0-alpha.32) (2024-12-10)
7
+
8
+ ### Features
9
+
10
+ - **scaffold:** update eslint config to flat ([c423fab](https://github.com/d-zero-dev/frontend-env/commit/c423fabe7f0cbd1240ef533cb6e657aef94f6e7a))
11
+ - **scaffold:** クラス名をMarkuplintに追加しやすいようにコンフィグファイルを改善 ([33dc4c8](https://github.com/d-zero-dev/frontend-env/commit/33dc4c89a4c02bc0a34779d7eda1ca14528de4eb))
12
+
6
13
  # [5.0.0-alpha.31](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-alpha.30...v5.0.0-alpha.31) (2024-11-06)
7
14
 
8
15
  **Note:** Version bump only for package @d-zero/scaffold
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": ["../../.markuplintrc"],
2
+ "extends": ["../../markuplint.config.js"],
3
3
  "nodeRules": [
4
4
  {
5
5
  "selector": "link, script",
@@ -0,0 +1,6 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ export default fs.readFileSync(path.resolve(import.meta.dirname, './blocks.html'), {
5
+ encoding: 'utf8',
6
+ });
@@ -1,3 +1,6 @@
1
+ /**
2
+ *
3
+ */
1
4
  export function helloWorld() {
2
5
  console.log('Hello, world!'); // eslint-disable-line no-console
3
6
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": ["../../../.markuplintrc"],
2
+ "extends": ["../../../markuplint.config.js"],
3
3
  "nodeRules": [
4
4
  {
5
5
  "selector": "link, script",
package/cspell.json CHANGED
@@ -1,4 +1,8 @@
1
1
  {
2
2
  "import": ["@d-zero/cspell-config"],
3
- "ignorePaths": ["./htdocs"]
3
+ "ignorePaths": ["./htdocs"],
4
+ "words": [
5
+ // Libraries
6
+ "splide"
7
+ ]
4
8
  }
@@ -2,6 +2,10 @@ import path from 'node:path';
2
2
 
3
3
  import eleventy from '@d-zero/builder/11ty';
4
4
 
5
+ /**
6
+ *
7
+ * @param eleventyConfig
8
+ */
5
9
  export default function (eleventyConfig) {
6
10
  return eleventy(eleventyConfig, {
7
11
  /**
@@ -28,14 +32,12 @@ export default function (eleventyConfig) {
28
32
 
29
33
  /**
30
34
  * Prettier options.
31
- *
32
35
  * @see https://prettier.io/docs/en/options
33
36
  */
34
37
  // prettier: false,
35
38
 
36
39
  /**
37
40
  * Minifier options.
38
- *
39
41
  * @see https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
40
42
  */
41
43
  // minifier: { minifyJS: false },
@@ -0,0 +1,19 @@
1
+ import dz from '@d-zero/eslint-config';
2
+
3
+ /**
4
+ * @type {import('eslint').Linter.Config[]}
5
+ */
6
+ export default [
7
+ ...dz.configs.node,
8
+ ...dz.configs.frontend.map((config) => ({
9
+ files: ['__assets/**/*'],
10
+ ...config,
11
+ })),
12
+ {
13
+ files: ['**/*.cjs', '**/.textlintrc.js'],
14
+ ...dz.configs.commonjs,
15
+ },
16
+ {
17
+ ignores: ['htdocs/**/*'],
18
+ },
19
+ ];
@@ -1,6 +1,5 @@
1
1
  import path from 'node:path';
2
2
 
3
- // eslint-disable-next-line import/no-extraneous-dependencies
4
3
  import lintStagedConfigGenerator from '@d-zero/lint-staged-config';
5
4
  export default lintStagedConfigGenerator({
6
5
  ignore: [
@@ -0,0 +1,15 @@
1
+ import { extendsConfig } from '@d-zero/markuplint-config';
2
+
3
+ export default {
4
+ ...extendsConfig({
5
+ // classNaming: ['/^splide(?:__[a-z]+)?$/'],
6
+ }),
7
+ nodeRules: [
8
+ {
9
+ selector: '.c-pagination a',
10
+ rules: {
11
+ 'required-attr': false,
12
+ },
13
+ },
14
+ ],
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/scaffold",
3
- "version": "5.0.0-alpha.31",
3
+ "version": "5.0.0-alpha.32",
4
4
  "description": "Frontend scaffold files of D-ZERO Co., Ltd.",
5
5
  "repository": "https://github.com/d-zero-dev/frontend-env.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -37,25 +37,25 @@
37
37
  "last 2 ios_saf version"
38
38
  ],
39
39
  "devDependencies": {
40
- "@d-zero/builder": "5.0.0-alpha.31",
41
- "@d-zero/linters": "5.0.0-alpha.50",
42
- "@d-zero/postcss-config": "5.0.0-alpha.31",
43
- "@d-zero/tsconfig": "0.4.0",
44
- "@types/node": "22.9.0",
40
+ "@d-zero/builder": "5.0.0-alpha.32",
41
+ "@d-zero/linters": "5.0.0-alpha.53",
42
+ "@d-zero/postcss-config": "5.0.0-alpha.32",
43
+ "@d-zero/tsconfig": "0.4.1",
44
+ "@types/node": "22.10.1",
45
45
  "cross-env": "7.0.3",
46
- "husky": "9.1.6",
46
+ "husky": "9.1.7",
47
47
  "npm-run-all2": "7.0.1",
48
- "sass": "1.80.6",
49
- "typescript": "5.6.3",
50
- "vitest": "2.1.4"
48
+ "sass": "1.82.0",
49
+ "typescript": "5.7.2",
50
+ "vitest": "2.1.8"
51
51
  },
52
52
  "dependencies": {
53
53
  "destyle.css": "4.0.1",
54
54
  "tslib": "2.8.1"
55
55
  },
56
56
  "volta": {
57
- "node": "22.11.0",
57
+ "node": "22.12.0",
58
58
  "yarn": "1.22.22"
59
59
  },
60
- "gitHead": "ef176a2170456770e9755f567e0d54fd4971a4e2"
60
+ "gitHead": "ef3d086928bee104ff5e0be265d3e9dd236be4c3"
61
61
  }
package/.eslintrc.cjs DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['@d-zero/eslint-config'],
3
- };
package/.markuplintrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": ["@d-zero/markuplint-config"],
3
- "nodeRules": [
4
- {
5
- "selector": ".c-pagination a",
6
- "rules": {
7
- "required-attr": false
8
- }
9
- }
10
- ]
11
- }
@@ -1,6 +0,0 @@
1
- const fs = require('node:fs');
2
- const path = require('node:path');
3
-
4
- module.exports = fs.readFileSync(path.resolve(__dirname, './blocks.html'), {
5
- encoding: 'utf8',
6
- });
@@ -1,10 +0,0 @@
1
- {
2
- "extends": ["../../.eslintrc.cjs"],
3
- "env": {
4
- "node": false,
5
- "browser": true,
6
- "jquery": true,
7
- "es6": true,
8
- "commonjs": true
9
- }
10
- }