Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit 85f3a0f

Browse files
committed
chore(app): add cz, commitlint, husky, lint-staged, eslint, prettier
1 parent a65ad3b commit 85f3a0f

File tree

16 files changed

+5592
-125
lines changed

16 files changed

+5592
-125
lines changed

.commitlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "./node_modules/cz-conventional-changelog"
3+
}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# /node_modules/* and /bower_components/* in the project root are ignored by default
2+
3+
/public/build

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"parserOptions": {
7+
"ecmaVersion": 2019,
8+
"sourceType": "module"
9+
},
10+
"plugins": ["svelte3"],
11+
"extends": ["eslint:recommended"],
12+
"overrides": [
13+
{
14+
"files": ["**/*.svelte"],
15+
"processor": "svelte3/svelte3"
16+
}
17+
],
18+
"rules": {
19+
"prettier/prettier": "error",
20+
"svelte3/lint-template": 2
21+
}
22+
}

.gitignore

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,96 @@
1+
2+
# Created by https://www.gitignore.io/api/intellij+all
3+
# Edit at https://www.gitignore.io/?templates=intellij+all
4+
5+
### Intellij+all ###
6+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
7+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8+
9+
# User-specific stuff
10+
.idea/**/workspace.xml
11+
.idea/**/tasks.xml
12+
.idea/**/usage.statistics.xml
13+
.idea/**/dictionaries
14+
.idea/**/shelf
15+
16+
# Generated files
17+
.idea/**/contentModel.xml
18+
19+
# Sensitive or high-churn files
20+
.idea/**/dataSources/
21+
.idea/**/dataSources.ids
22+
.idea/**/dataSources.local.xml
23+
.idea/**/sqlDataSources.xml
24+
.idea/**/dynamic.xml
25+
.idea/**/uiDesigner.xml
26+
.idea/**/dbnavigator.xml
27+
28+
# Gradle
29+
.idea/**/gradle.xml
30+
.idea/**/libraries
31+
32+
# Gradle and Maven with auto-import
33+
# When using Gradle or Maven with auto-import, you should exclude module files,
34+
# since they will be recreated, and may cause churn. Uncomment if using
35+
# auto-import.
36+
# .idea/modules.xml
37+
# .idea/*.iml
38+
# .idea/modules
39+
# *.iml
40+
# *.ipr
41+
42+
# CMake
43+
cmake-build-*/
44+
45+
# Mongo Explorer plugin
46+
.idea/**/mongoSettings.xml
47+
48+
# File-based project format
49+
*.iws
50+
51+
# IntelliJ
52+
out/
53+
54+
# mpeltonen/sbt-idea plugin
55+
.idea_modules/
56+
57+
# JIRA plugin
58+
atlassian-ide-plugin.xml
59+
60+
# Cursive Clojure plugin
61+
.idea/replstate.xml
62+
63+
# Crashlytics plugin (for Android Studio and IntelliJ)
64+
com_crashlytics_export_strings.xml
65+
crashlytics.properties
66+
crashlytics-build.properties
67+
fabric.properties
68+
69+
# Editor-based Rest Client
70+
.idea/httpRequests
71+
72+
# Android studio 3.1+ serialized cache file
73+
.idea/caches/build_file_checksums.ser
74+
75+
### Intellij+all Patch ###
76+
# Ignores the whole .idea folder and all .iml files
77+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
78+
79+
.idea/
80+
81+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
82+
83+
*.iml
84+
modules.xml
85+
.idea/misc.xml
86+
*.ipr
87+
88+
# Sonarlint plugin
89+
.idea/sonarlint
90+
91+
# End of https://www.gitignore.io/api/intellij+all
92+
93+
# Svelte
194
/node_modules/
295
/public/build/
396

.huskyrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run precommit",
4+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
5+
}
6+
}

.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"./**/*.svelte": ["npm run --silent eslint:fix"],
3+
"./**/*.{js,css,scss,html,json,*rc,svelte}": ["npm run prettier:write"]
4+
}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# compiled output
2+
/public/build

.prettierrc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"quoteProps": "as-needed",
8+
"trailingComma": "es5",
9+
"bracketSpacing": true,
10+
"arrowParens": "always",
11+
"htmlWhitespaceSensitivity": "css",
12+
"proseWrap": "preserve",
13+
"endOfLine": "lf",
14+
"overrides": [
15+
{
16+
"files": "*.scss",
17+
"options": {
18+
"singleQuote": false
19+
}
20+
},
21+
{
22+
"files": "*.json",
23+
"options": {
24+
"singleQuote": false
25+
}
26+
},
27+
{
28+
"files": ".*rc",
29+
"options": {
30+
"singleQuote": false,
31+
"parser": "json"
32+
}
33+
},
34+
{
35+
"files": ".svelte",
36+
"options": {
37+
"semi": false,
38+
"plugins": ["prettier-plugin-svelte"]
39+
}
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)