Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 25aba6c

Browse files
RF Linting
1 parent 6b14ac3 commit 25aba6c

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.eslintrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"extends": [
88
"eslint:recommended",
99
"plugin:@typescript-eslint/eslint-recommended",
10-
"plugin:@typescript-eslint/recommended"
11-
]
10+
"plugin:@typescript-eslint/recommended",
11+
"@lachlanmcdonald/eslint-config-eslint"
12+
],
13+
"rules": {
14+
"spaced-comment": [ "warn", "always", { "markers": ["!", "=require", "=include"] } ],
15+
"no-extra-parens": ["off"]
16+
}
1217
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"homepage": "https://github.com/lachlanmcdonald/hackernews-user-tags#readme",
2222
"devDependencies": {
23+
"@lachlanmcdonald/eslint-config-eslint": "^0.4.2",
2324
"@types/tampermonkey": "^4.0.5",
2425
"@typescript-eslint/eslint-plugin": "^5.39.0",
2526
"@typescript-eslint/parser": "^5.39.0",

src/TaggingControls.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* global GM */
2+
/* eslint-env es2019, browser */
3+
14
/*!
25
* MIT License
36
*

tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2019",
4+
"module": "commonjs",
5+
"noImplicitReturns": true,
6+
"noUnusedLocals": true,
7+
"noImplicitAny": true,
8+
"sourceMap": false,
9+
"rootDir": "src",
10+
"lib": [
11+
"es2019",
12+
"dom"
13+
]
14+
}
15+
}

0 commit comments

Comments
 (0)