Skip to content

Commit acbbaae

Browse files
author
utkace
committed
chore: initial setup
0 parents  commit acbbaae

File tree

6 files changed

+17390
-0
lines changed

6 files changed

+17390
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# http://editorconfig.org
2+
# same as vue.js
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
max_line_length = 80
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
max_line_length = 0
16+
trim_trailing_whitespace = false
17+
18+
[COMMIT_EDITMSG]
19+
max_line_length = 0

.eslintrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: ["plugin:vue/essential"],
7+
rules: {
8+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
9+
},
10+
parserOptions: {
11+
parser: "babel-eslint"
12+
}
13+
};

babel.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
],
5+
env: {
6+
"test": {
7+
"plugins": ["require-context-hook"]
8+
}
9+
}
10+
}

jest.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
moduleFileExtensions: ["js", "jsx", "json", "vue"],
3+
transform: {
4+
"^.+\\.vue$": "vue-jest",
5+
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$":
6+
"jest-transform-stub",
7+
"^.+\\.jsx?$": "babel-jest"
8+
},
9+
setupFiles: ['<rootDir>/.jest/register-context.js'],
10+
moduleNameMapper: {
11+
"^@/(.*)$": "<rootDir>/src/$1"
12+
},
13+
snapshotSerializers: ["jest-serializer-vue"],
14+
testMatch: [
15+
"**/tests/**/*.test.(js|jsx|ts|tsx)|**/__snapshots__/*.(js|jsx|ts|tsx)"
16+
],
17+
testURL: "http://localhost/"
18+
};

0 commit comments

Comments
 (0)