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,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"env": { "node": true },
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"@typescript-eslint/no-empty-function": "off"
|
||||
}
|
||||
}
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"env": { "node": true },
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"@typescript-eslint/no-empty-function": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Sets all the text color to red! */
|
||||
body {
|
||||
color: red;
|
||||
color: red;
|
||||
}
|
||||
|
|
|
@ -1,23 +1,16 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"inlineSourceMap": true,
|
||||
"inlineSources": true,
|
||||
"module": "ESNext",
|
||||
"target": "ES6",
|
||||
"allowJs": true,
|
||||
"noImplicitAny": true,
|
||||
"moduleResolution": "node",
|
||||
"importHelpers": true,
|
||||
"isolatedModules": true,
|
||||
"lib": [
|
||||
"DOM",
|
||||
"ES5",
|
||||
"ES6",
|
||||
"ES7"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts"
|
||||
]
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"inlineSourceMap": true,
|
||||
"inlineSources": true,
|
||||
"module": "ESNext",
|
||||
"target": "ES6",
|
||||
"allowJs": true,
|
||||
"noImplicitAny": true,
|
||||
"moduleResolution": "node",
|
||||
"importHelpers": true,
|
||||
"isolatedModules": true,
|
||||
"lib": ["DOM", "ES5", "ES6", "ES7"]
|
||||
},
|
||||
"include": ["**/*.ts"]
|
||||
}
|
||||
|
|
|
@ -13,13 +13,13 @@ const targetVersion = process.env.npm_package_version;
|
|||
let menifest = JSON.parse((await readFile("manifest.json")).toString());
|
||||
const { minAppVersion } = menifest;
|
||||
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
|
||||
let versions = JSON.parse((await readFile("versions.json")).toString());
|
||||
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");
|
||||
})().catch(() => process.exit(1));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"1.0.0": "0.9.7",
|
||||
"1.0.1": "0.9.12"
|
||||
"1.0.0": "0.9.7",
|
||||
"1.0.1": "0.9.12"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue