style: fix indent in non-ts files
now all files use same indent character (tab)
This commit is contained in:
parent
f16fb69c57
commit
772be85e67
42
.eslintrc
42
.eslintrc
|
@ -1,23 +1,21 @@
|
||||||
{
|
{
|
||||||
"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": [
|
||||||
],
|
"eslint:recommended",
|
||||||
"extends": [
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"eslint:recommended",
|
"plugin:@typescript-eslint/recommended"
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
],
|
||||||
"plugin:@typescript-eslint/recommended"
|
"parserOptions": {
|
||||||
],
|
"sourceType": "module"
|
||||||
"parserOptions": {
|
},
|
||||||
"sourceType": "module"
|
"rules": {
|
||||||
},
|
"no-unused-vars": "off",
|
||||||
"rules": {
|
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
||||||
"no-unused-vars": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
"no-prototype-builtins": "off",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/no-empty-function": "off"
|
||||||
"no-prototype-builtins": "off",
|
}
|
||||||
"@typescript-eslint/no-empty-function": "off"
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Sets all the text color to red! */
|
/* Sets all the text color to red! */
|
||||||
body {
|
body {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +1,16 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"inlineSourceMap": true,
|
"inlineSourceMap": true,
|
||||||
"inlineSources": true,
|
"inlineSources": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"target": "ES6",
|
"target": "ES6",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"lib": [
|
"lib": ["DOM", "ES5", "ES6", "ES7"]
|
||||||
"DOM",
|
},
|
||||||
"ES5",
|
"include": ["**/*.ts"]
|
||||||
"ES6",
|
|
||||||
"ES7"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,13 +13,13 @@ 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");
|
||||||
})().catch(() => process.exit(1));
|
})().catch(() => process.exit(1));
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"1.0.0": "0.9.7",
|
"1.0.0": "0.9.7",
|
||||||
"1.0.1": "0.9.12"
|
"1.0.1": "0.9.12"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue