Skip to content

Commit ef4d6ca

Browse files
authored
Build: Update eslint-config-jquery, fix linting violations
Closes gh-4696 Ref jquery/eslint-config-jquery#15 Ref jquery/eslint-config-jquery#16
1 parent d96111e commit ef4d6ca

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

build/release/dist.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = function( Release, files, complete ) {
106106
await fs.writeFile( `${ Release.dir.dist }/bower.json`, generateBower() );
107107

108108
await fs.writeFile( `${ Release.dir.dist }/README.md`,
109-
editReadme( readme, blogPostLink ) );
109+
editReadme( readme, blogPostLink ) );
110110

111111
console.log( "Files ready to add." );
112112
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@babel/plugin-transform-for-of": "7.4.3",
3030
"commitplease": "3.2.0",
3131
"core-js-bundle": "3.0.0",
32-
"eslint-config-jquery": "2.0.0",
32+
"eslint-config-jquery": "3.0.0",
3333
"eslint-plugin-import": "2.18.2",
3434
"grunt": "1.0.4",
3535
"grunt-babel": "8.0.0",

src/core/nodeName.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ function nodeName( elem, name ) {
22

33
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
44

5-
};
5+
}
66

77
export default nodeName;

src/css/isAutoPx.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ function isAutoPx( prop ) {
3030
// 2. The prop is not empty.
3131
return ralphaStart.test( prop ) &&
3232
rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
33-
};
33+
}
3434

3535
export default isAutoPx;

src/css/var/getStyles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export default function( elem ) {
1212
}
1313

1414
return view.getComputedStyle( elem );
15-
};
15+
}

src/css/var/isHiddenWithinTree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export default function( elem, el ) {
1717
return elem.style.display === "none" ||
1818
elem.style.display === "" &&
1919
jQuery.css( elem, "display" ) === "none";
20-
};
20+
}

src/css/var/swap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export default function( elem, options, callback ) {
1717
}
1818

1919
return ret;
20-
};
20+
}

src/data/var/acceptData.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export default function( owner ) {
1010
// - Object
1111
// - Any
1212
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
13-
};
13+
}

src/traversing/var/dir.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export default function( elem, dir, until ) {
1313
}
1414
}
1515
return matched;
16-
};
16+
}

src/traversing/var/siblings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default function( n, elem ) {
88
}
99

1010
return matched;
11-
};
11+
}

src/var/isWindow.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default function isWindow( obj ) {
22
return obj != null && obj === obj.window;
3-
};
3+
}

0 commit comments

Comments
 (0)