11{
2- "extends" : [
3- " next/core-web-vitals" ,
4- " airbnb" ,
5- " airbnb-typescript" ,
6- " airbnb/hooks" ,
7- " prettier" ,
8- " plugin:@typescript-eslint/recommended" ,
9- " plugin:@typescript-eslint/recommended-requiring-type-checking"
10- ],
11- "plugins" : [" react" , " @typescript-eslint" , " prettier" ],
12- "env" : {
2+ "extends" : [
3+ " next/core-web-vitals" ,
4+ " airbnb" ,
5+ " airbnb-typescript" ,
6+ " prettier" ,
7+ " plugin:@typescript-eslint/recommended"
8+ ],
9+ "plugins" : [" react" , " @typescript-eslint" , " prettier" ],
10+ "env" : {
1311 "browser" : true ,
14- "es2021 " : true ,
12+ "es2023 " : true ,
1513 "node" : true
16- },
17- "parser" : " @typescript-eslint/parser" ,
18- "parserOptions" : {
19- "project" : " ./tsconfig.json" ,
20- "ecmaFeatures" : {
21- "jsx" : true
22- },
23- "ecmaVersion" : 13 ,
14+ },
15+ "parser" : " @typescript-eslint/parser" ,
16+ "parserOptions" : {
17+ "project" : " ./tsconfig.json" ,
18+ "ecmaFeatures" : {
19+ "jsx" : true
20+ },
21+ "ecmaVersion" : " latest " ,
2422 "sourceType" : " module"
25- },
26- "rules" : {
23+ },
24+ "rules" : {
2725 "@typescript-eslint/no-misused-promises" : [
28- " error" ,
29- {
30- "checksConditionals" : false ,
31- "checksVoidReturn" : false
32- }
26+ " error" ,
27+ {
28+ "checksConditionals" : false ,
29+ "checksVoidReturn" : false
30+ }
3331 ],
3432 "no-underscore-dangle" : " off" ,
3533 "react/react-in-jsx-scope" : " off" ,
4038 "import/prefer-default-export" : " off" ,
4139 "no-param-reassign" : " off" ,
4240 "import/extensions" : [
43- " error" ,
44- " ignorePackages" ,
45- {
46- "ts" : " never" ,
47- "tsx" : " never"
48- }
41+ " error" ,
42+ " ignorePackages" ,
43+ {
44+ "ts" : " never" ,
45+ "tsx" : " never"
46+ }
4947 ],
5048 "import/no-unresolved" : " error" ,
5149 "consistent-return" : " off" ,
5250 "arrow-body-style" : " off" ,
5351 "prefer-arrow-callback" : " off" ,
54- "react/jsx-filename-extension" : " off " ,
52+ "react/jsx-filename-extension" : [ " error " , { "extensions" : [ " .tsx " , " .jsx " ] }] ,
5553 "react/function-component-definition" : [
56- " error" ,
57- {
58- "namedComponents" : " arrow-function" ,
59- "unnamedComponents" : " arrow-function"
60- }
54+ " error" ,
55+ {
56+ "namedComponents" : " arrow-function" ,
57+ "unnamedComponents" : " arrow-function"
58+ }
6159 ],
6260 "prettier/prettier" : " warn" ,
63- "jsx-a11y/anchor-is-valid" : [ " error" , {
64- "components" : [ " Link" ],
65- "specialLink" : [ " hrefLeft" , " hrefRight" ],
66- "aspects" : [ " invalidHref" , " preferButton" ]
67- }],
61+ "jsx-a11y/anchor-is-valid" : [
62+ " error" ,
63+ {
64+ "components" : [" Link" ],
65+ "specialLink" : [" hrefLeft" , " hrefRight" ],
66+ "aspects" : [" invalidHref" , " preferButton" ]
67+ }
68+ ],
6869 "jsx-a11y/label-has-associated-control" : [
69- " error" ,
70- {
71- "required" : {
72- "some" : [" nesting" , " id" ]
73- }
74- }
75- ],
76- "jsx-a11y/label-has-for" : [
77- " error" ,
78- {
79- "required" : {
80- "some" : [" nesting" , " id" ]
81- }
82- }
83- ],
70+ " error" ,
71+ {
72+ "required" : {
73+ "some" : [" nesting" , " id" ]
74+ }
75+ }
76+ ],
77+ "jsx-a11y/control-has-associated-label" : " off" , // Added this line
8478 "@next/next/no-img-element" : " off" ,
8579 "react/no-danger" : " off" ,
8680 "no-void" : [" error" , { "allowAsStatement" : true }]
87- },
88- "overrides" : [
81+ },
82+ "settings" : {
83+ "react" : {
84+ "version" : " detect"
85+ },
86+ "import/resolver" : {
87+ "typescript" : {},
88+ "node" : {
89+ "extensions" : [" .js" , " .jsx" , " .ts" , " .tsx" ]
90+ }
91+ }
92+ },
93+ "overrides" : [
8994 {
90- "files" : [" *.js" ],
91- "rules" : {
92- "@typescript-eslint/no-unsafe-assignment" : " off" ,
93- "@typescript-eslint/no-var-requires" : " off" ,
94- "@typescript-eslint/no-unsafe-call" : " off" ,
95- "@typescript-eslint/no-unsafe-member-access" : " off" ,
96- "@typescript-eslint/no-unsafe-return" : " off"
97- }
95+ "files" : [" *.js" ],
96+ "rules" : {
97+ "@typescript-eslint/no-unsafe-assignment" : " off" ,
98+ "@typescript-eslint/no-var-requires" : " off" ,
99+ "@typescript-eslint/no-unsafe-call" : " off" ,
100+ "@typescript-eslint/no-unsafe-member-access" : " off" ,
101+ "@typescript-eslint/no-unsafe-return" : " off"
102+ }
98103 }
99- ]
100- }
104+ ]
105+ }
0 commit comments