Skip to content

Commit dd867e2

Browse files
committed
Update ESLint config
1 parent 4237f27 commit dd867e2

File tree

1 file changed

+1
-54
lines changed

1 file changed

+1
-54
lines changed

eslint.config.js

+1-54
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const gitignorePath = path.resolve(__dirname, ".gitignore");
1414
export default tseslint.config(
1515
includeIgnoreFile(gitignorePath),
1616
{
17-
ignores: [".yarn/**/*", "*.cursorrules"],
17+
ignores: [".yarn/**/*"],
1818
},
1919
eslint.configs.recommended,
2020
...tseslint.configs.strictTypeChecked,
@@ -74,58 +74,5 @@ export default tseslint.config(
7474
"@typescript-eslint/no-non-null-assertion": "off",
7575
},
7676
},
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-
},
13077
eslintPluginPrettierRecommended,
13178
);

0 commit comments

Comments
 (0)