Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update editorconfig and prettierignore files #39

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions template/editorconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
root = true

[*.jsx?]
charset = utf-8
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.tsx?]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab

[*.yaml]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion template/eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ node_modules/
jest.config.js
babel.config.js
.eslintrc.js
locales/
locales/
58 changes: 38 additions & 20 deletions template/gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,50 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules
# macOS
.DS_Store

# testing
/coverage
# JetBrains
.idea/

# production
/dist
dist
cjs
esm
# Visual Studio Code
.vscode/*
## Local History for Visual Studio Code
.history/

# misc
.DS_Store
# Node.js
**/node_modules/
.yalc/
yalc.lock

logs/
# Yarn
.yarn/*
!.yarn/releases
!.yarn/patches
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

.idea/
# Config
configs/local_config.yaml

# TypeScript
*.tsbuildinfo

# Testing
coverage/

# local config
/configs/local_config.yaml
# Production
**/dist/
**/cjs/
**/esm/

# Cache
*.rdb
.cache-loader

.yalc/
yalc.lock
14 changes: 7 additions & 7 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"@ks-console/locales": "^4.1.1",
"@ks-console/server": "^4.1.1",
"@ks-console/shared": "^4.1.1",
"@kubed/charts": "^0.2.11",
"@kubed/code-editor": "^0.2.11",
"@kubed/components": "^0.2.11",
"@kubed/diff-viewer": "^0.2.11",
"@kubed/hooks": "^0.2.11",
"@kubed/icons": "^0.2.11",
"@kubed/log-viewer": "^0.2.11"
"@kubed/charts": "^0.2.21",
"@kubed/code-editor": "^0.2.21",
"@kubed/components": "^0.2.21",
"@kubed/diff-viewer": "^0.2.21",
"@kubed/hooks": "^0.2.21",
"@kubed/icons": "^0.2.21",
"@kubed/log-viewer": "^0.2.21"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
Expand Down
File renamed without changes.
9 changes: 7 additions & 2 deletions template/prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
node_modules
.git/
.history/
**/node_modules/
**/dist/
**/v3dist/
**/*.tsbuildinfo
yarn.lock
package-lock.json
package-lock.json
13 changes: 3 additions & 10 deletions template/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
{
"exclude": [
"node_modules",
"lib",
"esm",
"cjs",
"**/*.test.ts",
"**/*.test.tsx",
],
"exclude": ["node_modules", "lib", "esm", "cjs", "**/*.test.ts", "**/*.test.tsx", "**/v3dist"],
"compilerOptions": {
"strict": true,
"target": "ES2015",
"lib": ["DOM", "ESNext", "ES2020.Promise"],
"lib": ["DOM", "ESNext", "ES2020.Promise", "ES2021", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "Node",
"allowJs": true,
Expand All @@ -20,6 +13,6 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noEmitOnError": true,
"noEmitOnError": true
}
}
16 changes: 4 additions & 12 deletions template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": [
"dom",
"es5",
"es2017",
"es2020.promise"
],
"lib": ["dom", "es5", "es2017", "es2020.promise", "ES2021", "dom.iterable"],
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"resolveJsonModule": true,
// "isolatedModules": false,
"noEmit": false,
// "isolatedModules": false,
"noEmit": false
},
"include": [
"extensions",
"types"
]
"include": ["extensions", "types"]
}