style: fix indent in non-ts files
now all files use same indent character (tab)
This commit is contained in:
parent
f16fb69c57
commit
772be85e67
|
@ -2,9 +2,7 @@
|
||||||
"root": true,
|
"root": true,
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"env": { "node": true },
|
"env": { "node": true },
|
||||||
"plugins": [
|
"plugins": ["@typescript-eslint"],
|
||||||
"@typescript-eslint"
|
|
||||||
],
|
|
||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
|
@ -20,4 +18,4 @@
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
"@typescript-eslint/no-empty-function": "off"
|
"@typescript-eslint/no-empty-function": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,14 +10,7 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"lib": [
|
"lib": ["DOM", "ES5", "ES6", "ES7"]
|
||||||
"DOM",
|
|
||||||
"ES5",
|
|
||||||
"ES6",
|
|
||||||
"ES7"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["**/*.ts"]
|
||||||
"**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,12 +13,12 @@ const targetVersion = process.env.npm_package_version;
|
||||||
let menifest = JSON.parse((await readFile("manifest.json")).toString());
|
let menifest = JSON.parse((await readFile("manifest.json")).toString());
|
||||||
const { minAppVersion } = menifest;
|
const { minAppVersion } = menifest;
|
||||||
menifest.version = targetVersion;
|
menifest.version = targetVersion;
|
||||||
await writeFile("manifest.json", JSON.stringify(menifest, null, 2));
|
await writeFile("manifest.json", JSON.stringify(menifest, null, "\t"));
|
||||||
|
|
||||||
// update versions.json with target version and minAppVersion from manifest.json
|
// update versions.json with target version and minAppVersion from manifest.json
|
||||||
let versions = JSON.parse((await readFile("versions.json")).toString());
|
let versions = JSON.parse((await readFile("versions.json")).toString());
|
||||||
versions[targetVersion] = minAppVersion;
|
versions[targetVersion] = minAppVersion;
|
||||||
await writeFile("versions.json", JSON.stringify(versions, null, 2));
|
await writeFile("versions.json", JSON.stringify(versions, null, "\t"));
|
||||||
|
|
||||||
// save changes in git
|
// save changes in git
|
||||||
await exec("git add manifest.json versions.json");
|
await exec("git add manifest.json versions.json");
|
||||||
|
|
Loading…
Reference in New Issue