Skip to content
Permalink
Browse files

Initialise a Vue project with VueCLI and Styleguidist

  • Loading branch information
dhruvkb committed May 29, 2019
1 parent 9253926 commit 26f22a65fb208cfe016a53bec842388ddb8c245e
@@ -0,0 +1,2 @@
> 1%
last 2 versions
@@ -0,0 +1,5 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
@@ -0,0 +1,28 @@
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/script-indent': ['error', 2, {
baseIndent: 1
}]
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off'
}
}
],
parserOptions: {
parser: 'babel-eslint'
}
}
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
}
@@ -0,0 +1,30 @@
module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue'
],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
transformIgnorePatterns: [
'/node_modules/'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: [
'jest-serializer-vue'
],
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
testURL: 'http://localhost/',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
}

0 comments on commit 26f22a6

Please sign in to comment.
You can’t perform that action at this time.