@apdesign/code-style-react 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apdesign/code-style-react",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "scripts": {},
5
5
  "files": [
6
6
  "index.js",
@@ -62,7 +62,7 @@ function initConfigs() {
62
62
 
63
63
  try {
64
64
  if (!hasAnyFileExist(eslintConfigFiles)) {
65
- const eslintContent = `const baseConfig = require('@apdesign/rule-react/.eslintrc.js');
65
+ const eslintContent = `const baseConfig = require('@apdesign/code-style-react/.eslintrc.js');
66
66
  module.exports = {
67
67
  ...baseConfig,
68
68
  rules: {
@@ -73,7 +73,7 @@ module.exports = {
73
73
  }
74
74
 
75
75
  if (!hasAnyFileExist(stylelintConfigFiles)) {
76
- const stylelintContent = `const baseConfig = require('@apdesign/rule-react/.stylelintrc.js');
76
+ const stylelintContent = `const baseConfig = require('@apdesign/code-style-react/.stylelintrc.js');
77
77
  module.exports = {
78
78
  ...baseConfig,
79
79
  rules: {
@@ -84,7 +84,7 @@ module.exports = {
84
84
  }
85
85
 
86
86
  if (!hasAnyFileExist(prettierConfigFiles)) {
87
- const prettierContent = `const baseConfig = require('@apdesign/rule-react/.prettierrc.js');
87
+ const prettierContent = `const baseConfig = require('@apdesign/code-style-react/.prettierrc.js');
88
88
  module.exports = {
89
89
  ...baseConfig
90
90
  };`;
@@ -24,7 +24,7 @@ function initHusky() {
24
24
 
25
25
  execSync('git config core.hooksPath .husky');
26
26
 
27
- console.log('✅ Husky hooks installed from @apdesign/rule-react');
27
+ console.log('✅ Husky hooks installed from @apdesign/code-style-react');
28
28
  } catch (err) {
29
29
  console.error('❌ Failed to initialize husky:', err);
30
30
  }