File tree Expand file tree Collapse file tree 3 files changed +59
-42
lines changed
Expand file tree Collapse file tree 3 files changed +59
-42
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import ljharbConfig from '@ljharb/eslint-config/flat' ;
2+
3+ export default [
4+ {
5+ ignores : [ 'dist/' ] ,
6+ } ,
7+
8+ ...ljharbConfig ,
9+
10+ {
11+ rules : {
12+ complexity : 'off' ,
13+ 'consistent-return' : 'warn' ,
14+ 'func-name-matching' : 'off' ,
15+ 'id-length' : [
16+ 'error' ,
17+ {
18+ max : 25 ,
19+ min : 1 ,
20+ properties : 'never' ,
21+ } ,
22+ ] ,
23+ indent : [ 'error' , 4 ] ,
24+ 'max-lines' : 'off' ,
25+ 'max-lines-per-function' : [
26+ 'error' ,
27+ { max : 150 } ,
28+ ] ,
29+ 'max-params' : [ 'error' , 18 ] ,
30+ 'max-statements' : [ 'error' , 100 ] ,
31+ 'multiline-comment-style' : 'off' ,
32+ 'no-continue' : 'warn' ,
33+ 'no-magic-numbers' : 'off' ,
34+ 'no-restricted-syntax' : [
35+ 'error' ,
36+ 'BreakStatement' ,
37+ 'DebuggerStatement' ,
38+ 'ForInStatement' ,
39+ 'LabeledStatement' ,
40+ 'WithStatement' ,
41+ ] ,
42+ } ,
43+ } ,
44+
45+ {
46+ files : [ 'test/**' ] ,
47+ rules : {
48+ 'function-paren-newline' : 'off' ,
49+ 'max-lines-per-function' : 'off' ,
50+ 'max-statements' : 'off' ,
51+ 'no-buffer-constructor' : 'off' ,
52+ 'no-extend-native' : 'off' ,
53+ 'no-throw-literal' : 'off' ,
54+ } ,
55+ } ,
56+ ] ;
Original file line number Diff line number Diff line change 3636 "devDependencies" : {
3737 "@browserify/envify" : " ^6.0.0" ,
3838 "@browserify/uglifyify" : " ^6.0.0" ,
39- "@ljharb/eslint-config" : " ^21.2.0 " ,
39+ "@ljharb/eslint-config" : " ^22.0.1 " ,
4040 "browserify" : " ^16.5.2" ,
4141 "bundle-collapser" : " ^1.4.0" ,
4242 "common-shakeify" : " ~1.0.0" ,
4343 "eclint" : " ^2.8.1" ,
4444 "es-value-fixtures" : " ^1.7.1" ,
45- "eslint" : " =8.8.0 " ,
45+ "eslint" : " ^9.39.1 " ,
4646 "evalmd" : " ^0.0.19" ,
4747 "for-each" : " ^0.3.5" ,
4848 "glob" : " =10.3.7" ,
5757 "mkdirp" : " ^0.5.5" ,
5858 "mock-property" : " ^1.1.0" ,
5959 "module-deps" : " ^6.2.3" ,
60- "npmignore" : " ^0.3.1 " ,
60+ "npmignore" : " ^0.3.2 " ,
6161 "nyc" : " ^10.3.2" ,
6262 "object-inspect" : " ^1.13.4" ,
6363 "qs-iconv" : " ^1.0.4" ,
You can’t perform that action at this time.
0 commit comments