11import eslint from "@eslint/js" ;
2- import stylistic from "@stylistic/eslint-plugin" ;
32import { defineConfig } from "eslint/config" ;
43import eslintConfigPrettier from "eslint-config-prettier" ;
54import vitest from "@vitest/eslint-plugin" ;
65import tseslint from "typescript-eslint" ;
76
87export default defineConfig (
9- {
10- ignores : [ "**/dist/" , "**/node_modules/" , ".agents/" , "example/" , "**/expo-plugin/" , "**/react-native.config.*" ]
11- } ,
8+ { ignores : [ "**/dist/" , "**/node_modules/" , ".agents/" , "example/" , "**/expo-plugin/" , "**/react-native.config.*" ] } ,
129 eslint . configs . recommended ,
1310 {
1411 extends : tseslint . configs . recommendedTypeChecked ,
@@ -30,18 +27,8 @@ export default defineConfig(
3027 "@typescript-eslint/no-duplicate-type-constituents" : "off" ,
3128 "@typescript-eslint/restrict-plus-operands" : "off" ,
3229 "@typescript-eslint/no-unused-vars" : "error" ,
33- "@typescript-eslint/no-unused-expressions" : [
34- "error" ,
35- {
36- allowShortCircuit : true
37- }
38- ] ,
39- "@typescript-eslint/no-misused-promises" : [
40- "error" ,
41- {
42- checksVoidReturn : false
43- }
44- ]
30+ "@typescript-eslint/no-unused-expressions" : [ "error" , { allowShortCircuit : true } ] ,
31+ "@typescript-eslint/no-misused-promises" : [ "error" , { checksVoidReturn : false } ]
4532 }
4633 } ,
4734 {
@@ -56,37 +43,6 @@ export default defineConfig(
5643 }
5744 } ,
5845 eslintConfigPrettier ,
59- {
60- plugins : {
61- "@stylistic" : stylistic
62- } ,
63- rules : {
64- curly : [ "error" , "all" ] ,
65- "@stylistic/object-curly-newline" : [
66- "error" ,
67- {
68- ObjectExpression : {
69- minProperties : 1
70- }
71- }
72- ] ,
73- "@stylistic/brace-style" : [
74- "error" ,
75- "1tbs" ,
76- {
77- allowSingleLine : false
78- }
79- ] ,
80- "padding-line-between-statements" : [
81- "error" ,
82- {
83- blankLine : "always" ,
84- prev : "block-like" ,
85- next : [ "if" , "while" , "for" , "do" ]
86- }
87- ]
88- }
89- } ,
9046 {
9147 files : [ "**/test/**/*.ts" ] ,
9248 plugins : vitest . configs . recommended . plugins ,
0 commit comments