Skip to content

Commit 575e466

Browse files
authored
feat: use eslint-plugin-userscripts (#202)
1 parent c7dbdcd commit 575e466

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+64
-0
lines changed

.eslintrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
"es2020": true,
55
"greasemonkey": true
66
},
7+
"overrides": [
8+
{
9+
"files": ["*.user.js"],
10+
"extends": ["plugin:userscripts/recommended"],
11+
"rules": {
12+
"userscripts/align-attributes": ["error", 1],
13+
"userscripts/compat-headers": "error"
14+
},
15+
"settings": {
16+
"userscriptVersions": {
17+
"tampermonkey": ">=4",
18+
"violentmonkey": ">=2",
19+
"greasemonkey": "*"
20+
}
21+
}
22+
}
23+
],
724
"parserOptions": {
825
"ecmaVersion": 11
926
},

gist-raw-links.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/gist-raw-links.user.js
2020
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
2121
// ==/UserScript==
22+
2223
/* global GM */
2324
(() => {
2425
"use strict";

gist-to-dabblet.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/gist-to-dabblet.user.js
1414
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
1515
// ==/UserScript==
16+
1617
(() => {
1718
"use strict";
1819

github-code-colors.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-code-colors.user.js
1919
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
2020
// ==/UserScript==
21+
2122
/* global Color */
2223
(() => {
2324
"use strict";

github-code-folding.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// @downloadURL https://raw.githubusercontent.com/Mottie/Github-userscripts/master/github-code-folding.user.js
1919
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
2020
// ==/UserScript==
21+
2122
/* global $ $$ on */
2223
/**
2324
* This userscript has been heavily modified from the "github-code-folding"

github-code-guides.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-code-guides.user.js
1616
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
1717
// ==/UserScript==
18+
1819
/* copy into textarea to check the guides
1920
1 2 3 4 5 6 7 8
2021
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345

github-code-show-whitespace.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// @downloadURL https://raw.githubusercontent.com/Mottie/Github-userscripts/master/github-code-show-whitespace.user.js
2424
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
2525
// ==/UserScript==
26+
2627
/* global GM */
2728
(async () => {
2829
"use strict";

github-collapse-in-comment.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-collapse-in-comment.user.js
1919
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
2020
// ==/UserScript==
21+
2122
(() => {
2223
"use strict";
2324
/*

github-collapse-markdown.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-collapse-markdown.user.js
2020
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
2121
// ==/UserScript==
22+
2223
(() => {
2324
"use strict";
2425

github-copy-code-snippet.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-copy-code-snippet.user.js
1515
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
1616
// ==/UserScript==
17+
1718
(() => {
1819
"use strict";
1920

0 commit comments

Comments
 (0)