Skip to content

Commit

Permalink
chore: lf
Browse files Browse the repository at this point in the history
  • Loading branch information
reiniiriarios committed Apr 22, 2024
1 parent 395d634 commit 0e55959
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 153 deletions.
28 changes: 14 additions & 14 deletions PRIVACY.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Privacy Policy

Wordwyrm doesn't track, log, or share your personal information.

## Third-party integration

By default, the app uses an Open Library API. Open Library is a project of the Internet Archive.
See [Internet Archive's Terms of Use, Privacy Policy, and Copyright Policy](https://archive.org/about/terms.php).

If using Google API Keys, see the
[Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice) as well as
[Google Privacy & Terms](https://policies.google.com/privacy).

This app does not use either of these APIs to collect any data on users.
# Privacy Policy

Wordwyrm doesn't track, log, or share your personal information.

## Third-party integration

By default, the app uses an Open Library API. Open Library is a project of the Internet Archive.
See [Internet Archive's Terms of Use, Privacy Policy, and Copyright Policy](https://archive.org/about/terms.php).

If using Google API Keys, see the
[Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice) as well as
[Google Privacy & Terms](https://policies.google.com/privacy).

This app does not use either of these APIs to collect any data on users.
158 changes: 79 additions & 79 deletions eslint.rules.mjs
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
export default {
/** @type {import('@typescript-eslint/utils').TSESLint.SharedConfig.RulesRecord} */
tsRules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"no-multi-spaces": [
"error",
{
ignoreEOLComments: true,
},
],
"block-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"space-in-parens": ["error", "never"],
"comma-spacing": [
"error",
{
before: false,
after: true,
},
],
"key-spacing": [
"error",
{
afterColon: true,
beforeColon: false,
},
],
quotes: [
"error",
"double",
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
semi: ["error", "always"],
"no-console": ["warn"],
"no-constant-condition": ["warn"],
curly: ["error", "all"],
"brace-style": [
"error",
"1tbs",
{
allowSingleLine: false,
},
],
"keyword-spacing": [
"error",
{
before: true,
after: true,
},
],
"object-curly-spacing": ["error", "always"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"spaced-comment": [2, "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": "off",
"prefer-template": "error",
"no-useless-concat": "error",
"linebreak-style": ["error", "unix"],
"eol-last": ["error", "always"],
"template-curly-spacing": ["error", "never"],
"no-control-regex": "off",
"no-extra-boolean-cast": "off",
"no-useless-escape": "off",
},
};
export default {
/** @type {import('@typescript-eslint/utils').TSESLint.SharedConfig.RulesRecord} */
tsRules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"no-multi-spaces": [
"error",
{
ignoreEOLComments: true,
},
],
"block-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"space-in-parens": ["error", "never"],
"comma-spacing": [
"error",
{
before: false,
after: true,
},
],
"key-spacing": [
"error",
{
afterColon: true,
beforeColon: false,
},
],
quotes: [
"error",
"double",
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
semi: ["error", "always"],
"no-console": ["warn"],
"no-constant-condition": ["warn"],
curly: ["error", "all"],
"brace-style": [
"error",
"1tbs",
{
allowSingleLine: false,
},
],
"keyword-spacing": [
"error",
{
before: true,
after: true,
},
],
"object-curly-spacing": ["error", "always"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"spaced-comment": [2, "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": "off",
"prefer-template": "error",
"no-useless-concat": "error",
"linebreak-style": ["error", "unix"],
"eol-last": ["error", "always"],
"template-curly-spacing": ["error", "never"],
"no-control-regex": "off",
"no-extra-boolean-cast": "off",
"no-useless-escape": "off",
},
};
80 changes: 40 additions & 40 deletions scripts/setBuildEnv.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
import fs from "fs";
import path from "path";

const pkg = process.argv.pop();

const buildData = (() => {
switch (pkg) {
case "dev":
return { platform: "dev", package: "__none__" };
case "appImage":
return { platform: "linux", package: pkg };
case "appx":
return { platform: "windows", package: pkg };
case "deb":
return { platform: "linux", package: pkg };
case "dmg":
return { platform: "darwin", package: pkg };
case "linux":
return { platform: "linux", package: pkg };
case "mas":
return { platform: "darwin", package: pkg };
case "nsis":
return { platform: "windows", package: pkg };
case "rpm":
return { platform: "linux", package: pkg };
case "snap":
return { platform: "linux", package: pkg };
case "win":
return { platform: "windows", package: "portable" };
default:
console.error("Invalid build package.");
process.exit();
}
})();

fs.writeFileSync(
path.join(__dirname, "../electron/build.ts"),
`export default ${JSON.stringify(buildData, undefined, 2)};\n`,
{ flag: "w", encoding: "utf8" },
);
import fs from "fs";
import path from "path";

const pkg = process.argv.pop();

const buildData = (() => {
switch (pkg) {
case "dev":
return { platform: "dev", package: "__none__" };
case "appImage":
return { platform: "linux", package: pkg };
case "appx":
return { platform: "windows", package: pkg };
case "deb":
return { platform: "linux", package: pkg };
case "dmg":
return { platform: "darwin", package: pkg };
case "linux":
return { platform: "linux", package: pkg };
case "mas":
return { platform: "darwin", package: pkg };
case "nsis":
return { platform: "windows", package: pkg };
case "rpm":
return { platform: "linux", package: pkg };
case "snap":
return { platform: "linux", package: pkg };
case "win":
return { platform: "windows", package: "portable" };
default:
console.error("Invalid build package.");
process.exit();
}
})();

fs.writeFileSync(
path.join(__dirname, "../electron/build.ts"),
`export default ${JSON.stringify(buildData, undefined, 2)};\n`,
{ flag: "w", encoding: "utf8" },
);
40 changes: 20 additions & 20 deletions stylelint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/** @type {import('stylelint').Config} */
export default {
extends: "stylelint-config-standard-scss",
customSyntax: "postcss-html",
rules: {
"selector-class-pattern": [
"^(?:[a-z][A-Za-z0-9]*(?:-[A-Za-z0-9]+)*(?:__[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)?(?:--[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)?)?(?:\\[.+\\])?$",
{
message: "Expected property name to be in BEM format",
resolveNestedSelectors: true,
},
],
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["global", "export"],
},
],
},
};
/** @type {import('stylelint').Config} */
export default {
extends: "stylelint-config-standard-scss",
customSyntax: "postcss-html",
rules: {
"selector-class-pattern": [
"^(?:[a-z][A-Za-z0-9]*(?:-[A-Za-z0-9]+)*(?:__[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)?(?:--[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)?)?(?:\\[.+\\])?$",
{
message: "Expected property name to be in BEM format",
resolveNestedSelectors: true,
},
],
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["global", "export"],
},
],
},
};

0 comments on commit 0e55959

Please sign in to comment.