Skip to content

Commit e1f1512

Browse files
chore(housekeeping): gitignore, prettier & babel configs 🥳
1 parent 8a739ca commit e1f1512

File tree

3 files changed

+100
-15
lines changed

3 files changed

+100
-15
lines changed

‎.gitignore‎

Lines changed: 70 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,104 @@
22
logs
33
*.log
44
npm-debug.log*
5-
*.code-workspace
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
611

712
# Runtime data
813
pids
914
*.pid
1015
*.seed
16+
*.pid.lock
1117

1218
# Directory for instrumented libs generated by jscoverage/JSCover
1319
lib-cov
1420

1521
# Coverage directory used by tools like istanbul
1622
coverage
23+
*.lcov
1724

1825
# nyc test coverage
1926
.nyc_output
2027

21-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
2229
.grunt
2330

31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
2434
# node-waf configuration
2535
.lock-wscript
2636

27-
# Compiled binary addons (http://nodejs.org/api/addons.html)
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2838
build/Release
2939

3040
# Dependency directories
31-
node_modules
32-
jspm_packages
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
3349

3450
# Optional npm cache directory
3551
.npm
3652

53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
3762
# Optional REPL history
3863
.node_repl_history
39-
*.vscode
40-
*.idea
4164

42-
*.sublime-*
43-
*.editorconfig
44-
*.code-workspace
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
45102

46-
*.map*
47-
*.DS_Store
48-
vue-mapbox-demo
49-
checklist.txt
103+
# TernJS port file
104+
.tern-port
105+
.DS_Store

‎.prettierrc‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": true,
3+
"arrowParens": "always",
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"bracketSpacing": true,
7+
"htmlWhitespaceSensitivity": "css",
8+
"insertPragma": false,
9+
"tabWidth": 2,
10+
"useTabs": false,
11+
"vueIndentScriptAndStyle": true
12+
}

‎babel.config.js‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
module.exports = {
2-
presets: ["@vue/app"]
2+
presets: ['@babel/preset-env'],
3+
env: {
4+
test: {
5+
plugins: [
6+
[
7+
'module-resolver',
8+
{
9+
root: ['./'],
10+
alias: {
11+
'@': './',
12+
'~': './',
13+
},
14+
},
15+
],
16+
],
17+
ignore: ['ava.config.cjs'],
18+
},
19+
},
320
};

0 commit comments

Comments
 (0)