create-packer 1.32.2 → 1.34.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.
Files changed (109) hide show
  1. package/package.json +1 -1
  2. package/template/lib/{react → workspace}/.eslintrc +39 -4
  3. package/template/lib/{react → workspace}/.storybook/main.ts +10 -2
  4. package/template/lib/{react/.storybook/preview.ts → workspace/.storybook/preview.tsx} +2 -1
  5. package/template/lib/workspace/package.json +73 -0
  6. package/template/{workspace/nx → lib/workspace/packages/react}/.editorconfig +5 -4
  7. package/template/lib/{ts → workspace/packages/react}/.eslintrc +49 -3
  8. package/template/{workspace/pnpm/packages/test → lib/workspace/packages/react}/.gitignore +1 -0
  9. package/template/lib/workspace/packages/react/.stylelintrc +29 -0
  10. package/template/lib/workspace/packages/react/package.json +42 -0
  11. package/template/lib/workspace/packages/react/src/Introduction.mdx +3 -0
  12. package/template/lib/workspace/packages/react/src/button/button.css +30 -0
  13. package/template/lib/{react → workspace/packages/react}/src/button/button.stories.ts +1 -1
  14. package/template/lib/{react → workspace/packages/react}/tsconfig.json +8 -4
  15. package/template/{workspace/pnpm/packages/test → lib/workspace/packages/ts}/.eslintrc +10 -3
  16. package/template/lib/workspace/packages/ts/coverage/base.css +224 -0
  17. package/template/lib/workspace/packages/ts/coverage/block-navigation.js +87 -0
  18. package/template/lib/workspace/packages/ts/coverage/clover.xml +16 -0
  19. package/template/lib/workspace/packages/ts/coverage/coverage-final.json +3 -0
  20. package/template/lib/workspace/packages/ts/coverage/favicon.png +0 -0
  21. package/template/lib/workspace/packages/ts/coverage/index.html +131 -0
  22. package/template/lib/workspace/packages/ts/coverage/index.ts.html +88 -0
  23. package/template/lib/workspace/packages/ts/coverage/prettify.css +1 -0
  24. package/template/lib/workspace/packages/ts/coverage/prettify.js +2 -0
  25. package/template/lib/workspace/packages/ts/coverage/sort-arrow-sprite.png +0 -0
  26. package/template/lib/workspace/packages/ts/coverage/sorter.js +196 -0
  27. package/template/lib/workspace/packages/ts/coverage/sum.ts.html +94 -0
  28. package/template/lib/{ts → workspace/packages/ts}/package.json +5 -4
  29. package/template/lib/workspace/packages/ts/src/index.ts +1 -0
  30. package/template/lib/workspace/packages/ts/src/sum.test.ts +6 -0
  31. package/template/lib/workspace/packages/ts/src/sum.ts +3 -0
  32. package/template/{workspace/pnpm/packages/test → lib/workspace/packages/ts}/tsconfig.json +11 -4
  33. package/template/lib/workspace/packages/ts/vite.config.ts +5 -0
  34. package/template/lib/{react → workspace}/postcss.config.cjs +0 -2
  35. package/template/lib/workspace/scripts/build.ts +22 -0
  36. package/template/lib/workspace/tsconfig.json +31 -0
  37. package/template/{workspace/pnpm/tsconfig.json → lib/workspace/tsconfig.node.json} +1 -0
  38. package/template/web-app/react/package.json +1 -0
  39. package/template/web-app/react/vite.config.ts +15 -1
  40. package/template/web-app/react-webpack/package.json +1 -1
  41. package/template/web-extension/package.json +1 -0
  42. package/template/web-extension/vite.config.ts +15 -1
  43. package/template/lib/react/package.json +0 -51
  44. package/template/lib/react/src/Introduction.mdx +0 -3
  45. package/template/lib/react/src/button/button.css +0 -30
  46. package/template/lib/react/src/index.css +0 -3
  47. package/template/lib/react/tailwind.config.cjs +0 -11
  48. package/template/lib/ts/src/index.ts +0 -5
  49. package/template/lib/ts/tsconfig.json +0 -19
  50. package/template/workspace/nx/.eslintignore +0 -1
  51. package/template/workspace/nx/.eslintrc.json +0 -35
  52. package/template/workspace/nx/.gitignore +0 -41
  53. package/template/workspace/nx/.husky/commit-msg +0 -4
  54. package/template/workspace/nx/.husky/pre-commit +0 -4
  55. package/template/workspace/nx/.prettierignore +0 -3
  56. package/template/workspace/nx/.stylelintrc.json +0 -11
  57. package/template/workspace/nx/.vscode/extensions.json +0 -9
  58. package/template/workspace/nx/README.md +0 -17
  59. package/template/workspace/nx/jest.config.ts +0 -5
  60. package/template/workspace/nx/jest.preset.js +0 -3
  61. package/template/workspace/nx/lerna.json +0 -10
  62. package/template/workspace/nx/nx.json +0 -53
  63. package/template/workspace/nx/package.json +0 -130
  64. package/template/workspace/nx/packages/.gitkeep +0 -0
  65. package/template/workspace/nx/packages/vue-lib/.eslintrc.json +0 -21
  66. package/template/workspace/nx/packages/vue-lib/README.md +0 -3
  67. package/template/workspace/nx/packages/vue-lib/jest.config.ts +0 -20
  68. package/template/workspace/nx/packages/vue-lib/package.json +0 -12
  69. package/template/workspace/nx/packages/vue-lib/project.json +0 -40
  70. package/template/workspace/nx/packages/vue-lib/src/index.ts +0 -2
  71. package/template/workspace/nx/packages/vue-lib/src/lib/HelloWorld.vue +0 -11
  72. package/template/workspace/nx/packages/vue-lib/src/shims-vue.d.ts +0 -6
  73. package/template/workspace/nx/packages/vue-lib/tests/unit/example.spec.ts +0 -9
  74. package/template/workspace/nx/packages/vue-lib/tsconfig.json +0 -20
  75. package/template/workspace/nx/packages/vue-lib/tsconfig.lib.json +0 -22
  76. package/template/workspace/nx/packages/vue-lib/tsconfig.spec.json +0 -19
  77. package/template/workspace/nx/packages/vue-lib/vite.config.ts +0 -49
  78. package/template/workspace/nx/pnpm-workspace.yaml +0 -2
  79. package/template/workspace/nx/scripts/patch-nx-dep-graph.js +0 -40
  80. package/template/workspace/nx/tools/generators/.gitkeep +0 -0
  81. package/template/workspace/nx/tools/tsconfig.tools.json +0 -12
  82. package/template/workspace/nx/tsconfig.base.json +0 -22
  83. package/template/workspace/pnpm/.prettierrc.js +0 -21
  84. package/template/workspace/pnpm/commitlint.config.cjs +0 -1
  85. package/template/workspace/pnpm/package.json +0 -40
  86. package/template/workspace/pnpm/packages/test/.prettierrc +0 -18
  87. package/template/workspace/pnpm/packages/test/package.json +0 -23
  88. package/template/workspace/pnpm/packages/test/src/index.ts +0 -5
  89. package/template/workspace/pnpm/scripts/build.ts +0 -13
  90. /package/template/{workspace/pnpm → lib/workspace}/.changeset/README.md +0 -0
  91. /package/template/{workspace/pnpm → lib/workspace}/.changeset/config.json +0 -0
  92. /package/template/lib/{react → workspace}/.editorconfig +0 -0
  93. /package/template/{workspace/pnpm → lib/workspace}/.gitignore +0 -0
  94. /package/template/lib/{react → workspace}/.prettierignore +0 -0
  95. /package/template/lib/{react → workspace}/.prettierrc +0 -0
  96. /package/template/lib/{react → workspace}/.stylelintrc +0 -0
  97. /package/template/{workspace/pnpm → lib/workspace}/README.md +0 -0
  98. /package/template/{workspace/nx → lib/workspace}/commitlint.config.cjs +0 -0
  99. /package/template/lib/{react → workspace/node_modules/.pnpm/node_modules/react-lib}/.gitignore +0 -0
  100. /package/template/lib/{ts → workspace/node_modules/.pnpm/node_modules/ts-lib}/.gitignore +0 -0
  101. /package/template/{workspace/pnpm/packages/test → lib/workspace/packages/react}/.prettierignore +0 -0
  102. /package/template/{workspace/nx → lib/workspace/packages/react}/.prettierrc +0 -0
  103. /package/template/lib/{react → workspace/packages/react}/global.d.ts +0 -0
  104. /package/template/lib/{react → workspace/packages/react}/src/button/button.tsx +0 -0
  105. /package/template/lib/{react → workspace/packages/react}/src/button/index.ts +0 -0
  106. /package/template/lib/{react → workspace/packages/react}/src/index.ts +0 -0
  107. /package/template/{workspace/pnpm/node_modules/.pnpm/node_modules/test → lib/workspace/packages/ts}/.gitignore +0 -0
  108. /package/template/lib/{ts → workspace/packages/ts}/.prettierrc +0 -0
  109. /package/template/{workspace/pnpm → lib/workspace}/pnpm-workspace.yaml +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.32.2",
3
+ "version": "1.34.0",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "root": true,
3
3
  "parser": "@typescript-eslint/parser",
4
- "plugins": ["prettier"],
4
+ "plugins": [
5
+ "prettier"
6
+ ],
5
7
  "extends": [
6
8
  "eslint:recommended",
7
9
  "plugin:@typescript-eslint/recommended",
@@ -49,6 +51,33 @@
49
51
  "index",
50
52
  "object",
51
53
  "type"
54
+ ],
55
+ "pathGroups": [
56
+ {
57
+ "pattern": "react",
58
+ "group": "external",
59
+ "position": "before"
60
+ },
61
+ {
62
+ "pattern": "react-dom/*",
63
+ "group": "external",
64
+ "position": "before"
65
+ },
66
+ {
67
+ "pattern": "react-router",
68
+ "group": "external",
69
+ "position": "before"
70
+ },
71
+ {
72
+ "pattern": "react-router-dom",
73
+ "group": "external",
74
+ "position": "before"
75
+ },
76
+ ],
77
+ "pathGroupsExcludedImportTypes": [
78
+ "react",
79
+ "react-router",
80
+ "react-router-dom"
52
81
  ]
53
82
  }
54
83
  ],
@@ -62,7 +91,12 @@
62
91
  "ignoreParameters": true
63
92
  }
64
93
  ],
65
- "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
94
+ "@typescript-eslint/no-unused-vars": [
95
+ "warn",
96
+ {
97
+ "argsIgnorePattern": "^_"
98
+ }
99
+ ],
66
100
  "@typescript-eslint/member-delimiter-style": 0,
67
101
  "@typescript-eslint/class-name-casing": 0,
68
102
  "@typescript-eslint/explicit-module-boundary-types": "off",
@@ -70,9 +104,10 @@
70
104
  "@typescript-eslint/no-empty-interface": "off",
71
105
  "react/prop-types": "off",
72
106
  "react/no-find-dom-node": "off",
73
- "react-hooks/exhaustive-deps": "off",
107
+ "react-hooks/exhaustive-deps": "warn",
74
108
  "react/display-name": "off",
75
109
  "react/react-in-jsx-scope": "off",
110
+ "react-hooks/rules-of-hooks": "off",
76
111
  "prettier/prettier": [
77
112
  "error",
78
113
  {
@@ -81,4 +116,4 @@
81
116
  ],
82
117
  "no-constant-condition": "off"
83
118
  }
84
- }
119
+ }
@@ -1,7 +1,15 @@
1
1
  import svgr from 'vite-plugin-svgr'
2
2
  import type { StorybookConfig } from '@storybook/react-vite'
3
+
4
+ function createStories(lib: string): string[] {
5
+ return [
6
+ `../packages/${lib}/src/**/*.mdx`,
7
+ `../packages/${lib}/src/**/*.stories.@(js|jsx|ts|tsx)`
8
+ ]
9
+ }
10
+
3
11
  const config: StorybookConfig = {
4
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
12
+ stories: [...createStories('ts'), ...createStories('react')],
5
13
  addons: [
6
14
  '@storybook/addon-links',
7
15
  '@storybook/addon-essentials',
@@ -12,7 +20,7 @@ const config: StorybookConfig = {
12
20
  options: {}
13
21
  },
14
22
  async viteFinal(config) {
15
- config.plugins.unshift(svgr())
23
+ config.plugins?.unshift(svgr())
16
24
 
17
25
  return config
18
26
  },
@@ -1,7 +1,8 @@
1
+ import * as React from 'react'
1
2
  import type { Preview } from '@storybook/react'
2
- import '../src/index.css'
3
3
 
4
4
  const preview: Preview = {
5
+ decorators: [Story => <Story />],
5
6
  parameters: {
6
7
  actions: { argTypesRegex: '^on[A-Z].*' },
7
8
  controls: {
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "my-lib",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "private": true,
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "build": "ts-node ./scripts/build.ts",
9
+ "changeVersion": "pnpm changeset && pnpm changeset version && pnpm run clear:changelog",
10
+ "clear:changelog": "pnpm -r exec rimraf CHANGELOG.md",
11
+ "commit": "git add . && cz",
12
+ "push": "pnpm run commit && git push",
13
+ "login": "npm login --registry https://registry.npmjs.org",
14
+ "clean:dist": "pnpm -r exec rimraf dist",
15
+ "pub": "pnpm run build && pnpm run changeVersion && pnpm run push && pnpm -r publish --registry https://registry.npmjs.org",
16
+ "storybook": "storybook dev -p 6006",
17
+ "build-storybook": "storybook build",
18
+ "up:storybook": "pnpm up storybook eslint-plugin-storybook @storybook/* -L"
19
+ },
20
+ "keywords": [],
21
+ "author": "kevily",
22
+ "license": "ISC",
23
+ "config": {
24
+ "commitizen": {
25
+ "path": "@commitlint/cz-commitlint"
26
+ }
27
+ },
28
+ "dependencies": {
29
+ "1k-tasks": "4.1.0",
30
+ "@commitlint/config-conventional": "17.6.6",
31
+ "@commitlint/cz-commitlint": "17.5.0",
32
+ "commitizen": "4.3.0",
33
+ "rimraf": "5.0.1"
34
+ },
35
+ "devDependencies": {
36
+ "@changesets/cli": "2.26.2",
37
+ "@storybook/addon-essentials": "8.2.7",
38
+ "@storybook/addon-interactions": "8.2.7",
39
+ "@storybook/addon-links": "8.2.7",
40
+ "@storybook/blocks": "8.2.7",
41
+ "@storybook/react": "8.2.7",
42
+ "@storybook/react-vite": "8.2.7",
43
+ "@storybook/testing-library": "0.2.2",
44
+ "@types/react": "18.3.3",
45
+ "@types/react-dom": "18.3.0",
46
+ "@typescript-eslint/eslint-plugin": "7.0.2",
47
+ "@typescript-eslint/parser": "7.0.2",
48
+ "@types/node": "20.3.2",
49
+ "autoprefixer": "10.4.14",
50
+ "eslint": "8.56.0",
51
+ "eslint-import-resolver-typescript": "3.6.1",
52
+ "eslint-plugin-import": "2.29.1",
53
+ "eslint-plugin-prettier": "5.1.3",
54
+ "eslint-plugin-react": "7.33.2",
55
+ "eslint-plugin-react-hooks": "4.6.0",
56
+ "eslint-plugin-storybook": "0.8.0",
57
+ "inquirer": "8",
58
+ "postcss": "8.4.31",
59
+ "postcss-import": "15.1.0",
60
+ "postcss-nesting": "12.0.0",
61
+ "postcss-scss": "4.0.6",
62
+ "prettier": "3.2.5",
63
+ "prop-types": "15.8.1",
64
+ "react": "18.2.0",
65
+ "react-dom": "18.2.0",
66
+ "storybook": "8.2.7",
67
+ "stylelint": "16.8.1",
68
+ "stylelint-config-standard-scss": "13.0.0",
69
+ "ts-node": "10.9.1",
70
+ "typescript": "5.5.2",
71
+ "vite-plugin-svgr": "4.2.0"
72
+ }
73
+ }
@@ -1,13 +1,14 @@
1
- # Editor configuration, see http://editorconfig.org
1
+ # editorconfig.org
2
+
2
3
  root = true
3
4
 
4
5
  [*]
5
6
  charset = utf-8
6
- indent_style = space
7
7
  indent_size = 4
8
+ indent_style = space
8
9
  insert_final_newline = true
9
10
  trim_trailing_whitespace = true
10
11
 
12
+
11
13
  [*.md]
12
- max_line_length = off
13
- trim_trailing_whitespace = false
14
+ trim_trailing_whitespace = false
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "root": true,
3
3
  "parser": "@typescript-eslint/parser",
4
- "plugins": ["prettier"],
4
+ "plugins": [
5
+ "prettier"
6
+ ],
5
7
  "extends": [
6
8
  "eslint:recommended",
7
9
  "plugin:@typescript-eslint/recommended",
10
+ "plugin:storybook/recommended",
11
+ "plugin:react/recommended",
12
+ "plugin:react-hooks/recommended",
8
13
  "plugin:import/recommended",
9
14
  "plugin:import/typescript"
10
15
  ],
@@ -12,6 +17,9 @@
12
17
  "import/resolver": {
13
18
  "typescript": true,
14
19
  "node": true
20
+ },
21
+ "react": {
22
+ "version": "18"
15
23
  }
16
24
  },
17
25
  "env": {
@@ -43,6 +51,33 @@
43
51
  "index",
44
52
  "object",
45
53
  "type"
54
+ ],
55
+ "pathGroups": [
56
+ {
57
+ "pattern": "react",
58
+ "group": "external",
59
+ "position": "before"
60
+ },
61
+ {
62
+ "pattern": "react-dom/*",
63
+ "group": "external",
64
+ "position": "before"
65
+ },
66
+ {
67
+ "pattern": "react-router",
68
+ "group": "external",
69
+ "position": "before"
70
+ },
71
+ {
72
+ "pattern": "react-router-dom",
73
+ "group": "external",
74
+ "position": "before"
75
+ },
76
+ ],
77
+ "pathGroupsExcludedImportTypes": [
78
+ "react",
79
+ "react-router",
80
+ "react-router-dom"
46
81
  ]
47
82
  }
48
83
  ],
@@ -56,12 +91,23 @@
56
91
  "ignoreParameters": true
57
92
  }
58
93
  ],
59
- "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
94
+ "@typescript-eslint/no-unused-vars": [
95
+ "warn",
96
+ {
97
+ "argsIgnorePattern": "^_"
98
+ }
99
+ ],
60
100
  "@typescript-eslint/member-delimiter-style": 0,
61
101
  "@typescript-eslint/class-name-casing": 0,
62
102
  "@typescript-eslint/explicit-module-boundary-types": "off",
63
103
  "@typescript-eslint/ban-ts-comment": "off",
64
104
  "@typescript-eslint/no-empty-interface": "off",
105
+ "react/prop-types": "off",
106
+ "react/no-find-dom-node": "off",
107
+ "react-hooks/exhaustive-deps": "warn",
108
+ "react/display-name": "off",
109
+ "react/react-in-jsx-scope": "off",
110
+ "react-hooks/rules-of-hooks": "off",
65
111
  "prettier/prettier": [
66
112
  "error",
67
113
  {
@@ -70,4 +116,4 @@
70
116
  ],
71
117
  "no-constant-condition": "off"
72
118
  }
73
- }
119
+ }
@@ -11,6 +11,7 @@ node_modules
11
11
  dist
12
12
  dist-ssr
13
13
  *.local
14
+ types
14
15
 
15
16
  # Editor directories and files
16
17
  .vscode/*
@@ -0,0 +1,29 @@
1
+ {
2
+ "extends": "stylelint-config-standard-scss",
3
+ "rules": {
4
+ "comment-empty-line-before": "never",
5
+ "no-empty-source": null,
6
+ "alpha-value-notation": null,
7
+ "color-function-notation": null,
8
+ "at-rule-no-unknown": [
9
+ true,
10
+ {
11
+ "ignoreAtRules": ["tailwind", "apply", "use"]
12
+ }
13
+ ],
14
+ "declaration-block-no-redundant-longhand-properties": null,
15
+ "selector-pseudo-class-no-unknown": [
16
+ true,
17
+ {
18
+ "ignorePseudoClasses": ["global"]
19
+ }
20
+ ],
21
+ "selector-class-pattern": null,
22
+ "scss/at-rule-no-unknown": [
23
+ true,
24
+ {
25
+ "ignoreAtRules": ["tailwind", "a pply"]
26
+ }
27
+ ]
28
+ }
29
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "react-lib",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "storybook": "storybook dev -p 6006",
10
+ "build-storybook": "storybook build",
11
+ "up:storybook": "pnpm up storybook eslint-plugin-storybook @storybook/* -L"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "keywords": [],
17
+ "author": "",
18
+ "license": "ISC",
19
+ "peerDependencies": {
20
+ "react": "18.2.0",
21
+ "react-dom": "18.2.0"
22
+ },
23
+ "devDependencies": {
24
+ "@types/react": "18.3.3",
25
+ "@types/react-dom": "18.3.0",
26
+ "@typescript-eslint/eslint-plugin": "7.0.2",
27
+ "@typescript-eslint/parser": "7.0.2",
28
+ "eslint": "8.56.0",
29
+ "eslint-import-resolver-typescript": "3.6.1",
30
+ "eslint-plugin-import": "2.29.1",
31
+ "eslint-plugin-prettier": "5.1.3",
32
+ "eslint-plugin-react": "7.33.2",
33
+ "eslint-plugin-react-hooks": "4.6.0",
34
+ "eslint-plugin-storybook": "0.8.0",
35
+ "prettier": "3.2.5",
36
+ "react": "18.2.0",
37
+ "react-dom": "18.2.0",
38
+ "stylelint": "16.8.1",
39
+ "stylelint-config-standard-scss": "13.0.0",
40
+ "typescript": "5.5.2"
41
+ }
42
+ }
@@ -0,0 +1,3 @@
1
+ import { Meta } from '@storybook/blocks'
2
+
3
+ <Meta title="react-components/Introduction" />
@@ -0,0 +1,30 @@
1
+ .storybook-button {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ font-weight: 700;
4
+ border: 0;
5
+ border-radius: 3em;
6
+ cursor: pointer;
7
+ display: inline-block;
8
+ line-height: 1;
9
+ }
10
+ .storybook-button--primary {
11
+ color: white;
12
+ background-color: #1ea7fd;
13
+ }
14
+ .storybook-button--secondary {
15
+ color: #333;
16
+ background-color: transparent;
17
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
18
+ }
19
+ .storybook-button--small {
20
+ font-size: 12px;
21
+ padding: 10px 16px;
22
+ }
23
+ .storybook-button--medium {
24
+ font-size: 14px;
25
+ padding: 11px 20px;
26
+ }
27
+ .storybook-button--large {
28
+ font-size: 16px;
29
+ padding: 12px 24px;
30
+ }
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'
3
3
 
4
4
  // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
5
5
  const meta: Meta<typeof Button> = {
6
- title: 'Example/Button',
6
+ title: 'react-components/Button',
7
7
  component: Button,
8
8
  tags: ['autodocs'],
9
9
  argTypes: {
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "useDefineForClassFields": true,
4
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
5
4
  "strict": true,
6
5
  "forceConsistentCasingInFileNames": true,
7
6
  "strictPropertyInitialization": false,
@@ -11,7 +10,6 @@
11
10
  "jsx": "react-jsx",
12
11
  "allowSyntheticDefaultImports": true,
13
12
  "allowJs": true,
14
- "strictNullChecks": true,
15
13
  "target": "ESNext",
16
14
  "noImplicitAny": false,
17
15
  "skipLibCheck": true,
@@ -22,5 +20,11 @@
22
20
  "baseUrl": ".",
23
21
  "emitDeclarationOnly": true
24
22
  },
25
- "include": ["src", "./global.d.ts"]
26
- }
23
+ "include": [
24
+ "src",
25
+ "./global.d.ts"
26
+ ],
27
+ "exclude": [
28
+ "node_modules/**/*"
29
+ ],
30
+ }
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "root": true,
3
3
  "parser": "@typescript-eslint/parser",
4
- "plugins": ["prettier"],
4
+ "plugins": [
5
+ "prettier"
6
+ ],
5
7
  "extends": [
6
8
  "eslint:recommended",
7
9
  "plugin:@typescript-eslint/recommended",
@@ -56,7 +58,12 @@
56
58
  "ignoreParameters": true
57
59
  }
58
60
  ],
59
- "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
61
+ "@typescript-eslint/no-unused-vars": [
62
+ "warn",
63
+ {
64
+ "argsIgnorePattern": "^_"
65
+ }
66
+ ],
60
67
  "@typescript-eslint/member-delimiter-style": 0,
61
68
  "@typescript-eslint/class-name-casing": 0,
62
69
  "@typescript-eslint/explicit-module-boundary-types": "off",
@@ -70,4 +77,4 @@
70
77
  ],
71
78
  "no-constant-condition": "off"
72
79
  }
73
- }
80
+ }