Disable linting for autogenerated SDK TS definitions (#10747)
This commit is contained in:
parent
6d26eddf75
commit
f2cdbc3db5
3 changed files with 7 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
|||
"prettier": true,
|
||||
"space": 2,
|
||||
"plugins": ["import"],
|
||||
"ignores": ["sdk.d.ts"],
|
||||
"rules": {
|
||||
"n/no-unsupported-features": "off",
|
||||
"n/no-unsupported-features/node-builtins": "off",
|
||||
|
@ -35,7 +34,11 @@
|
|||
"overrides": [
|
||||
{
|
||||
"files": ["sdk.mjs", "sdk.d.ts"],
|
||||
"nodeVersion": ">=14"
|
||||
"nodeVersion": ">=14",
|
||||
"rules": {
|
||||
"eslint-comments/disable-enable-pair": "off",
|
||||
"unicorn/no-abusive-eslint-disable": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
|
|
|
@ -55,7 +55,7 @@ const generateSdkTs = async () => {
|
|||
await generateSdkMts();
|
||||
|
||||
const autogeneratedMessage =
|
||||
'/* The next code is autogenerated from sdk.mjs */';
|
||||
'/* The next code is autogenerated from sdk.mjs */\n/* eslint-disable */';
|
||||
const newSdkTsContent =
|
||||
// eslint-disable-next-line unicorn/no-await-expression-member
|
||||
(await fs.readFile(sdkTs, 'utf8')).split(autogeneratedMessage)[0] +
|
||||
|
|
1
sdk.d.ts
vendored
1
sdk.d.ts
vendored
|
@ -61,6 +61,7 @@ export type IconData = {
|
|||
};
|
||||
|
||||
/* The next code is autogenerated from sdk.mjs */
|
||||
/* eslint-disable */
|
||||
|
||||
export const URL_REGEX: RegExp;
|
||||
export const SVG_PATH_REGEX: RegExp;
|
||||
|
|
Loading…
Reference in a new issue