Skip to content

Commit 6953e48

Browse files
CopilotGochoMugo
andauthored
Add ESLint npm script for source linting (#3)
* Initial plan * Initial commit - planning changes Co-authored-by: GochoMugo <[email protected]> * Add eslint to devDependencies and create test:lint script Co-authored-by: GochoMugo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: GochoMugo <[email protected]>
1 parent c8e0923 commit 6953e48

File tree

3 files changed

+1757
-15
lines changed

3 files changed

+1757
-15
lines changed

eslint.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = [
2+
{
3+
languageOptions: {
4+
ecmaVersion: 2022,
5+
sourceType: "commonjs",
6+
globals: {
7+
console: "readonly",
8+
process: "readonly",
9+
require: "readonly",
10+
module: "readonly",
11+
__dirname: "readonly",
12+
__filename: "readonly",
13+
exports: "readonly",
14+
Buffer: "readonly",
15+
setTimeout: "readonly",
16+
setInterval: "readonly",
17+
clearTimeout: "readonly",
18+
clearInterval: "readonly",
19+
},
20+
},
21+
rules: {
22+
"no-unused-vars": "warn",
23+
"no-undef": "error",
24+
},
25+
},
26+
];

0 commit comments

Comments
 (0)