@@ -3,38 +3,39 @@ const path = require('path');
33module . exports = {
44 // Configuration for JavaScript files
55 extends : [
6- 'expo' ,
7- 'plugin:tailwindcss/recommended' ,
6+ 'expo' ,
7+ 'plugin:tailwindcss/recommended' ,
88 'prettier' ,
9- 'eslint:recommended'
9+ 'eslint:recommended' ,
10+ 'plugin:@tanstack/query/recommended' ,
1011 ] ,
1112 env : {
1213 'jest/globals' : true ,
13- ' node' : true
14+ node : true ,
1415 } ,
1516 plugins : [
16- 'unicorn' ,
17+ 'unicorn' ,
1718 '@typescript-eslint' ,
1819 'unused-imports' ,
1920 'tailwindcss' ,
2021 'simple-import-sort' ,
2122 'sonarjs' ,
22- 'jest'
23+ 'jest' ,
2324 ] ,
2425 parser : '@typescript-eslint/parser' ,
2526 parserOptions : {
2627 project : './tsconfig.json' ,
2728 } ,
2829 ignorePatterns : [
29- " node_modules" ,
30- " *.config.js" ,
31- " docs" ,
32- " cli" ,
33- " android" ,
34- " ios" ,
35- " lint-staged.config.js" ,
36- " i18next-syntax-validation.js" ,
37- " .eslintrc.js"
30+ ' node_modules' ,
31+ ' *.config.js' ,
32+ ' docs' ,
33+ ' cli' ,
34+ ' android' ,
35+ ' ios' ,
36+ ' lint-staged.config.js' ,
37+ ' i18next-syntax-validation.js' ,
38+ ' .eslintrc.js' ,
3839 ] ,
3940 rules : {
4041 'import/no-duplicates' : 'error' ,
@@ -81,7 +82,7 @@ module.exports = {
8182 argsIgnorePattern : '^_' ,
8283 varsIgnorePattern : '^_' ,
8384 caughtErrorsIgnorePattern : '^_' ,
84- }
85+ } ,
8586 ] ,
8687 curly : [ 2 , 'all' ] ,
8788 'prefer-const' : [
@@ -91,16 +92,20 @@ module.exports = {
9192 } ,
9293 ] ,
9394 'object-shorthand' : 'error' ,
94- 'arrow-body-style' : [ " error" , " as-needed" ] ,
95- 'no-console' : [ 'error' , { allow : [ 'error' ] } ] ,
95+ 'arrow-body-style' : [ ' error' , ' as-needed' ] ,
96+ 'no-console' : [ 'error' , { allow : [ 'error' ] } ] ,
9697 'guard-for-in' : 'error' ,
97- '@typescript-eslint/no-magic-numbers' : [ "error" ,
98- { ignoreArrayIndexes : true ,
99- ignoreEnums : true ,
100- ignore : [ - 1 , 0 , 1 ]
101- }
98+ '@typescript-eslint/no-magic-numbers' : [
99+ 'error' ,
100+ { ignoreArrayIndexes : true , ignoreEnums : true , ignore : [ - 1 , 0 , 1 ] } ,
102101 ] ,
103- '@typescript-eslint/prefer-nullish-coalescing' : "error"
102+ '@typescript-eslint/prefer-nullish-coalescing' : 'error' ,
103+ 'react/jsx-fragments' : [ 'error' , 'syntax' ] ,
104+ 'react/jsx-no-useless-fragment' : 'error' ,
105+ 'react/no-children-prop' : [ 'error' , { allowFunctions : true } ] ,
106+ 'no-nested-ternary' : 'error' ,
107+ 'no-unneeded-ternary' : 'error' ,
108+ 'prefer-template' : 'error' ,
104109 } ,
105110 overrides : [
106111 // Configuration for translations files (i18next)
0 commit comments