@@ -14,7 +14,7 @@ const gitignorePath = path.resolve(__dirname, ".gitignore");
14
14
export default tseslint . config (
15
15
includeIgnoreFile ( gitignorePath ) ,
16
16
{
17
- ignores : [ ".yarn/**/*" , "*.cursorrules" ] ,
17
+ ignores : [ ".yarn/**/*" ] ,
18
18
} ,
19
19
eslint . configs . recommended ,
20
20
...tseslint . configs . strictTypeChecked ,
@@ -74,58 +74,5 @@ export default tseslint.config(
74
74
"@typescript-eslint/no-non-null-assertion" : "off" ,
75
75
} ,
76
76
} ,
77
- {
78
- files : [ "sdks/js-sdk/**/*.ts" ] ,
79
- rules : {
80
- "no-restricted-syntax" : [
81
- "error" ,
82
- {
83
- selector : "ImportDeclaration[source.value=/^(node:)?crypto$/]" ,
84
- message :
85
- "Do not import directly from `crypto`, use `@/encryption` instead." ,
86
- } ,
87
- ] ,
88
- } ,
89
- } ,
90
- {
91
- files : [ "sdks/js-sdk/test/**/*.ts" ] ,
92
- rules : {
93
- "@typescript-eslint/no-floating-promises" : "off" ,
94
- "@typescript-eslint/no-unsafe-member-access" : "off" ,
95
- "@typescript-eslint/no-unsafe-assignment" : "off" ,
96
- "@typescript-eslint/no-unsafe-return" : "off" ,
97
- "@typescript-eslint/no-unsafe-argument" : "off" ,
98
- "@typescript-eslint/no-unsafe-call" : "off" ,
99
- "@typescript-eslint/no-confusing-void-expression" : "off" ,
100
- "@typescript-eslint/require-await" : "off" ,
101
- "@typescript-eslint/await-thenable" : "off" ,
102
- "@typescript-eslint/no-unnecessary-condition" : "off" ,
103
- "@typescript-eslint/no-explicit-any" : "off" ,
104
- "@typescript-eslint/only-throw-error" : "off" ,
105
- "@typescript-eslint/unbound-method" : "off" ,
106
- "@typescript-eslint/no-misused-promises" : "off" ,
107
- "@typescript-eslint/no-unnecessary-type-arguments" : "off" ,
108
- "@typescript-eslint/no-unnecessary-type-assertion" : "off" ,
109
- "@typescript-eslint/no-deprecated" : "off" ,
110
- "@typescript-eslint/restrict-plus-operands" : "off" ,
111
- "@typescript-eslint/no-unused-vars" : "off" ,
112
- "@typescript-eslint/ban-ts-comment" : "off" ,
113
- "@typescript-eslint/no-non-null-assertion" : "off" ,
114
- "no-empty" : "off" ,
115
- } ,
116
- } ,
117
- {
118
- files : [ "sdks/**/*.ts" ] ,
119
- rules : {
120
- "no-restricted-syntax" : [
121
- "error" ,
122
- {
123
- selector : "ImportDeclaration[source.value=/^\\.\\./]" ,
124
- message :
125
- "Relative parent imports are not allowed, use path aliases instead." ,
126
- } ,
127
- ] ,
128
- } ,
129
- } ,
130
77
eslintPluginPrettierRecommended ,
131
78
) ;
0 commit comments