Skip to content

Commit d6457d6

Browse files
committed
init
0 parents  commit d6457d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+25639
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
### JetBrains template
2+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4+
!template/.vscode/
5+
# User-specific stuff
6+
.idea/**/workspace.xml
7+
.idea/**/tasks.xml
8+
.idea/**/usage.statistics.xml
9+
.idea/**/dictionaries
10+
.idea/**/shelf
11+
12+
# AWS User-specific
13+
.idea/**/aws.xml
14+
15+
# Generated files
16+
.idea/**/contentModel.xml
17+
18+
# Sensitive or high-churn files
19+
.idea/**/dataSources/
20+
.idea/**/dataSources.ids
21+
.idea/**/dataSources.local.xml
22+
.idea/**/sqlDataSources.xml
23+
.idea/**/dynamic.xml
24+
.idea/**/uiDesigner.xml
25+
.idea/**/dbnavigator.xml
26+
27+
# Gradle
28+
.idea/**/gradle.xml
29+
.idea/**/libraries
30+
31+
# Gradle and Maven with auto-import
32+
# When using Gradle or Maven with auto-import, you should exclude module files,
33+
# since they will be recreated, and may cause churn. Uncomment if using
34+
# auto-import.
35+
# .idea/artifacts
36+
# .idea/compiler.xml
37+
# .idea/jarRepositories.xml
38+
# .idea/modules.xml
39+
# .idea/*.iml
40+
# .idea/modules
41+
# *.iml
42+
# *.ipr
43+
44+
# CMake
45+
cmake-build-*/
46+
47+
# Mongo Explorer plugin
48+
.idea/**/mongoSettings.xml
49+
50+
# File-based project format
51+
*.iws
52+
53+
# IntelliJ
54+
out/
55+
56+
# mpeltonen/sbt-idea plugin
57+
.idea_modules/
58+
59+
# JIRA plugin
60+
atlassian-ide-plugin.xml
61+
62+
# Cursive Clojure plugin
63+
.idea/replstate.xml
64+
65+
# SonarLint plugin
66+
.idea/sonarlint/
67+
68+
# Crashlytics plugin (for Android Studio and IntelliJ)
69+
com_crashlytics_export_strings.xml
70+
crashlytics.properties
71+
crashlytics-build.properties
72+
fabric.properties
73+
74+
# Editor-based Rest Client
75+
.idea/httpRequests
76+
77+
# Android studio 3.1+ serialized cache file
78+
.idea/caches/build_file_checksums.ser
79+
80+
### Node template
81+
# Logs
82+
logs
83+
*.log
84+
npm-debug.log*
85+
yarn-debug.log*
86+
yarn-error.log*
87+
lerna-debug.log*
88+
.pnpm-debug.log*
89+
90+
# Diagnostic reports (https://nodejs.org/api/report.html)
91+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
92+
93+
# Runtime data
94+
pids
95+
*.pid
96+
*.seed
97+
*.pid.lock
98+
99+
# Directory for instrumented libs generated by jscoverage/JSCover
100+
lib-cov
101+
102+
# Coverage directory used by tools like istanbul
103+
coverage
104+
*.lcov
105+
106+
# nyc test coverage
107+
.nyc_output
108+
109+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
110+
.grunt
111+
112+
# Bower dependency directory (https://bower.io/)
113+
bower_components
114+
115+
# node-waf configuration
116+
.lock-wscript
117+
118+
# Compiled binary addons (https://nodejs.org/api/addons.html)
119+
build/Release
120+
121+
# Dependency directories
122+
node_modules/
123+
jspm_packages/
124+
125+
# Snowpack dependency directory (https://snowpack.dev/)
126+
web_modules/
127+
128+
# TypeScript cache
129+
*.tsbuildinfo
130+
131+
# Optional npm cache directory
132+
.npm
133+
134+
# Optional eslint cache
135+
.eslintcache
136+
137+
# Optional stylelint cache
138+
.stylelintcache
139+
140+
# Microbundle cache
141+
.rpt2_cache/
142+
.rts2_cache_cjs/
143+
.rts2_cache_es/
144+
.rts2_cache_umd/
145+
146+
# Optional REPL history
147+
.node_repl_history
148+
149+
# Output of 'npm pack'
150+
*.tgz
151+
152+
# Yarn Integrity file
153+
.yarn-integrity
154+
155+
# dotenv environment variable files
156+
.env
157+
.env.development.local
158+
.env.test.local
159+
.env.production.local
160+
.env.local
161+
162+
# parcel-bundler cache (https://parceljs.org/)
163+
.cache
164+
.parcel-cache
165+
166+
# Next.js build output
167+
.next
168+
out
169+
170+
# Nuxt.js build / generate output
171+
.nuxt
172+
dist
173+
174+
# Gatsby files
175+
.cache/
176+
# Comment in the public line in if your project uses Gatsby and not Next.js
177+
# https://nextjs.org/blog/next-9-1#public-directory-support
178+
# public
179+
180+
# vuepress build output
181+
.vuepress/dist
182+
183+
# vuepress v2.x temp and cache directory
184+
.temp
185+
.cache
186+
187+
# Docusaurus cache and generated files
188+
.docusaurus
189+
190+
# Serverless directories
191+
.serverless/
192+
193+
# FuseBox cache
194+
.fusebox/
195+
196+
# DynamoDB Local files
197+
.dynamodb/
198+
199+
# TernJS port file
200+
.tern-port
201+
202+
# Stores VSCode versions used for testing VSCode extensions
203+
.vscode-test
204+
205+
# yarn v2
206+
.yarn/cache
207+
.yarn/unplugged
208+
.yarn/build-state.yml
209+
.yarn/install-state.gz
210+
.pnp.*
211+

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/create-widget.iml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jpa-buddy.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/prettier.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__tests__
2+
__mocks__
3+
.version

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# create-widget core license
2+
3+
create-widget is released under the MIT license:
4+
5+
MIT License
6+
7+
Copyright (c) 2023-present widgetjs
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in all
17+
copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
SOFTWARE.
26+
27+

eslint.config.mjs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import antfu from '@antfu/eslint-config'
2+
export default antfu({
3+
type: 'lib',
4+
stylistic: {
5+
indent: 2,
6+
quotes: 'single',
7+
},
8+
ignores: ['node_modules', '**/node_modules/**', 'node_modules/', '**/node_modules/**/', 'template/**', 'unocss/**', 'index.cjs'],
9+
}, {
10+
rules: {
11+
'spaced-comment': ['error', 'always', { exceptions: ['#__PURE__'] }],
12+
'node/no-callback-literal': 'off',
13+
'import/namespace': 'off',
14+
'eqeqeq': 'off',
15+
'import/default': 'off',
16+
'node/prefer-global/process': 'off',
17+
'ts/explicit-function-return-type': 'off',
18+
'import/no-named-as-default': 'off',
19+
'ts/no-use-before-define': 'off',
20+
'import/no-named-as-default-member': 'off',
21+
'curly': ['error', 'multi-line'],
22+
'style/max-statements-per-line': ['error', {
23+
max: 2,
24+
}],
25+
'max-statements-per-line': ['error', {
26+
max: 2,
27+
}],
28+
},
29+
}, {
30+
files: ['scripts/*.ts', 'src/index.ts'],
31+
rules: {
32+
'no-alert': 'off',
33+
'no-console': 'off',
34+
'no-undef': 'off',
35+
'no-unused-vars': 'off',
36+
'no-restricted-imports': 'off',
37+
'@typescript-eslint/no-unused-vars': 'off',
38+
'@typescript-eslint/no-redeclare': 'off',
39+
'unused-imports/no-unused-vars': 'off',
40+
},
41+
})

0 commit comments

Comments
 (0)