@@ -8,10 +8,12 @@ export default [
88 {
99 ignores : [
1010 "dist/**" ,
11- "eslint.config.js" ,
12- "vitest.config.ts" ,
11+ "*.config.{js,mjs,ts}" ,
1312 "**/_generated/" ,
1413 "node10stubs.mjs" ,
14+ "example/.expo/**" ,
15+ "example/**/*.config.{js,mjs,ts}" ,
16+ "example/expo-env.d.ts" ,
1517 ] ,
1618 } ,
1719 {
@@ -60,7 +62,7 @@ export default [
6062 } ,
6163 // React app code - Browser environment
6264 {
63- files : [ "src/react/**/*.{ts,tsx}" , "example/src /**/*.{ts,tsx}" ] ,
65+ files : [ "src/react/**/*.{ts,tsx}" , "example/app /**/*.{ts,tsx}" ] ,
6466 languageOptions : {
6567 ecmaVersion : 2020 ,
6668 globals : globals . browser ,
@@ -84,16 +86,14 @@ export default [
8486 varsIgnorePattern : "^_" ,
8587 } ,
8688 ] ,
87- } ,
88- } ,
89- // Example config files (vite.config.ts, etc.) - Node environment
90- {
91- files : [ "example/vite.config.ts" , "example/**/*.config.{js,ts}" ] ,
92- languageOptions : {
93- globals : {
94- ...globals . node ,
95- ...globals . browser ,
96- } ,
89+ "@typescript-eslint/no-unused-expressions" : [
90+ "warn" ,
91+ {
92+ allowShortCircuit : true ,
93+ allowTernary : true ,
94+ allowTaggedTemplates : true ,
95+ } ,
96+ ] ,
9797 } ,
9898 } ,
9999] ;
0 commit comments