Skip to content

Commit 348058f

Browse files
committed
Update devDependencies and lint
1 parent 081501e commit 348058f

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ collect.set('isTrending', [
355355
'https://github.com/trending/unknown',
356356
]);
357357

358-
export const isBranches = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('branches') ?? false;
358+
export const isBranches = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('branches');
359359
collect.set('isBranches', [
360360
'https://github.com/sindresorhus/refined-github/branches',
361361
]);

package.json

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,24 @@
3333
"envs": [
3434
"browser"
3535
],
36+
"overrides": [
37+
{
38+
"files": [
39+
"*.ts"
40+
],
41+
"rules": {
42+
"@typescript-eslint/no-unnecessary-condition": "error"
43+
}
44+
}
45+
],
3646
"rules": {
3747
"camelcase": "off",
38-
"unicorn/import-index": "off",
39-
"import/no-useless-path-segments": "off",
40-
"@typescript-eslint/prefer-readonly-parameter-types": "off",
4148
"comma-dangle": [
4249
"error",
4350
"always-multiline"
44-
]
51+
],
52+
"import/no-useless-path-segments": "off",
53+
"unicorn/import-index": "off"
4554
}
4655
},
4756
"ava": {
@@ -54,22 +63,21 @@
5463
]
5564
},
5665
"devDependencies": {
57-
"@rollup/plugin-json": "^4.0.3",
58-
"@rollup/plugin-node-resolve": "^7.1.3",
59-
"@rollup/plugin-typescript": "^4.1.1",
66+
"@rollup/plugin-json": "^4.1.0",
67+
"@rollup/plugin-typescript": "^4.1.2",
6068
"@sindresorhus/tsconfig": "^0.7.0",
61-
"@types/jsdom": "^16.2.1",
62-
"ava": "^3.8.1",
69+
"@types/jsdom": "^16.2.3",
70+
"ava": "^3.8.2",
6371
"esm": "^3.2.25",
6472
"github-reserved-names": "^1.1.8",
6573
"jsdom": "^16.2.2",
6674
"npm-run-all": "^4.1.5",
67-
"rollup": "^2.7.6",
68-
"rollup-plugin-terser": "^5.3.0",
75+
"rollup": "^2.13.1",
76+
"rollup-plugin-terser": "^6.1.0",
6977
"strip-indent": "^3.0.0",
70-
"ts-node": "^8.10.1",
71-
"tslib": "^1.11.2",
72-
"typescript": "^3.8.3",
73-
"xo": "^0.30.0"
78+
"ts-node": "^8.10.2",
79+
"tslib": "^2.0.0",
80+
"typescript": "^3.9.5",
81+
"xo": "^0.32.0"
7482
}
7583
}

0 commit comments

Comments
 (0)