mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[Lint] Bump prettier version to 1.15.2
This commit is contained in:
parent
582f60ea0b
commit
1a4ac93fbb
5 changed files with 11 additions and 24 deletions
|
@ -10,22 +10,10 @@ repos:
|
|||
name: Fmt Black
|
||||
language_version: python3.6
|
||||
- repo: https://github.com/prettier/prettier
|
||||
rev: 1.14.3
|
||||
rev: 1.15.2
|
||||
hooks:
|
||||
- id: prettier
|
||||
name: Fmt Prettier
|
||||
files: "\\.(\
|
||||
css\
|
||||
|less\
|
||||
|scss\
|
||||
|html\
|
||||
|ts|tsx\
|
||||
|graphql|gql\
|
||||
|json\
|
||||
|js|jsx\
|
||||
|md|markdown|mdown|mkdn\
|
||||
|yaml|yml\
|
||||
)$"
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v1.4.0
|
||||
hooks:
|
||||
|
|
|
@ -66,7 +66,6 @@ build: false
|
|||
|
||||
test_script:
|
||||
- if defined TOXENV tox
|
||||
|
||||
# Commented out as require GTK3 to create package.
|
||||
# after_test:
|
||||
# - if not defined TOXENV python setup.py build && python setup.py install
|
||||
|
|
|
@ -126,8 +126,8 @@ Ext.ux.grid.BufferView = Ext.extend(Ext.grid.GridView, {
|
|||
i === 0
|
||||
? 'x-grid3-cell-first '
|
||||
: i == last
|
||||
? 'x-grid3-cell-last '
|
||||
: '';
|
||||
? 'x-grid3-cell-last '
|
||||
: '';
|
||||
p.attr = p.cellAttr = '';
|
||||
p.value = c.renderer(r.data[c.name], p, r, rowIndex, i, ds);
|
||||
p.style = c.style;
|
||||
|
@ -156,8 +156,8 @@ Ext.ux.grid.BufferView = Ext.extend(Ext.grid.GridView, {
|
|||
buf[buf.length] = !visible
|
||||
? ts.rowHolder.apply(rp)
|
||||
: onlyBody
|
||||
? rb.apply(rp)
|
||||
: rt.apply(rp);
|
||||
? rb.apply(rp)
|
||||
: rt.apply(rp);
|
||||
}
|
||||
return buf.join('');
|
||||
},
|
||||
|
|
|
@ -138,8 +138,8 @@ Ext.ux.tree.TreeGrid = Ext.extend(Ext.tree.TreePanel, {
|
|||
(this.useArrows
|
||||
? 'x-tree-arrows'
|
||||
: this.lines
|
||||
? 'x-tree-lines'
|
||||
: 'x-tree-no-lines'),
|
||||
? 'x-tree-lines'
|
||||
: 'x-tree-no-lines'),
|
||||
});
|
||||
|
||||
this.internalTpl.overwrite(this.outerCt, { columns: this.columns });
|
||||
|
|
|
@ -80,13 +80,13 @@ Ext.ux.tree.TreeGridSorter = Ext.extend(Ext.tree.TreeSorter, {
|
|||
v1 = sortType
|
||||
? sortType(prop1)
|
||||
: caseSensitive
|
||||
? prop1
|
||||
: prop1.toUpperCase();
|
||||
? prop1
|
||||
: prop1.toUpperCase();
|
||||
v2 = sortType
|
||||
? sortType(prop2)
|
||||
: caseSensitive
|
||||
? prop2
|
||||
: prop2.toUpperCase();
|
||||
? prop2
|
||||
: prop2.toUpperCase();
|
||||
|
||||
if (v1 < v2) {
|
||||
return desc ? +1 : -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue