Skip to content

Commit 31b225f

Browse files
committed
linter errors fixed
1 parent 4e853ae commit 31b225f

14 files changed

+799
-757
lines changed

.eslintrc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": [
3+
"airbnb",
4+
"plugin:vue/base"
5+
],
6+
"rules": {
7+
"func-names": ["error", "never"],
8+
"no-shadow": "off",
9+
"no-unused-vars": "off",
10+
"consistent-return": "off",
11+
"no-param-reassign": "off",
12+
"no-plusplus": "off",
13+
"import/no-unresolved": "off",
14+
"import/extensions": "off",
15+
"no-continue": "off",
16+
"comma-dangle": ["error", {
17+
"arrays": "always-multiline",
18+
"objects": "always-multiline",
19+
"imports": "always-multiline",
20+
"exports": "always-multiline",
21+
"functions": "never"
22+
}]
23+
},
24+
"globals": {
25+
"_": false,
26+
"moment": false
27+
}
28+
}

README.md

+16-24
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ Vue.use(VueGoodTable);
6666
<vue-good-table
6767
:columns="columns"
6868
:rows="rows"
69-
:paginate="true"/>
69+
:perPage="5"
70+
:paginate="true"
71+
styleClass="vgt-table striped bordered"/>
7072
</div>
7173
</template>
7274

@@ -79,47 +81,37 @@ export default {
7981
{
8082
label: 'Name',
8183
field: 'name',
82-
filterable: true,
84+
filterOptions: {
85+
enabled: true,
86+
},
8387
},
8488
{
8589
label: 'Age',
8690
field: 'age',
8791
type: 'number',
88-
html: false,
89-
filterable: true,
9092
},
9193
{
9294
label: 'Created On',
9395
field: 'createdAt',
9496
type: 'date',
95-
inputFormat: 'YYYYMMDD',
96-
outputFormat: 'MMM Do YY',
97+
dateInputFormat: 'YYYY-MM-DD',
98+
dateOutputFormat: 'MMM Do YY',
9799
},
98100
{
99101
label: 'Percent',
100102
field: 'score',
101103
type: 'percentage',
102-
html: false,
103104
},
104105
],
105106
rows: [
106-
{id:1, name:"John",age:20,createdAt: '201-10-31:9:35 am',score: 0.03343},
107-
{id:2, name:"Jane",age:24,createdAt: '2011-10-31',score: 0.03343},
108-
{id:3, name:"Susan",age:16,createdAt: '2011-10-30',score: 0.03343},
109-
{id:4, name:"Chris",age:55,createdAt: '2011-10-11',score: 0.03343},
110-
{id:5, name:"Dan",age:40,createdAt: '2011-10-21',score: 0.03343},
111-
{id:6, name:"John",age:20,createdAt: '2011-10-31',score: 0.03343},
112-
{id:7, name:"Jane",age:24,createdAt: '20111031'},
113-
{id:8, name:"Susan",age:16,createdAt: '2013-10-31',score: 0.03343},
114-
{id:9, name:"Chris",age:55,createdAt: '2012-10-31',score: 0.03343},
115-
{id:10, name:"Dan",age:40,createdAt: '2011-10-31',score: 0.03343},
116-
{id:11, name:"John",age:20,createdAt: '2011-10-31',score: 0.03343},
117-
{id:12, name:"Jane",age:24,createdAt: '2011-07-31',score: 0.03343},
118-
{id:13, name:"Susan",age:16,createdAt: '2017-02-28',score: 0.03343},
119-
{id:14, name:"Chris",age:55,createdAt: '',score: 0.03343},
120-
{id:15, name:"Dan",age:40,createdAt: '2011-10-31',score: 0.03343},
121-
{id:19, name:"Chris",age:55,createdAt: '2011-10-31',score: 0.03343},
122-
{id:20, name:"Dan",age:40,createdAt: '2011-10-31',score: 0.03343},
107+
{id:1, name:"John", age:20, createdAt: '201-10-31:9: 35 am',score: 0.03343},
108+
{id:2, name:"Jane", age:24, createdAt: '2011-10-31', score: 0.03343},
109+
{id:3, name:"Susan", age:16, createdAt: '2011-10-30', score: 0.03343},
110+
{id:4, name:"Chris", age:55, createdAt: '2011-10-11', score: 0.03343},
111+
{id:5, name:"Dan", age:40, createdAt: '2011-10-21', score: 0.03343},
112+
{id:6, name:"John", age:20, createdAt: '2011-10-31', score: 0.03343},
113+
{id:7, name:"Jane", age:24, createdAt: '20111031'},
114+
{id:8, name:"Susan", age:16, createdAt: '2013-10-31', score: 0.03343},
123115
],
124116
};
125117
},

0 commit comments

Comments
 (0)