Skip to content
This repository was archived by the owner on Nov 1, 2019. It is now read-only.

Commit 644cf76

Browse files
committed
update: install sass and eslint(standard)
1 parent b1ded3f commit 644cf76

File tree

15 files changed

+1174
-236
lines changed

15 files changed

+1174
-236
lines changed

.babelrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,5 @@
88
}],
99
"stage-2"
1010
],
11-
"plugins": ["transform-vue-jsx", "transform-runtime"],
12-
"env": {
13-
"test": {
14-
"presets": ["env", "stage-2"]
15-
}
16-
}
11+
"plugins": ["transform-vue-jsx", "transform-runtime"]
1712
}

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
/config/
33
/dist/
44
/*.js
5-
/test/unit/coverage/

.eslintrc.js

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,21 @@ module.exports = {
88
env: {
99
browser: true,
1010
},
11-
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
12-
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
13-
extends: ['plugin:vue/essential', 'airbnb-base'],
11+
extends: [
12+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
13+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
14+
'plugin:vue/essential',
15+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
16+
'standard'
17+
],
1418
// required to lint *.vue files
1519
plugins: [
1620
'vue'
1721
],
18-
// check if imports actually resolve
19-
settings: {
20-
'import/resolver': {
21-
webpack: {
22-
config: 'build/webpack.base.conf.js'
23-
}
24-
}
25-
},
2622
// add your custom rules here
2723
rules: {
28-
// don't require .vue extension when importing
29-
'import/extensions': ['error', 'always', {
30-
js: 'never',
31-
vue: 'never'
32-
}],
33-
// disallow reassignment of function parameters
34-
// disallow parameter object manipulation except for specific exclusions
35-
'no-param-reassign': ['error', {
36-
props: true,
37-
ignorePropertyModificationsFor: [
38-
'state', // for vuex state
39-
'acc', // for reduce accumulators
40-
'e' // for e.returnvalue
41-
]
42-
}],
43-
// allow optionalDependencies
44-
'import/no-extraneous-dependencies': ['error', {
45-
optionalDependencies: ['test/unit/index.js']
46-
}],
24+
// allow async-await
25+
'generator-star-spacing': 'off',
4726
// allow debugger during development
4827
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
4928
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_modules/
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7-
/test/unit/coverage/
87

98
# Editor directories and files
109
.idea

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ npm run build
1616

1717
# build for production and view the bundle analyzer report
1818
npm run build --report
19-
20-
# run unit tests
21-
npm run unit
22-
23-
# run all tests
24-
npm test
2519
```
2620

2721
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

build/webpack.prod.conf.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
1111
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
1212
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
1313

14-
const env = process.env.NODE_ENV === 'testing'
15-
? require('../config/test.env')
16-
: require('../config/prod.env')
14+
const env = require('../config/prod.env')
1715

1816
const webpackConfig = merge(baseWebpackConfig, {
1917
module: {
@@ -63,9 +61,7 @@ const webpackConfig = merge(baseWebpackConfig, {
6361
// you can customize output by editing /index.html
6462
// see https://github.com/ampedandwired/html-webpack-plugin
6563
new HtmlWebpackPlugin({
66-
filename: process.env.NODE_ENV === 'testing'
67-
? 'index.html'
68-
: config.build.index,
64+
filename: config.build.index,
6965
template: 'index.html',
7066
inject: true,
7167
minify: {

config/test.env.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)