Skip to content

Commit cadf00a

Browse files
committed
chore: upadate packages
1 parent 697d2c2 commit cadf00a

File tree

8 files changed

+2607
-3821
lines changed

8 files changed

+2607
-3821
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 80 deletions
This file was deleted.

eslint.config.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
export default [
2+
{
3+
files: ['src/**', 'test/**'],
4+
ignores: [
5+
'**/node_modules/**',
6+
'src/thirdparty/**',
7+
'src/**/*-min.js',
8+
'src/**/*.min.js'
9+
],
10+
languageOptions: {
11+
ecmaVersion: 2022, // Automatically sets up appropriate ECMAScript features
12+
sourceType: 'module',
13+
globals: {
14+
process: 'readonly', // Assume process is a global variable (specific to Node.js)
15+
setTimeout: 'readonly', // Assume setTimeout is a global variable
16+
console: 'readonly',
17+
structuredClone: 'readonly', // Add structuredClone as a global
18+
beforeEach: 'readonly', // Testing framework globals
19+
it: 'readonly',
20+
describe: 'readonly'
21+
}
22+
},
23+
rules: {
24+
'no-caller': 'error',
25+
'no-control-regex': 'error',
26+
'no-empty': 'warn',
27+
'no-invalid-regexp': 'error',
28+
'no-regex-spaces': 'error',
29+
'no-unsafe-negation': 'warn',
30+
'valid-jsdoc': 'off',
31+
'valid-typeof': 'error',
32+
'curly': 'error',
33+
'eqeqeq': ['error', 'smart'],
34+
'guard-for-in': 'off',
35+
'no-else-return': 'warn',
36+
'no-fallthrough': 'error',
37+
'no-invalid-this': 'warn',
38+
'no-iterator': 'error',
39+
'no-loop-func': 'error',
40+
'no-multi-str': 'error',
41+
'no-new-func': 'error',
42+
'no-new-wrappers': 'error',
43+
'no-new': 'error',
44+
'no-proto': 'error',
45+
'no-redeclare': 'warn',
46+
'no-script-url': 'error',
47+
'wrap-iife': ['error', 'outside'],
48+
'strict': 'error',
49+
'no-shadow-restricted-names': 'error',
50+
'no-shadow': 'warn',
51+
'no-undef': 'error',
52+
'no-unused-vars': ['warn', {'vars': 'all', 'args': 'none'}],
53+
'no-use-before-define': 'off',
54+
'no-new-require': 'error',
55+
'block-spacing': 'warn',
56+
'brace-style': ['warn', '1tbs', { 'allowSingleLine': true }],
57+
'camelcase': 'warn',
58+
'comma-dangle': 'error',
59+
'comma-spacing': 'warn',
60+
'comma-style': ['warn', 'last'],
61+
'computed-property-spacing': 'warn',
62+
'eol-last': 'warn',
63+
'func-call-spacing': 'warn',
64+
'indent': ['warn', 4],
65+
'key-spacing': ['warn', { 'beforeColon': false, 'afterColon': true }],
66+
'max-len': ['warn', 120],
67+
'new-cap': ['off', {
68+
'capIsNewExceptions': [
69+
'$.Deferred',
70+
'$.Event',
71+
'CodeMirror.Pos',
72+
'Immutable.Map',
73+
'Immutable.List',
74+
'JSLINT'
75+
]
76+
}],
77+
'new-parens': 'error',
78+
'no-bitwise': 'error',
79+
'no-new-object': 'error',
80+
'no-trailing-spaces': 'warn',
81+
'semi-spacing': 'warn',
82+
'semi': 'error'
83+
}
84+
}
85+
];

0 commit comments

Comments
 (0)