@@ -16,7 +16,7 @@ const fs = require('node:fs')
16
16
*/
17
17
const config = {
18
18
env : {
19
- [ require ( './tsconfig.build.json' ) . compilerOptions . target ] : true ,
19
+ es2023 : true ,
20
20
node : true
21
21
} ,
22
22
extends : [ ] ,
@@ -33,15 +33,8 @@ const config = {
33
33
} ,
34
34
parser : '@typescript-eslint/parser' ,
35
35
parserOptions : {
36
- ecmaFeatures : {
37
- jsx : true
38
- } ,
39
36
extraFileExtensions : [ ] ,
40
- project : [
41
- '**/tsconfig.json' ,
42
- './tsconfig.cjs.json'
43
- ] ,
44
- sourceType : require ( './package.json' ) . type ,
37
+ project : [ '**/tsconfig.json' ] ,
45
38
tsconfigRootDir : process . cwd ( ) ,
46
39
warnOnUnsupportedTypeScriptVersion : true
47
40
} ,
@@ -630,7 +623,7 @@ const config = {
630
623
2 ,
631
624
{
632
625
version : require ( './package.json' ) . engines ?. node ??
633
- '>=' + fs . readFileSync ( './. nvmrc' , 'utf8' )
626
+ '>=' + fs . readFileSync ( '.nvmrc' , 'utf8' )
634
627
}
635
628
] ,
636
629
'node/prefer-global/buffer' : 2 ,
@@ -925,6 +918,68 @@ const config = {
925
918
'@typescript-eslint/explicit-member-accessibility' : 0
926
919
}
927
920
} ,
921
+ {
922
+ files : [ '**/*.html' ] ,
923
+ parser : '@html-eslint/parser' ,
924
+ plugins : [ '@html-eslint' , 'html' ] ,
925
+ rules : {
926
+ '@html-eslint/element-newline' : 2 ,
927
+ '@html-eslint/id-naming-convention' : 2 ,
928
+ '@html-eslint/indent' : [ 2 , 2 ] ,
929
+ '@html-eslint/lowercase' : 2 ,
930
+ '@html-eslint/no-abstract-roles' : 2 ,
931
+ '@html-eslint/no-accesskey-attrs' : 2 ,
932
+ '@html-eslint/no-aria-hidden-body' : 2 ,
933
+ '@html-eslint/no-duplicate-attrs' : 2 ,
934
+ '@html-eslint/no-duplicate-id' : 2 ,
935
+ '@html-eslint/no-extra-spacing-attrs' : 2 ,
936
+ '@html-eslint/no-inline-styles' : 2 ,
937
+ '@html-eslint/no-multiple-empty-lines' : 2 ,
938
+ '@html-eslint/no-multiple-h1' : 2 ,
939
+ '@html-eslint/no-non-scalable-viewport' : 2 ,
940
+ '@html-eslint/no-obsolete-tags' : 2 ,
941
+ '@html-eslint/no-positive-tabindex' : 2 ,
942
+ '@html-eslint/no-restricted-attr-values' : [
943
+ 2 ,
944
+ {
945
+ attrPatterns : [ ] ,
946
+ attrValuePatterns : [ ]
947
+ }
948
+ ] ,
949
+ '@html-eslint/no-restricted-attrs' : [
950
+ 2 ,
951
+ {
952
+ attrPatterns : [ ] ,
953
+ tagPatterns : [ ]
954
+ }
955
+ ] ,
956
+ '@html-eslint/no-script-style-type' : 2 ,
957
+ '@html-eslint/no-skip-heading-levels' : 2 ,
958
+ '@html-eslint/no-target-blank' : 2 ,
959
+ '@html-eslint/no-trailing-spaces' : 2 ,
960
+ '@html-eslint/quotes' : 2 ,
961
+ '@html-eslint/require-attrs' : [ 2 ] ,
962
+ '@html-eslint/require-button-type' : 2 ,
963
+ '@html-eslint/require-closing-tags' : [ 2 , { selfClosing : 'always' } ] ,
964
+ '@html-eslint/require-doctype' : 2 ,
965
+ '@html-eslint/require-frame-title' : 2 ,
966
+ '@html-eslint/require-img-alt' : 2 ,
967
+ '@html-eslint/require-lang' : 2 ,
968
+ '@html-eslint/require-li-container' : 2 ,
969
+ '@html-eslint/require-meta-charset' : 2 ,
970
+ '@html-eslint/require-meta-description' : 2 ,
971
+ '@html-eslint/require-meta-viewport' : 2 ,
972
+ '@html-eslint/require-open-graph-protocol' : 0 ,
973
+ '@html-eslint/require-title' : 2 ,
974
+ '@html-eslint/sort-attrs' : 2
975
+ } ,
976
+ settings : {
977
+ html : {
978
+ extensions : [ '.html' ] ,
979
+ indent : '+2'
980
+ }
981
+ }
982
+ } ,
928
983
{
929
984
files : '**/*.+(json|json5|jsonc)' ,
930
985
parser : 'jsonc-eslint-parser' ,
@@ -981,14 +1036,6 @@ const config = {
981
1036
React : false
982
1037
} ,
983
1038
parser : 'eslint-mdx' ,
984
- parserOptions : {
985
- ecmaFeatures : {
986
- impliedStrict : true ,
987
- jsx : true
988
- } ,
989
- ecmaVersion : 'latest' ,
990
- sourceType : 'module'
991
- } ,
992
1039
plugins : [ 'markdown' , 'markdownlint' , 'mdx' ] ,
993
1040
processor : 'mdx/remark' ,
994
1041
rules : {
@@ -1257,6 +1304,14 @@ const config = {
1257
1304
}
1258
1305
}
1259
1306
] ,
1307
+ parserOptions : {
1308
+ ecmaFeatures : {
1309
+ impliedStrict : true ,
1310
+ jsx : true
1311
+ } ,
1312
+ ecmaVersion : 'latest' ,
1313
+ sourceType : require ( './package.json' ) . type
1314
+ } ,
1260
1315
plugins : [ ] ,
1261
1316
reportUnusedDisableDirectives : true ,
1262
1317
rules : { } ,
0 commit comments