Skip to content

Commit 49043ab

Browse files
author
Lionel Bijaoui
committed
Update configuration and dependency
1 parent 163fdc9 commit 49043ab

File tree

7 files changed

+4025
-1668
lines changed

7 files changed

+4025
-1668
lines changed

.babelrc

+3-7
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"env",
55
{
66
"modules": false,
7-
"targets": {
8-
"browsers": ["last 2 versions"]
9-
}
7+
"useBuiltIns": "entry"
108
}
119
],
1210
"stage-2"
@@ -19,14 +17,12 @@
1917
"env",
2018
{
2119
"modules": false,
22-
"targets": {
23-
"browsers": ["last 2 versions"]
24-
}
20+
"useBuiltIns": "entry"
2521
}
2622
],
2723
"stage-2"
2824
],
29-
"plugins": ["transform-runtime", "lodash"]
25+
"plugins": ["transform-runtime", "istanbul"]
3026
}
3127
}
3228
}

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = tab
8+
indent_size = 4
9+
trim_trailing_whitespace = true

.eslintrc.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module.exports = {
22
root: true,
3-
parser: "babel-eslint",
3+
parser: "vue-eslint-parser",
44
parserOptions: {
5-
sourceType: "module"
5+
sourceType: "module",
6+
parser: "babel-eslint"
67
},
78
env: {
89
browser: true,
@@ -11,19 +12,19 @@ module.exports = {
1112
globals: {
1213
process: true
1314
},
14-
extends: ["eslint:recommended", "prettier"],
15-
plugins: ["html", "prettier"],
15+
extends: ["eslint:recommended", "plugin:vue/base"],
16+
plugins: ["prettier"],
1617
rules: {
1718
indent: ["warn", "tab", { SwitchCase: 1 }],
1819
quotes: ["warn", "double"],
1920
semi: ["error", "always"],
2021
"no-var": ["error"],
2122
"no-console": ["off"],
2223
"no-unused-vars": ["warn"],
23-
// TODO reactivate after stabilisation
2424
"no-throw-literal": 0,
25-
eqeqeq: [0, "smart"],
26-
"spaced-comment": 0,
27-
"prettier/prettier": 0
25+
// TODO reactivate after stabilisation
26+
eqeqeq: [1, "smart"],
27+
"spaced-comment": 1,
28+
"prettier/prettier": 1
2829
}
2930
};

.jsbeautifyrc

-6
This file was deleted.

build/webpack.dev.config.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,34 @@ let rules = [
99
test: /\.(js|vue)$/,
1010
loader: "eslint-loader",
1111
enforce: "pre",
12-
include: [path.resolve("src")],
12+
include: [path.resolve("src"), path.resolve("dev")],
13+
exclude: /node_modules/,
1314
options: {
1415
formatter: require("eslint-friendly-formatter")
1516
}
1617
},
1718
{
1819
test: /\.vue$/,
1920
loader: "vue-loader",
21+
include: [path.resolve("src"), path.resolve("dev")],
22+
exclude: /node_modules/,
2023
options: vueLoaderConfig
2124
},
2225
{
2326
test: /\.js$/,
2427
loader: "babel-loader",
25-
include: projectRoot,
28+
include: [path.resolve("src"), path.resolve("dev")],
2629
exclude: /node_modules/
2730
},
2831
{
2932
test: /\.(woff2?|svg)$/,
30-
loader: "url-loader"
33+
loader: "url-loader",
34+
include: [path.resolve("src"), path.resolve("dev")]
3135
},
3236
{
3337
test: /\.(ttf|eot)$/,
34-
loader: "url-loader"
38+
loader: "url-loader",
39+
include: [path.resolve("src"), path.resolve("dev")]
3540
}
3641
];
3742

0 commit comments

Comments
 (0)