This commit is contained in:
Kris
2026-03-27 18:01:17 +08:00
parent 86c2d549e2
commit f439bfffe8
450 changed files with 63870 additions and 1408 deletions

View File

@@ -0,0 +1,20 @@
module.exports = [
{
files: ['**/*.js'],
rules: {
'no-unused-vars': 'error',
'no-var': 'error',
'semi': ['error', 'always'],
'quotes': ['error', 'single'],
'no-duplicate-string': 'off',
'max-params': ['error', 5]
},
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module'
}
},
{
ignores: ['node_modules/**', 'dist/**', 'coverage/**']
}
];

View File

@@ -0,0 +1,12 @@
// This file has intentional lint issues for testing
var unusedVariable = 5;
console.log("hello")
console.log("hello")
console.log("hello")
function tooManyParams(a, b, c, d, e, f) {
return a + b;
}
var x = 1
var y = 2

View File

@@ -0,0 +1,10 @@
// This file has no lint issues
const greeting = 'hello';
console.log(greeting);
function add(a, b) {
return a + b;
}
const result = add(1, 2);
console.log(result);