Skip to content

Commit

Permalink
linter errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Mar 16, 2018
1 parent 4e853ae commit 31b225f
Show file tree
Hide file tree
Showing 14 changed files with 799 additions and 757 deletions.
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": [
"airbnb",
"plugin:vue/base"
],
"rules": {
"func-names": ["error", "never"],
"no-shadow": "off",
"no-unused-vars": "off",
"consistent-return": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"no-continue": "off",
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}]
},
"globals": {
"_": false,
"moment": false
}
}
40 changes: 16 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ Vue.use(VueGoodTable);
<vue-good-table
:columns="columns"
:rows="rows"
:paginate="true"/>
:perPage="5"
:paginate="true"
styleClass="vgt-table striped bordered"/>
</div>
</template>

Expand All @@ -79,47 +81,37 @@ export default {
{
label: 'Name',
field: 'name',
filterable: true,
filterOptions: {
enabled: true,
},
},
{
label: 'Age',
field: 'age',
type: 'number',
html: false,
filterable: true,
},
{
label: 'Created On',
field: 'createdAt',
type: 'date',
inputFormat: 'YYYYMMDD',
outputFormat: 'MMM Do YY',
dateInputFormat: 'YYYY-MM-DD',
dateOutputFormat: 'MMM Do YY',
},
{
label: 'Percent',
field: 'score',
type: 'percentage',
html: false,
},
],
rows: [
{id:1, name:"John",age:20,createdAt: '201-10-31:9:35 am',score: 0.03343},
{id:2, name:"Jane",age:24,createdAt: '2011-10-31',score: 0.03343},
{id:3, name:"Susan",age:16,createdAt: '2011-10-30',score: 0.03343},
{id:4, name:"Chris",age:55,createdAt: '2011-10-11',score: 0.03343},
{id:5, name:"Dan",age:40,createdAt: '2011-10-21',score: 0.03343},
{id:6, name:"John",age:20,createdAt: '2011-10-31',score: 0.03343},
{id:7, name:"Jane",age:24,createdAt: '20111031'},
{id:8, name:"Susan",age:16,createdAt: '2013-10-31',score: 0.03343},
{id:9, name:"Chris",age:55,createdAt: '2012-10-31',score: 0.03343},
{id:10, name:"Dan",age:40,createdAt: '2011-10-31',score: 0.03343},
{id:11, name:"John",age:20,createdAt: '2011-10-31',score: 0.03343},
{id:12, name:"Jane",age:24,createdAt: '2011-07-31',score: 0.03343},
{id:13, name:"Susan",age:16,createdAt: '2017-02-28',score: 0.03343},
{id:14, name:"Chris",age:55,createdAt: '',score: 0.03343},
{id:15, name:"Dan",age:40,createdAt: '2011-10-31',score: 0.03343},
{id:19, name:"Chris",age:55,createdAt: '2011-10-31',score: 0.03343},
{id:20, name:"Dan",age:40,createdAt: '2011-10-31',score: 0.03343},
{id:1, name:"John", age:20, createdAt: '201-10-31:9: 35 am',score: 0.03343},
{id:2, name:"Jane", age:24, createdAt: '2011-10-31', score: 0.03343},
{id:3, name:"Susan", age:16, createdAt: '2011-10-30', score: 0.03343},
{id:4, name:"Chris", age:55, createdAt: '2011-10-11', score: 0.03343},
{id:5, name:"Dan", age:40, createdAt: '2011-10-21', score: 0.03343},
{id:6, name:"John", age:20, createdAt: '2011-10-31', score: 0.03343},
{id:7, name:"Jane", age:24, createdAt: '20111031'},
{id:8, name:"Susan", age:16, createdAt: '2013-10-31', score: 0.03343},
],
};
},
Expand Down
Loading

0 comments on commit 31b225f

Please sign in to comment.