Skip to content

Commit a2656ef

Browse files
fix: Fixed eslint for all files
1 parent 6c9aab5 commit a2656ef

File tree

16 files changed

+120
-114
lines changed

16 files changed

+120
-114
lines changed

src/components/button/Button.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
2-
<button>
3-
<slot></slot> <!-- slot button content -->
4-
</button>
2+
<button>
3+
<slot /> <!-- slot button content -->
4+
</button>
55
</template>
66

77
<script>
8-
export default {
9-
name: 'Button',
10-
}
8+
export default {
9+
name: 'Button',
10+
};
1111
</script>
1212

1313
<style lang="scss" scoped>

src/components/index.js

Whitespace-only changes.

src/components/tabs/Tabs.vue

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
<template>
22
<div id="wp-vue-kit-tabs">
33
<div class="tab-item">
4-
<router-link to="/">Settings</router-link>
4+
<router-link to="/">
5+
Settings
6+
</router-link>
57
</div>
68
<div class="tab-item">
7-
<router-link to="/list">List</router-link>
9+
<router-link to="/list">
10+
List
11+
</router-link>
812
</div>
913
<div class="tab-item">
10-
<router-link to="/graph">Graph</router-link>
14+
<router-link to="/graph">
15+
Graph
16+
</router-link>
1117
</div>
1218
</div>
1319
</template>
@@ -16,10 +22,10 @@
1622
import "./style.scss";
1723
1824
export default {
19-
name: "Tabs",
20-
components: {},
21-
data() {
22-
return {};
23-
},
25+
name: "Tabs",
26+
components: {},
27+
data() {
28+
return {};
29+
},
2430
};
2531
</script>

src/pages/Graph.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
<script>
99
export default {
10-
name: "Graph",
10+
name: "Graph",
1111
};
1212
</script>

src/pages/List.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
<script>
99
export default {
10-
name: "List",
10+
name: "List",
1111
};
1212
</script>

src/router/index.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ import Settings from "../pages/Settings.vue";
1111
import Graph from "../pages/Graph.vue";
1212

1313
const routes = [
14-
{
15-
path: "/",
16-
name: "Settings",
17-
component: Settings,
18-
alias: '/settings'
19-
},
20-
{
21-
path: "/list",
22-
name: "List",
23-
component: List,
24-
},
25-
{
26-
path: "/graph",
27-
name: "Graph",
28-
component: Graph
29-
}
14+
{
15+
path: "/",
16+
name: "Settings",
17+
component: Settings,
18+
alias: '/settings'
19+
},
20+
{
21+
path: "/list",
22+
name: "List",
23+
component: List,
24+
},
25+
{
26+
path: "/graph",
27+
name: "Graph",
28+
component: Graph
29+
}
3030
];
3131

3232
const router = createRouter({

src/store/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import settings from "./modules/settings";
77
const debug = process.env.NODE_ENV !== "production";
88

99
const store = createStore({
10-
modules: {
11-
settings,
12-
},
13-
strict: debug,
14-
plugins: debug ? [createLogger()] : []
10+
modules: {
11+
settings,
12+
},
13+
strict: debug,
14+
plugins: debug ? [createLogger()] : []
1515
});
1616

1717
export default store;

src/store/modules/settings.js

+32-32
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
// initial state
77
const state = () => ({
8-
settings: null,
9-
isSaving: false,
10-
})
8+
settings: null,
9+
isSaving: false,
10+
});
1111

1212
// getters
1313
const getters = {
@@ -17,38 +17,38 @@ const getters = {
1717

1818
// actions
1919
const actions = {
20-
async storeSettings({ commit }, settings) {
21-
commit('setSettingsSaving', true);
22-
23-
// @todo: Test checking with Live URL.
24-
// await axios.post(`https://example.com`, settings)
25-
// .then(res => {
26-
// commit('storeSettings', res.data);
27-
// commit('setSettingsSaving', false);
28-
// }).catch(err => {
29-
// console.log('error', err);
30-
// commit('setSettingsSaving', false);
31-
// });
32-
33-
commit('storeSettings', settings);
34-
commit('setSettingsSaving', false);
35-
},
36-
}
20+
async storeSettings({ commit }, settings) {
21+
commit('setSettingsSaving', true);
22+
23+
// @todo: Test checking with Live URL.
24+
// await axios.post(`https://example.com`, settings)
25+
// .then(res => {
26+
// commit('storeSettings', res.data);
27+
// commit('setSettingsSaving', false);
28+
// }).catch(err => {
29+
// console.log('error', err);
30+
// commit('setSettingsSaving', false);
31+
// });
32+
33+
commit('storeSettings', settings);
34+
commit('setSettingsSaving', false);
35+
},
36+
};
3737

3838
// mutations
3939
const mutations = {
40-
storeSettings: (state, settings) => {
41-
state.settings = settings;
42-
},
40+
storeSettings: (state, settings) => {
41+
state.settings = settings;
42+
},
4343

44-
setSettingsSaving: (state, isSaving) => {
45-
state.isSaving = isSaving;
46-
},
47-
}
44+
setSettingsSaving: (state, isSaving) => {
45+
state.isSaving = isSaving;
46+
},
47+
};
4848

4949
export default {
50-
state,
51-
getters,
52-
actions,
53-
mutations
54-
}
50+
state,
51+
getters,
52+
actions,
53+
mutations
54+
};

src/store/types.js

Whitespace-only changes.

webpack/loaders/babel.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
2-
test: /\.js$/,
3-
exclude: /(node_modules)/,
4-
use: {
5-
loader: 'babel-loader',
6-
options: {
7-
presets: ['@babel/preset-env'],
2+
test: /\.js$/,
3+
exclude: /(node_modules)/,
4+
use: {
5+
loader: 'babel-loader',
6+
options: {
7+
presets: ['@babel/preset-env'],
8+
},
89
},
9-
},
1010
};

webpack/loaders/css.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const miniCssExtractPlugin = require("mini-css-extract-plugin");
22

33
module.exports = {
4-
test: /\.css$/,
5-
use: [
6-
miniCssExtractPlugin.loader,
7-
"style-loader",
8-
"css-loader",
9-
]
4+
test: /\.css$/,
5+
use: [
6+
miniCssExtractPlugin.loader,
7+
"style-loader",
8+
"css-loader",
9+
]
1010
};

webpack/loaders/files.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
2-
test: /\.(png|jpe?g|gif|svg)$/,
3-
use: [
4-
{
5-
loader: 'file-loader',
6-
options: {
7-
outputPath: 'images',
8-
},
9-
},
10-
],
2+
test: /\.(png|jpe?g|gif|svg)$/,
3+
use: [
4+
{
5+
loader: 'file-loader',
6+
options: {
7+
outputPath: 'images',
8+
},
9+
},
10+
],
1111
};

webpack/loaders/fonts.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
2-
test: /\.(woff|woff2|eot|ttf|svg)$/,
3-
use: [
4-
{
5-
loader: 'file-loader',
6-
options: {
7-
outputPath: 'fonts',
8-
},
9-
},
10-
],
2+
test: /\.(woff|woff2|eot|ttf|svg)$/,
3+
use: [
4+
{
5+
loader: 'file-loader',
6+
options: {
7+
outputPath: 'fonts',
8+
},
9+
},
10+
],
1111
};

webpack/loaders/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = [
2-
require("./babel"),
3-
require("./css"),
4-
require("./scss"),
5-
require("./files"),
6-
require("./fonts"),
7-
require("./vue")
2+
require("./babel"),
3+
require("./css"),
4+
require("./scss"),
5+
require("./files"),
6+
require("./fonts"),
7+
require("./vue")
88
];

webpack/loaders/scss.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const miniCssExtractPlugin = require("mini-css-extract-plugin");
22

33
module.exports = {
4-
test: /\.s[ac]ss$/i,
5-
use: [
6-
miniCssExtractPlugin.loader,
7-
"css-loader",
8-
"sass-loader",
9-
]
4+
test: /\.s[ac]ss$/i,
5+
use: [
6+
miniCssExtractPlugin.loader,
7+
"css-loader",
8+
"sass-loader",
9+
]
1010
};

webpack/loaders/vue.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
test: /\.vue$/,
3-
loader: 'vue-loader',
2+
test: /\.vue$/,
3+
loader: 'vue-loader',
44
};

0 commit comments

Comments
 (0)