Skip to content

A local-first personal finance app

nit: use curly apostrophes throughout the UI (#791)

Jed Fox3cb18683c622
diff --git a/.eslintrc.js b/.eslintrc.js
index 20a1bf6ad3..0f2fd4ab34 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,5 +1,16 @@
+const path = require('path');
+
+const rulesDirPlugin = require('eslint-plugin-rulesdir');
+rulesDirPlugin.RULES_DIR = path.join(
+ __dirname,
+ 'packages',
+ 'eslint-plugin-actual',
+ 'lib',
+ 'rules',
+);
+
module.exports = {
- plugins: ['prettier', 'import'],
+ plugins: ['prettier', 'import', 'rulesdir'],
extends: ['react-app'],
reportUnusedDisableDirectives: true,
rules: {
@@ -17,6 +28,8 @@ module.exports = {
require('confusing-browser-globals').filter(g => g !== 'self'),
),
+ 'rulesdir/typography': 'error',
+
// https://github.com/eslint/eslint/issues/16954
// https://github.com/eslint/eslint/issues/16953
'no-loop-func': 'off',
diff --git a/package.json b/package.json
index dba3f6b4d9..25fac31b7d 100644
--- a/package.json
+++ b/package.json
@@ -38,6 +38,7 @@
"eslint": "8.35.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-prettier": "4.2.1",
+ "eslint-plugin-rulesdir": "^0.2.2",
"npm-run-all": "^4.1.3",
"patch-package": "^6.1.2",
"prettier": "2.8.2",
diff --git a/packages/desktop-client/src/components/FatalError.js b/packages/desktop-client/src/components/FatalError.js
index ccb2d35b91..1f48673945 100644
--- a/packages/desktop-client/src/components/FatalError.js
+++ b/packages/desktop-client/src/components/FatalError.js
@@ -22,10 +22,10 @@ class FatalError extends React.Component {
// IndexedDB wasn't able to open the database
msg = (
<Text>
- Your browser doesn{"'"}t support IndexedDB in this environment, a
- feature that Actual requires to run. This might happen if you are in
- private browsing mode. Please try a different browser or turn off
- private browsing.
+ Your browser doesn’t support IndexedDB in this environment, a feature
+ that Actual requires to run. This might happen if you are in private
+ browsing mode. Please try a different browser or turn off private
+ browsing.
</Text>
);
} else if (error.SharedArrayBufferMissing) {
diff --git a/packages/desktop-client/src/components/MobileWebMessage.js b/packages/desktop-client/src/components/MobileWebMessage.js
index c26060bfd7..c1fcb1474e 100644
--- a/packages/desktop-client/src/components/MobileWebMessage.js
+++ b/packages/desktop-client/src/components/MobileWebMessage.js
@@ -99,7 +99,7 @@ export default function MobileWebMessage() {
userSelect: 'none',
}}
>
- Don't remind me again
+ Don’t remind me again
</label>
</View>
</View>
diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js
index 54de034617..08feb5ecfe 100644
--- a/packages/desktop-client/src/components/accounts/Account.js
+++ b/packages/desktop-client/src/components/accounts/Account.js
@@ -167,7 +167,7 @@ function ReconcilingMessage({
{(targetDiff > 0 ? '+' : '') + format(targetDiff, 'financial')}
</strong>{' '}
to match
- <br /> your bank{"'"}s balance of{' '}
+ <br /> your bank’s balance of{' '}
<Text style={{ fontWeight: 700 }}>
{format(targetBalance, 'financial')}
</Text>
@@ -286,7 +286,7 @@ function AccountMenu({
},
{
name: 'toggle-cleared',
- text: (showCleared ? 'Hide' : 'Show') + ' "Cleared" Checkboxes',
+ text: (showCleared ? 'Hide' : 'Show') + ' “Cleared” Checkboxes',
},
{ name: 'export', text: 'Export' },
{ name: 'reconcile', text: 'Reconcile' },
diff --git a/packages/desktop-client/src/components/accounts/AccountSyncCheck.js b/packages/desktop-client/src/components/accounts/AccountSyncCheck.js
index 425abb4e1f..9d601a2395 100644
--- a/packages/desktop-client/src/components/accounts/AccountSyncCheck.js
+++ b/packages/desktop-client/src/components/accounts/AccountSyncCheck.js
@@ -110,7 +110,7 @@ function AccountSyncCheck({
color: 'currentColor',
}}
/>{' '}
- This account is experiencing connection problems. Let{"'"}s fix it.
+ This account is experiencing connection problems. Let’s fix it.
</Button>
{open && (
diff --git a/packages/desktop-client/src/components/accounts/TransactionsTable.test.js b/packages/desktop-client/src/components/accounts/TransactionsTable.test.js
index 5420ef0660..790385cecf 100644
--- a/packages/desktop-client/src/components/accounts/TransactionsTable.test.js
+++ b/packages/desktop-client/src/components/accounts/TransactionsTable.test.js
@@ -541,7 +541,7 @@ describe('Transactions', () => {
expectToBeEditingField(container, 'category', 2);
});
- test("dropdown hovers but doesn't change value", async () => {
+ test('dropdown hovers but doesn’t change value', async () => {
const { container, getTransactions } = renderTransactions();
let input = await editField(container, 'category', 2);
diff --git a/packages/desktop-client/src/components/budget/MobileBudget.js b/packages/desktop-client/src/components/budget/MobileBudget.js
index 02bbaeb89e..0f323d0edd 100644
--- a/packages/desktop-client/src/components/budget/MobileBudget.js
+++ b/packages/desktop-client/src/components/budget/MobileBudget.js
@@ -192,7 +192,7 @@ class Budget extends React.Component {
let options = [
'Edit Categories',
- "Copy last month's budget",
+ 'Copy last month’s budget',
'Set budgets to zero',
'Set budgets to 3 month average',
budgetType === 'report' && 'Apply to all future budgets',
diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.js b/packages/desktop-client/src/components/budget/MobileBudgetTable.js
index d609c19348..58bf8ef4c8 100644
--- a/packages/desktop-client/src/components/budget/MobileBudgetTable.js
+++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.js
@@ -1086,6 +1086,7 @@ function UnconnectedBudgetHeader({
},
]}
>
+ {/* eslint-disable-next-line rulesdir/typography */}
{monthUtils.format(currentMonth, "MMMM ''yy")}
</Text>
{editMode ? (
diff --git a/packages/desktop-client/src/components/manager/ConfigServer.js b/packages/desktop-client/src/components/manager/ConfigServer.js
index 30afb69c22..8b67e0a6c7 100644
--- a/packages/desktop-client/src/components/manager/ConfigServer.js
+++ b/packages/desktop-client/src/components/manager/ConfigServer.js
@@ -92,7 +92,7 @@ export default function ConfigServer() {
return (
<>
<View style={{ maxWidth: 500, marginTop: -30 }}>
- <Title text="Where's the server?" />
+ <Title text="Where’s the server?" />
<Text
style={{
@@ -187,7 +187,7 @@ export default function ConfigServer() {
style={{ color: colors.n4, margin: 5 }}
onClick={onSkip}
>
- Don't use a server
+ Don’t use a server
</Button>
{isNonProductionEnvironment() && (
diff --git a/packages/desktop-client/src/components/modals/CreateEncryptionKey.js b/packages/desktop-client/src/components/modals/CreateEncryptionKey.js
index 5f256c9457..fd7202d342 100644
--- a/packages/desktop-client/src/components/modals/CreateEncryptionKey.js
+++ b/packages/desktop-client/src/components/modals/CreateEncryptionKey.js
@@ -77,7 +77,7 @@ export default function CreateEncryptionKey({
<ul {...css({ marginTop: 0, '& li': { marginBottom: 8 } })}>
<li>
<strong>Important:</strong> if you forget this password{' '}
- <em>and</em> you don't have any local copies of your data,
+ <em>and</em> you don’t have any local copies of your data,
you will lose access to all your data. The data cannot be
decrypted without the password.
</li>
@@ -86,7 +86,7 @@ export default function CreateEncryptionKey({
generate a new key for each file you want to encrypt.
</li>
<li>
- If you've already downloaded your data on other devices, you
+ If you’ve already downloaded your data on other devices, you
will need to reset them. Actual will automatically take you
through this process.
</li>
diff --git a/packages/desktop-client/src/components/modals/FixEncryptionKey.js b/packages/desktop-client/src/components/modals/FixEncryptionKey.js
index 98d47e1286..9057f96885 100644
--- a/packages/desktop-client/src/components/modals/FixEncryptionKey.js
+++ b/packages/desktop-client/src/components/modals/FixEncryptionKey.js
@@ -78,8 +78,8 @@ export default function FixEncryptionKey({
</P>
) : (
<P>
- We don{"'"}t have a key that encrypts or decrypts this file. Enter
- the password for this file to create the key for encryption.{' '}
+ We don’t have a key that encrypts or decrypts this file. Enter the
+ password for this file to create the key for encryption.{' '}
<ExternalLink
asAnchor
href="https://actualbudget.github.io/docs/Getting-Started/sync#end-to-end-encryption"
diff --git a/packages/desktop-client/src/components/modals/ManageRulesModal.js b/packages/desktop-client/src/components/modals/ManageRulesModal.js
index 5d10c35570..b87f3503bd 100644
--- a/packages/desktop-client/src/components/modals/ManageRulesModal.js
+++ b/packages/desktop-client/src/components/modals/ManageRulesModal.js
@@ -12,7 +12,7 @@ export default function ManageRulesModal({ modalProps, payeeId }) {
if (isNonProductionEnvironment()) {
if (location.pathname !== '/payees') {
throw new Error(
- `Possibly invalid use of ManageRulesModal, add the current url '${location.pathname}' to the allowlist if you're confident the modal can never appear on top of the '/rules' page.`,
+ `Possibly invalid use of ManageRulesModal, add the current url \`${location.pathname}\` to the allowlist if you’re confident the modal can never appear on top of the \`/rules\` page.`,
);
}
}
diff --git a/packages/desktop-client/src/components/reports/CashFlow.js b/packages/desktop-client/src/components/reports/CashFlow.js
index 5d5e64219b..d5326eeeaf 100644
--- a/packages/desktop-client/src/components/reports/CashFlow.js
+++ b/packages/desktop-client/src/components/reports/CashFlow.js
@@ -149,7 +149,7 @@ function CashFlow() {
<P>
Cash flow shows the balance of your budgeted accounts over time, and
the amount of expenses/income each day or month. Your budgeted
- accounts are considered to be "cash on hand", so this gives you a
+ accounts are considered to be “cash on hand,” so this gives you a
picture of how available money fluctuates.
</P>
</View>
diff --git a/packages/desktop-client/src/components/reports/NetWorth.js b/packages/desktop-client/src/components/reports/NetWorth.js
index cc50c0a088..17cdf64164 100644
--- a/packages/desktop-client/src/components/reports/NetWorth.js
+++ b/packages/desktop-client/src/components/reports/NetWorth.js
@@ -102,8 +102,8 @@ function NetWorth({ accounts }) {
</P>
<P>
Net worth shows the balance of all accounts over time, including all
- of your investments. Your "net worth" is considered to be the amount
- you'd have if you sold all your assets and paid off as much debt as
+ of your investments. Your “net worth” is considered to be the amount
+ you’d have if you sold all your assets and paid off as much debt as
possible. If you hover over the graph, you can also see the amount
of assets and debt individually.
</P>
diff --git a/packages/desktop-client/src/components/reports/Tooltip.js b/packages/desktop-client/src/components/reports/Tooltip.js
index 3f3683778b..a1fdd26cc2 100644
--- a/packages/desktop-client/src/components/reports/Tooltip.js
+++ b/packages/desktop-client/src/components/reports/Tooltip.js
@@ -71,6 +71,7 @@ class Tooltip extends React.Component {
'7px solid ' + colors.n1,
[position === 'right' ? 'left' : 'right']: -6,
top: 'calc(50% - 7px)',
+ // eslint-disable-next-line rulesdir/typography
content: '" "',
}),
style,
diff --git a/packages/desktop-client/src/components/reports/chart-theme.js b/packages/desktop-client/src/components/reports/chart-theme.js
index 280bfae6f9..d303f33fe1 100644
--- a/packages/desktop-client/src/components/reports/chart-theme.js
+++ b/packages/desktop-client/src/components/reports/chart-theme.js
@@ -9,7 +9,7 @@ let colorFades = {
// Typography
const sansSerif =
- '"Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif';
+ 'Inter var, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif';
const letterSpacing = 'normal';
const fontSize = 13;
diff --git a/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.js b/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.js
index 6300013d69..41e2c8391b 100644
--- a/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.js
+++ b/packages/desktop-client/src/components/reports/graphs/CashFlowGraph.js
@@ -47,6 +47,7 @@ function CashFlowGraph({ style, start, end, graphData, isConcise, compact }) {
}}
/>
<VictoryAxis
+ // eslint-disable-next-line rulesdir/typography
tickFormat={x => d.format(x, isConcise ? "MMM ''yy" : 'MMM d')}
tickValues={graphData.balances.map(item => item.x)}
tickCount={Math.min(5, graphData.balances.length)}
diff --git a/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.js b/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.js
index 60dee3c169..5a28cf929d 100644
--- a/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.js
+++ b/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.js
@@ -142,6 +142,7 @@ function NetWorthGraph({ style, start, end, graphData, compact }) {
{!compact && (
<VictoryAxis
style={{ ticks: { stroke: 'red' } }}
+ // eslint-disable-next-line rulesdir/typography
tickFormat={x => d.format(x, "MMM ''yy")}
tickValues={graphData.data.map(item => item.x)}
tickCount={Math.min(5, graphData.data.length)}
diff --git a/packages/desktop-client/src/components/schedules/DiscoverSchedules.js b/packages/desktop-client/src/components/schedules/DiscoverSchedules.js
index cca716fceb..1333fbcbd0 100644
--- a/packages/desktop-client/src/components/schedules/DiscoverSchedules.js
+++ b/packages/desktop-client/src/components/schedules/DiscoverSchedules.js
@@ -170,8 +170,8 @@ export default function DiscoverSchedules() {
the ones you want to create.
</P>
<P>
- If you expected a schedule here and don't see it, it might be because
- the payees of the transactions don't match. Make sure you rename payees
+ If you expected a schedule here and don’t see it, it might be because
+ the payees of the transactions don’t match. Make sure you rename payees
on all transactions for a schedule to be the same payee.
</P>
<P>
diff --git a/packages/desktop-client/src/components/schedules/PostsOfflineNotification.js b/packages/desktop-client/src/components/schedules/PostsOfflineNotification.js
index 722379ca70..3c77a86300 100644
--- a/packages/desktop-client/src/components/schedules/PostsOfflineNotification.js
+++ b/packages/desktop-client/src/components/schedules/PostsOfflineNotification.js
@@ -61,7 +61,7 @@ export default function PostsOfflineNotification() {
</P>
<P>
You can always manually post a transaction later for a due schedule by
- selecting the schedule and clicking "Post transaction" in the action
+ selecting the schedule and clicking “Post transaction” in the action
menu.
</P>
<Stack
diff --git a/packages/desktop-client/src/components/settings/Encryption.js b/packages/desktop-client/src/components/settings/Encryption.js
index 1d5d6a6e91..186c8f2462 100644
--- a/packages/desktop-client/src/components/settings/Encryption.js
+++ b/packages/desktop-client/src/components/settings/Encryption.js
@@ -61,7 +61,7 @@ export default function EncryptionSettings({ prefs, pushModal }) {
>
<Text>
<strong>End-to-end encryption</strong> is not enabled. Any data on the
- server is still protected by the server password, but it's not
+ server is still protected by the server password, but it’s not
end-to-end encrypted which means the server owners have the ability to
read it. If you want, you can use an additional password to encrypt your
data on the server.{' '}
diff --git a/packages/desktop-client/src/components/settings/FixSplits.js b/packages/desktop-client/src/components/settings/FixSplits.js
index 468406a311..73024c82fb 100644
--- a/packages/desktop-client/src/components/settings/FixSplits.js
+++ b/packages/desktop-client/src/components/settings/FixSplits.js
@@ -30,7 +30,7 @@ function renderResults(results) {
if (result !== '') {
result += '\n';
}
- result += `Fixed ${numDeleted} splits that weren't properly deleted.`;
+ result += `Fixed ${numDeleted} splits that weren’t properly deleted.`;
}
}
@@ -98,8 +98,8 @@ export default function FixSplitsTool() {
</li>
<li>
Sync the payee and cleared flag of a split transaction to the main
- or "parent" transaction, if appropriate. The payee will only be
- set if it currently doesn't have one.
+ or “parent” transaction, if appropriate. The payee will only be
+ set if it currently doesn’t have one.
</li>
</ul>
</P>
diff --git a/packages/desktop-client/src/components/settings/Reset.js b/packages/desktop-client/src/components/settings/Reset.js
index ecfc482b6d..e253f4601e 100644
--- a/packages/desktop-client/src/components/settings/Reset.js
+++ b/packages/desktop-client/src/components/settings/Reset.js
@@ -26,7 +26,7 @@ export function ResetCache() {
<strong>Reset budget cache</strong> will clear all cached values for the
budget and recalculate the entire budget. All values in the budget are
cached for performance reasons, and if there is a bug in the cache you
- won't see correct values. There is no danger in resetting the cache.
+ won’t see correct values. There is no danger in resetting the cache.
Hopefully you never have to do this.
</Text>
</Setting>
diff --git a/packages/desktop-client/src/components/tutorial/BudgetCategories.js b/packages/desktop-client/src/components/tutorial/BudgetCategories.js
index a90650a73a..24a0f26cac 100644
--- a/packages/desktop-client/src/components/tutorial/BudgetCategories.js
+++ b/packages/desktop-client/src/components/tutorial/BudgetCategories.js
@@ -31,11 +31,11 @@ function BudgetInitial({ targetRect, navigationProps }) {
<P>
As money comes in, you put it in categories. As money is spent, you
- can see each categories' balance.
+ can see each categories’ balance.
</P>
<P isLast={true}>
- Don't overthink categories. If you haven't budgeted before, start with
+ Don’t overthink categories. If you haven’t budgeted before, start with
just a few.
</P>
<Navigation {...navigationProps} />
diff --git a/packages/desktop-client/src/components/tutorial/BudgetInitial.js b/packages/desktop-client/src/components/tutorial/BudgetInitial.js
index 16277bb156..78103baf5d 100644
--- a/packages/desktop-client/src/components/tutorial/BudgetInitial.js
+++ b/packages/desktop-client/src/components/tutorial/BudgetInitial.js
@@ -18,12 +18,12 @@ function BudgetInitial({ accounts, navigationProps }) {
{!minimized && (
<React.Fragment>
<P>
- You should see all of your current accounts' balance available to
+ You should see all of your current accounts’ balance available to
budget. Click on the budgeted column for a category create a budget.
- Keep doing this until your "To Budget" amount is zero.
+ Keep doing this until your “To Budget” amount is zero.
</P>
<P>
- Don't worry too much about your initial budget. Just guess. You'll
+ Don’t worry too much about your initial budget. Just guess. You’ll
learn more about your spending in the first couple months.
</P>
</React.Fragment>
diff --git a/packages/desktop-client/src/components/tutorial/BudgetNewIncome.js b/packages/desktop-client/src/components/tutorial/BudgetNewIncome.js
index 143d8c9553..ae04442c54 100644
--- a/packages/desktop-client/src/components/tutorial/BudgetNewIncome.js
+++ b/packages/desktop-client/src/components/tutorial/BudgetNewIncome.js
@@ -29,14 +29,14 @@ function BudgetSummary({ targetRect, navigationProps }) {
>
<Title>More money!</Title>
<P>
- If you added any deposit transactions, you'll see that you have more
+ If you added any deposit transactions, you’ll see that you have more
money to budget. Any income becomes{' '}
<strong>immediately available</strong> to budget. Hooray!
</P>
<P isLast={true}>
- If you've already budgeted all you need this month, you can click the
- "To Budget" amount and select "Hold for next month". This puts the
+ If you’ve already budgeted all you need this month, you can click the
+ “To Budget” amount and select “Hold for next month.” This puts the
money away for next month.
</P>
<Navigation {...navigationProps} showBack={false} />
diff --git a/packages/desktop-client/src/components/tutorial/BudgetNextMonth.js b/packages/desktop-client/src/components/tutorial/BudgetNextMonth.js
index 06a8eb3a72..b4a08ad3eb 100644
--- a/packages/desktop-client/src/components/tutorial/BudgetNextMonth.js
+++ b/packages/desktop-client/src/components/tutorial/BudgetNextMonth.js
@@ -32,14 +32,14 @@ function BudgetNextMonth({ stepTwo, navigationProps }) {
) : (
<View>
<P>
- It's easier this time though! Just hover over the new month and
- click 3 dots menu and select "Copy last month's budget" to use the
+ It’s easier this time though! Just hover over the new month and
+ click 3 dots menu and select “Copy last month’s budget” to use the
same budget as last month.
</P>
<P isLast={true}>
You likely need to tweak the budget for the new month, depending
- on overspending and other factors. That's ok! Adjusting your
+ on overspending and other factors. That’s ok! Adjusting your
budget as life happens is crucial to a realistic budget.
</P>
</View>
diff --git a/packages/desktop-client/src/components/tutorial/BudgetSummary.js b/packages/desktop-client/src/components/tutorial/BudgetSummary.js
index f134dfd25d..fa67a9abe5 100644
--- a/packages/desktop-client/src/components/tutorial/BudgetSummary.js
+++ b/packages/desktop-client/src/components/tutorial/BudgetSummary.js
@@ -35,14 +35,14 @@ function BudgetSummary({ fromYNAB, targetRect, navigationProps }) {
<P isLast={!fromYNAB}>
This is a summary of what money you have to budget and how Actual
- calculated it. It's your current income (including anything leftover
+ calculated it. It’s your current income (including anything leftover
from last month) minus any overspending from last month and any
already budgeted amount.
</P>
{fromYNAB && (
<P isLast={true}>
- Since you're coming from YNAB 4, an important distinction is that
+ Since you’re coming from YNAB 4, an important distinction is that
money is always immediately available.
</P>
)}
diff --git a/packages/desktop-client/src/components/tutorial/DeleteTransactions.js b/packages/desktop-client/src/components/tutorial/DeleteTransactions.js
index 2d9b7b7445..504628577c 100644
--- a/packages/desktop-client/src/components/tutorial/DeleteTransactions.js
+++ b/packages/desktop-client/src/components/tutorial/DeleteTransactions.js
@@ -10,8 +10,8 @@ function DeleteTransactions({ targetRect, navigationProps }) {
<Standalone width={500}>
<Title>Deleting transactions</Title>
<P isLast={true}>
- Let's cleanup the fake transactions we added. You can delete
- transactions by hovering over them and clicking the "X" beside them.
+ Let’s cleanup the fake transactions we added. You can delete
+ transactions by hovering over them and clicking the “X” beside them.
</P>
<Navigation {...navigationProps} showBack={false} />
</Standalone>
diff --git a/packages/desktop-client/src/components/tutorial/Final.js b/packages/desktop-client/src/components/tutorial/Final.js
index dbb7939523..183be07965 100644
--- a/packages/desktop-client/src/components/tutorial/Final.js
+++ b/packages/desktop-client/src/components/tutorial/Final.js
@@ -7,7 +7,7 @@ import { Standalone, Title, ExternalLink } from './common';
function Final({ targetRect, navigationProps }) {
return (
<Standalone width={500}>
- <Title>That's it!</Title>
+ <Title>That’s it!</Title>
<P>
With that workflow you can have peace of mind that what you are looking
at reflects reality.{' '}
diff --git a/packages/desktop-client/src/components/tutorial/Intro.js b/packages/desktop-client/src/components/tutorial/Intro.js
index df609aae70..0524c04b99 100644
--- a/packages/desktop-client/src/components/tutorial/Intro.js
+++ b/packages/desktop-client/src/components/tutorial/Intro.js
@@ -13,7 +13,7 @@ import { Standalone, Title, ExternalLink } from './common';
function Intro({ fromYNAB, nextTutorialStage, closeTutorial }) {
return (
<Standalone width={500}>
- <Title>Let's get started</Title>
+ <Title>Let’s get started</Title>
<P>
Welcome to Actual!{' '}
<span role="img" aria-label="Party" aria-hidden="true">
diff --git a/packages/desktop-client/src/components/tutorial/Overspending.js b/packages/desktop-client/src/components/tutorial/Overspending.js
index 3e74dbf48f..a7d024ff51 100644
--- a/packages/desktop-client/src/components/tutorial/Overspending.js
+++ b/packages/desktop-client/src/components/tutorial/Overspending.js
@@ -31,28 +31,27 @@ function Overspending({ navigationProps, stepTwo }) {
<View>
<P>
The category balance becomes negative. Next month will
- reset this balance to zero, and you'll see it in
- "Overspent in {month}" in next month's summary, which in
- turn takes it out of next month's "To Budget" amount.{' '}
+ reset this balance to zero, and you’ll see it in
+ “Overspent in {month}” in next month’s summary, which in
+ turn takes it out of next month’s “To Budget” amount.{' '}
</P>
<P isLast={true}>
<strong>
- When you overspend, it's taken out of next month's
+ When you overspend, it’s taken out of next month’s
available budget.
</strong>{' '}
A simple workflow would be to just take it out of next
- month's savings, or whatever you like.
+ month’s savings, or whatever you like.
</P>
</View>
) : (
<View>
<P>
- What happens when you overspend? Let
- {"'"}s find out.
+ What happens when you overspend? Let’s find out.
{spentTotal === 0 && (
<Text>
- You haven't spent any money yet so add some expenses
+ You haven’t spent any money yet so add some expenses
in your account to see it in action.
</Text>
)}
@@ -61,7 +60,7 @@ function Overspending({ navigationProps, stepTwo }) {
<P isLast={true}>
{spentTotal !== 0 && (
<Text>
- You've spent{' '}
+ You’ve spent{' '}
<strong>
${integerToCurrency(Math.abs(spentTotal))}
</strong>
@@ -69,7 +68,7 @@ function Overspending({ navigationProps, stepTwo }) {
</Text>
)}{' '}
Try zeroing out a budget for a category that already has
- spent money in it. You'll see how overspending works.
+ spent money in it. You’ll see how overspending works.
</P>
</View>
))}
diff --git a/packages/desktop-client/src/components/tutorial/TransactionAdd.js b/packages/desktop-client/src/components/tutorial/TransactionAdd.js
index 4c0fcc81a0..42e0c3ad66 100644
--- a/packages/desktop-client/src/components/tutorial/TransactionAdd.js
+++ b/packages/desktop-client/src/components/tutorial/TransactionAdd.js
@@ -26,16 +26,16 @@ function TransactionAdd({ targetRect, navigationProps }) {
pointerPosition="center"
innerStyle={{ padding: 20 }}
>
- <Title>Let's add some transactions</Title>
+ <Title>Let’s add some transactions</Title>
<P>
You can add transactions in two ways: import files from your bank or
manually add individual transactions. You can usually download these
files straight from your online bank account. (QIF/OFX/QFX is
- supported, sometimes called a "Quicken File")
+ supported, sometimes called a “Quicken File”)
</P>
<P isLast={true}>
- Try <strong>clicking "Add New"</strong> to see how adding transactions
+ Try <strong>clicking “Add New”</strong> to see how adding transactions
affects your budget.
</P>
diff --git a/packages/desktop-client/src/components/tutorial/TransactionEnter.js b/packages/desktop-client/src/components/tutorial/TransactionEnter.js
index bacb05b809..ce19c35096 100644
--- a/packages/desktop-client/src/components/tutorial/TransactionEnter.js
+++ b/packages/desktop-client/src/components/tutorial/TransactionEnter.js
@@ -10,14 +10,14 @@ function TransactionEnter({ navigationProps }) {
<Standalone width={400}>
<Title>Add a transaction</Title>
<P>
- Categorize the new transaction (you can use anything, try "Food") and
- enter any amount in the "payment" column. You'll see how it affects the
+ Categorize the new transaction (you can use anything, try “Food”) and
+ enter any amount in the “payment” column. You’ll see how it affects the
budget.
</P>
<P>
Next, try adding an income transaction by categorizing a new transaction
- as "Income" and entering an amount in the "deposit" column.
+ as “Income” and entering an amount in the “deposit” column.
</P>
<Navigation {...navigationProps} />
diff --git a/packages/desktop-client/src/components/util/GenericInput.js b/packages/desktop-client/src/components/util/GenericInput.js
index b167af4dca..6646c47022 100644
--- a/packages/desktop-client/src/components/util/GenericInput.js
+++ b/packages/desktop-client/src/components/util/GenericInput.js
@@ -184,7 +184,7 @@ export default function GenericInput({
ref={inputRef}
isMulti
isCreatable
- formatCreateLabel={inputValue => `Add "${inputValue}"`}
+ formatCreateLabel={inputValue => `Add “${inputValue}”`}
noOptionsMessage={() => null}
value={value.map(v => ({ value: v, label: v }))}
onSelect={onChange}
diff --git a/packages/eslint-plugin-actual/.eslintrc.js b/packages/eslint-plugin-actual/.eslintrc.js
new file mode 100644
index 0000000000..f7f66395ed
--- /dev/null
+++ b/packages/eslint-plugin-actual/.eslintrc.js
@@ -0,0 +1,26 @@
+'use strict';
+
+module.exports = {
+ root: true,
+ extends: [
+ 'eslint:recommended',
+ 'plugin:eslint-plugin/recommended',
+ 'plugin:node/recommended',
+ '../../.eslintrc.js',
+ ],
+ env: {
+ node: true,
+ },
+ parserOptions: {
+ sourceType: 'script',
+ },
+ rules: {
+ strict: ['error', 'global'],
+ },
+ overrides: [
+ {
+ files: ['tests/**/*.js'],
+ env: { jest: true },
+ },
+ ],
+};
diff --git a/packages/eslint-plugin-actual/lib/rules/__tests__/typography.js b/packages/eslint-plugin-actual/lib/rules/__tests__/typography.js
new file mode 100644
index 0000000000..013a3f3add
--- /dev/null
+++ b/packages/eslint-plugin-actual/lib/rules/__tests__/typography.js
@@ -0,0 +1,68 @@
+/* eslint-disable rulesdir/typography */
+'use strict';
+
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+const RuleTester = require('eslint').RuleTester;
+
+const rule = require('../../../lib/rules/typography');
+
+//------------------------------------------------------------------------------
+// Tests
+//------------------------------------------------------------------------------
+
+const ruleTester = new RuleTester({
+ parserOptions: {
+ ecmaVersion: 2015,
+ ecmaFeatures: { jsx: true },
+ },
+});
+ruleTester.run('typography', rule, {
+ valid: [
+ `let test = 'I said “Hello, world!”';`,
+ `let test = "I said ‘Hello, world!’";`,
+ `let test = \`I said ‘Hello, world!’\`;`,
+ `let selected = document.querySelector('[data-test="foo"]');`,
+ `let selected = document.querySelectorAll('[data-test="foo"]');`,
+ ],
+
+ invalid: [
+ {
+ code: 'var test = `I said "Hello, world!"`;',
+ errors: [
+ { messageId: 'quote', type: 'TemplateElement', column: 20 },
+ { messageId: 'quote', type: 'TemplateElement', column: 34 },
+ ],
+ },
+ {
+ code: `test2("I said 'Hello, world!'");`,
+ errors: [
+ { messageId: 'quote', type: 'Literal', column: 15 },
+ { messageId: 'quote', type: 'Literal', column: 29 },
+ ],
+ },
+ {
+ code: `test3('I said "Hello, world!"');`,
+ errors: [
+ { messageId: 'quote', type: 'Literal', column: 15 },
+ { messageId: 'quote', type: 'Literal', column: 29 },
+ ],
+ },
+ {
+ code: `<Test4>I said "Hello, world!"</Test4>`,
+ errors: [
+ { messageId: 'quote', type: 'JSXText', column: 15 },
+ { messageId: 'quote', type: 'JSXText', column: 29 },
+ ],
+ },
+ {
+ code: `<Test5>I said 'Hello, world!'</Test5>`,
+ errors: [
+ { messageId: 'quote', type: 'JSXText', column: 15 },
+ { messageId: 'quote', type: 'JSXText', column: 29 },
+ ],
+ },
+ ],
+});
diff --git a/packages/eslint-plugin-actual/lib/rules/typography.js b/packages/eslint-plugin-actual/lib/rules/typography.js
new file mode 100644
index 0000000000..cbfe12a719
--- /dev/null
+++ b/packages/eslint-plugin-actual/lib/rules/typography.js
@@ -0,0 +1,124 @@
+'use strict';
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+/** @type {import('eslint').Rule.RuleModule} */
+module.exports = {
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description:
+ 'Detects usage of straight quotes in potentially user-visible locations',
+ },
+ fixable: null,
+ schema: [],
+ messages: {
+ // eslint-disable-next-line rulesdir/typography
+ quote: `Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead.`,
+ },
+ },
+
+ create(context) {
+ // variables should be defined here
+
+ //----------------------------------------------------------------------
+ // Helpers
+ //----------------------------------------------------------------------
+
+ function check(node, { value = node.value, strip = false } = {}) {
+ // eslint-disable-next-line rulesdir/typography
+ if (!value.includes("'") && !value.includes('"')) return;
+
+ let rawText = context.getSourceCode().getText(node);
+ if (strip) rawText = rawText.slice(1, -1);
+ for (const match of rawText.matchAll(/['"]/g)) {
+ let index = node.range[0] + match.index + (strip ? 1 : 0);
+ context.report({
+ node,
+ loc: {
+ start: context.getSourceCode().getLocFromIndex(index),
+ end: context.getSourceCode().getLocFromIndex(index + 1),
+ },
+ messageId: 'quote',
+ });
+ }
+ }
+
+ function isMemberCall(node, object, properties) {
+ return (
+ node.type === 'CallExpression' &&
+ node.callee.type === 'MemberExpression' &&
+ node.callee.property.type === 'Identifier' &&
+ properties.includes(node.callee.property.name) &&
+ (object
+ ? node.callee.object.type === 'Identifier' &&
+ node.callee.object.name === object
+ : true)
+ );
+ }
+
+ function isIdentifierCall(node, name) {
+ return (
+ node.type === 'CallExpression' &&
+ node.callee.type === 'Identifier' &&
+ node.callee.name === name
+ );
+ }
+
+ function isNewRegExp(node) {
+ return (
+ node.type === 'NewExpression' &&
+ node.callee.type === 'Identifier' &&
+ node.callee.name === 'RegExp'
+ );
+ }
+
+ function isExpectingSQLToMatch(node) {
+ if (isIdentifierCall(node, 'sqlLines')) {
+ node = node.parent;
+ }
+
+ return (
+ isMemberCall(node, null, ['toEqual', 'toMatch']) &&
+ isIdentifierCall(node.callee.object, 'expect')
+ );
+ }
+
+ function isIgnored(node) {
+ return (
+ isExpectingSQLToMatch(node) ||
+ isNewRegExp(node) ||
+ isIdentifierCall(node, 'runQuery') ||
+ isIdentifierCall(node, 'compile') ||
+ isMemberCall(node, null, ['querySelector', 'querySelectorAll']) ||
+ isMemberCall(node, null, ['runQuery', 'first', 'all']) ||
+ isMemberCall(node, 'db', ['first', 'all']) ||
+ isMemberCall(node, 'spreadsheet', ['set'])
+ );
+ }
+
+ //----------------------------------------------------------------------
+ // Public
+ //----------------------------------------------------------------------
+
+ return {
+ Literal(node) {
+ if (isIgnored(node.parent)) return;
+
+ if (typeof node.value === 'string') {
+ check(node, { strip: true });
+ }
+ },
+ JSXText(node) {
+ check(node);
+ },
+ TemplateElement(node) {
+ if (isIgnored(node.parent.parent)) return;
+
+ check(node, { value: node.value.cooked });
+ },
+ };
+ },
+};
diff --git a/packages/eslint-plugin-actual/package.json b/packages/eslint-plugin-actual/package.json
new file mode 100644
index 0000000000..ed9161c915
--- /dev/null
+++ b/packages/eslint-plugin-actual/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "eslint-plugin-actual",
+ "private": true,
+ "main": "./lib/index.js",
+ "exports": "./lib/index.js",
+ "type": "commonjs",
+ "scripts": {
+ "lint": "eslint .",
+ "test": "jest"
+ },
+ "dependencies": {
+ "requireindex": "^1.2.0"
+ },
+ "devDependencies": {
+ "eslint": "^8.19.0",
+ "eslint-plugin-eslint-plugin": "^5.0.0",
+ "eslint-plugin-node": "^11.1.0",
+ "jest": "^27.0.0",
+ "npm-run-all": "^4.1.5"
+ },
+ "peerDependencies": {
+ "eslint": ">=7"
+ }
+}
diff --git a/packages/loot-core/src/client/actions/budgets.js b/packages/loot-core/src/client/actions/budgets.js
index f6d423f87d..351ff749b5 100644
--- a/packages/loot-core/src/client/actions/budgets.js
+++ b/packages/loot-core/src/client/actions/budgets.js
@@ -215,7 +215,7 @@ export function downloadBudget(cloudFileId, { replace } = {}) {
dispatch(setAppState({ loadingText: null }));
} else if (error.reason === 'file-exists') {
alert(
- `A file with id "${error.meta.id}" already exists with the name "${error.meta.name}". ` +
+ `A file with id “${error.meta.id}” already exists with the name “${error.meta.name}.” ` +
'This file will be replaced. This probably happened because files were manually ' +
'moved around outside of Actual.',
);
diff --git a/packages/loot-core/src/client/query-hooks.js b/packages/loot-core/src/client/query-hooks.js
index cee470c07b..c141b2abf0 100644
--- a/packages/loot-core/src/client/query-hooks.js
+++ b/packages/loot-core/src/client/query-hooks.js
@@ -44,7 +44,7 @@ function makeContext(queryState, opts, QueryClass) {
let queryData = useContext(Context);
if (queryData == null) {
throw new Error(
- "`useQuery` tried to access a query that hasn't been run. You need to put its `Provider` in a parent component",
+ '`useQuery` tried to access a query that hasn’t been run. You need to put its `Provider` in a parent component',
);
}
return queryData;
diff --git a/packages/loot-core/src/client/shared-listeners.js b/packages/loot-core/src/client/shared-listeners.js
index 55b393a13e..ddcb061546 100644
--- a/packages/loot-core/src/client/shared-listeners.js
+++ b/packages/loot-core/src/client/shared-listeners.js
@@ -231,7 +231,7 @@ export function listenForSyncEvent(actions, store) {
notif = {
title: 'Update required',
message:
- "We couldn't apply changes from the server. This probably means you " +
+ 'We couldn’t apply changes from the server. This probably means you ' +
'need to update the app to support the latest database.',
type: 'warning',
};
@@ -239,7 +239,7 @@ export function listenForSyncEvent(actions, store) {
case 'apply-failure':
console.trace('apply-failure', meta);
notif = {
- message: `We couldn't apply that change to the database. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`,
+ message: `We couldn’t apply that change to the database. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`,
};
break;
case 'beta-version':
diff --git a/packages/loot-core/src/platform/server/fs/index.electron.js b/packages/loot-core/src/platform/server/fs/index.electron.js
index 36641f96c6..d78e0dd82e 100644
--- a/packages/loot-core/src/platform/server/fs/index.electron.js
+++ b/packages/loot-core/src/platform/server/fs/index.electron.js
@@ -42,7 +42,7 @@ module.exports = {
// never allowing slashes.
if (id.match(/[^A-Za-z0-9\-_]/)) {
throw new Error(
- `Invalid budget id "${id}". Check the id of your budget in the "Advanced" section of the settings page.`,
+ `Invalid budget id “${id}”. Check the id of your budget in the Advanced section of the settings page.`,
);
}
diff --git a/packages/loot-core/src/server/accounts/__snapshots__/sync.test.js.snap b/packages/loot-core/src/server/accounts/__snapshots__/sync.test.js.snap
index 875654905e..4f3ddb4ca8 100644
--- a/packages/loot-core/src/server/accounts/__snapshots__/sync.test.js.snap
+++ b/packages/loot-core/src/server/accounts/__snapshots__/sync.test.js.snap
@@ -1010,7 +1010,7 @@ Array [
"error": null,
"id": "id31",
"imported_id": "3591ad03-b705-42e0-945d-402a70371c49",
- "imported_payee": "#001 fenn st Macy's 33333 EMX",
+ "imported_payee": "#001 fenn st Macy’s 33333 EMX",
"is_child": 0,
"is_parent": 0,
"notes": null,
diff --git a/packages/loot-core/src/server/accounts/parse-file.js b/packages/loot-core/src/server/accounts/parse-file.js
index 34d7f05a9b..71594b6f68 100644
--- a/packages/loot-core/src/server/accounts/parse-file.js
+++ b/packages/loot-core/src/server/accounts/parse-file.js
@@ -42,6 +42,7 @@ async function parseCSV(filepath, options = {}) {
columns: true,
bom: true,
delimiter: options.delimiter || ',',
+ // eslint-disable-next-line rulesdir/typography
quote: '"',
trim: true,
relax_column_count: true,
@@ -66,7 +67,7 @@ async function parseQIF(filepath) {
data = qif2json(contents);
} catch (err) {
errors.push({
- message: "Failed parsing: doesn't look like a valid QIF file.",
+ message: 'Failed parsing: doesn’t look like a valid QIF file.',
internal: err.stack,
});
return { errors, transactions: [] };
diff --git a/packages/loot-core/src/server/accounts/rules.js b/packages/loot-core/src/server/accounts/rules.js
index 47ef3b93e8..0243ac77ed 100644
--- a/packages/loot-core/src/server/accounts/rules.js
+++ b/packages/loot-core/src/server/accounts/rules.js
@@ -93,7 +93,7 @@ let CONDITION_TYPES = {
assert(
parsed.type === 'date' || parsed.type === 'recur',
'date-format',
- `Invalid date value for "isapprox" (field: ${fieldName})`,
+ `Invalid date value for “isapprox” (field: ${fieldName})`,
);
}
// These only work with exact dates
@@ -101,7 +101,7 @@ let CONDITION_TYPES = {
assert(
parsed.type === 'date',
'date-format',
- `Invalid date value for "${op}" (field: ${fieldName})`,
+ `Invalid date value for “${op}” (field: ${fieldName})`,
);
}
@@ -170,13 +170,13 @@ let CONDITION_TYPES = {
assert(
parsed.type === 'between',
'number-format',
- `Invalid between value for "${op}" (field: ${fieldName})`,
+ `Invalid between value for “${op}” (field: ${fieldName})`,
);
} else {
assert(
parsed.type === 'literal',
'number-format',
- `Invalid number value for "${op}" (field: ${fieldName})`,
+ `Invalid number value for “${op}” (field: ${fieldName})`,
);
}
diff --git a/packages/loot-core/src/server/accounts/sync.test.js b/packages/loot-core/src/server/accounts/sync.test.js
index 1029d5d066..35430da115 100644
--- a/packages/loot-core/src/server/accounts/sync.test.js
+++ b/packages/loot-core/src/server/accounts/sync.test.js
@@ -17,6 +17,9 @@ const snapshotDiff = require('snapshot-diff');
const { post } = require('../post');
const mockSyncServer = require('../tests/mockSyncServer');
+const papaJohns = 'Papa Johns east side';
+const lowes = 'Lowe’s Store';
+
beforeEach(async () => {
mockSyncServer.reset();
await global.emptyDatabase()();
@@ -176,9 +179,9 @@ describe('Account sync', () => {
// the same amount are imported first, i.e. high fidelity matches
// always win
let mocked = mockTransactions.filter(t => t.date === '2017-10-17');
- mocked[0].name = 'Papa Johns east side';
+ mocked[0].name = papaJohns;
mocked[0].amount = 29.47;
- mocked[1].name = "Lowe's Store";
+ mocked[1].name = 'Lowe’s Store';
mocked[1].amount = 29.47;
mocked[2].name = 'macy';
mocked[2].amount = 29.47;
@@ -236,9 +239,9 @@ describe('Account sync', () => {
await syncAccount('userId', 'userKey', id, account_id, 'bank');
let mocked = mockTransactions.filter(t => t.date === '2017-10-17');
- mocked[0].name = 'Papa Johns east side';
+ mocked[0].name = papaJohns;
mocked[0].amount = 29.47;
- mocked[1].name = "Lowe's Store";
+ mocked[1].name = lowes;
mocked[1].amount = 29.47;
mocked[1].transaction_id = 'imported1';
@@ -271,9 +274,7 @@ describe('Account sync', () => {
// Make sure lowes, which has the imported_id, is the one that
// got matched with the same imported_id
- expect(transactions.find(t => t.id === 'one').imported_payee).toBe(
- "Lowe's Store",
- );
+ expect(transactions.find(t => t.id === 'one').imported_payee).toBe(lowes);
});
test('import never matches existing with financial ids', async () => {
@@ -333,7 +334,7 @@ describe('Account sync', () => {
let differ = expectSnapshotWithDiffer(await getAllTransactions());
const mockTransaction = mockTransactions.find(t => t.date === '2017-10-17');
- mockTransaction.name = "#001 fenn st Macy's 33333 EMX";
+ mockTransaction.name = '#001 fenn st Macy’s 33333 EMX';
mockTransaction.amount = 29.48;
const transactionId = await db.insertTransaction({
diff --git a/packages/loot-core/src/server/accounts/transactions.js b/packages/loot-core/src/server/accounts/transactions.js
index 08e469cc97..3562f74788 100644
--- a/packages/loot-core/src/server/accounts/transactions.js
+++ b/packages/loot-core/src/server/accounts/transactions.js
@@ -26,6 +26,7 @@ async function getTransactionsByIds(ids) {
return incrFetch(
(query, params) => db.selectWithSchema('transactions', query, params),
ids,
+ // eslint-disable-next-line rulesdir/typography
id => `id = '${id}'`,
where => `SELECT * FROM v_transactions_internal WHERE ${where}`,
);
diff --git a/packages/loot-core/src/server/api.js b/packages/loot-core/src/server/api.js
index 0c348226ea..b6c09603a8 100644
--- a/packages/loot-core/src/server/api.js
+++ b/packages/loot-core/src/server/api.js
@@ -95,11 +95,11 @@ async function validateExpenseCategory(debug, id) {
]);
if (!row) {
- throw APIError(`${debug}: category "${id}" does not exist`);
+ throw APIError(`${debug}: category “${id}” does not exist`);
}
if (row.is_income !== 0) {
- throw APIError(`${debug}: category "${id}" is not an expense category`);
+ throw APIError(`${debug}: category “${id}” is not an expense category`);
}
}
@@ -174,7 +174,7 @@ handlers['api/download-budget'] = async function ({ syncId, password }) {
let file = files.find(f => f.groupId === syncId);
if (!file) {
throw new Error(
- `Budget "${syncId}" not found. Check the sync id of your budget in the "Advanced" section of the settings page.`,
+ `Budget “${syncId}” not found. Check the sync id of your budget in the Advanced section of the settings page.`,
);
}
if (file.encryptKeyId && !password) {
diff --git a/packages/loot-core/src/server/aql/compiler.js b/packages/loot-core/src/server/aql/compiler.js
index 48e076ad6e..47564fa3e5 100644
--- a/packages/loot-core/src/server/aql/compiler.js
+++ b/packages/loot-core/src/server/aql/compiler.js
@@ -34,6 +34,7 @@ function isKeyword(str) {
}
export function quoteAlias(alias) {
+ // eslint-disable-next-line rulesdir/typography
return alias.indexOf('.') === -1 && !isKeyword(alias) ? alias : `"${alias}"`;
}
@@ -43,13 +44,13 @@ function typed(value, type, { literal = false } = {}) {
function getFieldDescription(schema, tableName, field) {
if (schema[tableName] == null) {
- throw new CompileError(`Table "${tableName}" does not exist in the schema`);
+ throw new CompileError(`Table “${tableName}” does not exist in the schema`);
}
let fieldDesc = schema[tableName][field];
if (fieldDesc == null) {
throw new CompileError(
- `Field "${field}" does not exist in table "${tableName}"`,
+ `Field “${field}” does not exist in table “${tableName}”`,
);
}
return fieldDesc;
@@ -74,7 +75,7 @@ function makePath(state, path) {
if (!table[field] || table[field].ref == null) {
throw new CompileError(
- `Field not joinable on table ${tableName}: "${field}"`,
+ `Field not joinable on table ${tableName}: “${field}”`,
);
}
@@ -218,7 +219,7 @@ function inferParam(param, type) {
(!casts[type] || !casts[type].includes(existingType))
) {
throw new Error(
- `Parameter "${param.paramName}" can't convert to ${type} (already inferred as ${existingType})`,
+ `Parameter “${param.paramName}” can’t convert to ${type} (already inferred as ${existingType})`,
);
}
} else {
@@ -234,7 +235,7 @@ function castInput(state, expr, type) {
return typed(expr.value, type);
} else if (expr.type === 'null') {
if (!expr.literal) {
- throw new CompileError("A non-literal null doesn't make sense");
+ throw new CompileError('A non-literal null doesn’t make sense');
}
if (type === 'boolean') {
@@ -255,7 +256,7 @@ function castInput(state, expr, type) {
}
}
- throw new CompileError(`Can't cast ${expr.type} to date`);
+ throw new CompileError(`Can’t cast ${expr.type} to date`);
} else if (type === 'date-month') {
let expr2;
if (expr.type === 'date') {
@@ -266,7 +267,7 @@ function castInput(state, expr, type) {
parseDate(expr.value) ||
badDateFormat(expr.value, 'date-month');
} else {
- throw new CompileError(`Can't cast ${expr.type} to date-month`);
+ throw new CompileError(`Can’t cast ${expr.type} to date-month`);
}
if (expr2.literal) {
@@ -292,7 +293,7 @@ function castInput(state, expr, type) {
parseDate(expr.value) ||
badDateFormat(expr.value, 'date-year');
} else {
- throw new CompileError(`Can't cast ${expr.type} to date-year`);
+ throw new CompileError(`Can’t cast ${expr.type} to date-year`);
}
if (expr2.literal) {
@@ -319,7 +320,7 @@ function castInput(state, expr, type) {
return typed(expr.value, type, { literal: expr.literal });
}
- throw new CompileError(`Can't convert ${expr.type} to ${type}`);
+ throw new CompileError(`Can’t convert ${expr.type} to ${type}`);
}
// TODO: remove state from these functions
@@ -332,6 +333,7 @@ function val(state, expr, type) {
}
if (castedExpr.literal) {
+ /* eslint-disable rulesdir/typography */
if (castedExpr.type === 'id') {
return `'${castedExpr.value}'`;
} else if (castedExpr.type === 'string') {
@@ -339,6 +341,7 @@ function val(state, expr, type) {
let value = castedExpr.value.replace(/'/g, "''");
return `'${value}'`;
}
+ /* eslint-enable rulesdir/typography */
}
return castedExpr.value;
@@ -512,7 +515,7 @@ const compileFunction = saveStack('function', (state, func) => {
if (name[0] !== '$') {
throw new CompileError(
- `Unknown property "${name}". Did you mean to call a function? Try prefixing it with $`,
+ `Unknown property “${name}.” Did you mean to call a function? Try prefixing it with $`,
);
}
@@ -675,6 +678,7 @@ const compileOp = saveStack('op', (state, fieldRef, opData) => {
let [left, right] = valArray(state, [lhs, rhs], [null, 'array']);
// Dedupe the ids
let ids = [...new Set(right)];
+ // eslint-disable-next-line rulesdir/typography
return `${left} IN (` + ids.map(id => `'${id}'`).join(',') + ')';
}
case '$like': {
@@ -809,7 +813,7 @@ function expandStar(state, expr) {
let table = state.schema[pathInfo.tableName];
if (table == null) {
- throw new Error(`Table "${pathInfo.tableName}" does not exist`);
+ throw new Error(`Table “${pathInfo.tableName}” does not exist`);
}
return Object.keys(table).map(field => (path ? `${path}.${field}` : field));
@@ -846,7 +850,7 @@ const compileSelect = saveStack(
if (name[0] === '$') {
state.compileStack.push({ type: 'value', value: expr });
throw new CompileError(
- `Invalid field "${name}", are you trying to select a function? You need to name the expression`,
+ `Invalid field “${name}”, are you trying to select a function? You need to name the expression`,
);
}
diff --git a/packages/loot-core/src/server/aql/compiler.test.js b/packages/loot-core/src/server/aql/compiler.test.js
index e676628b88..f7f861783b 100644
--- a/packages/loot-core/src/server/aql/compiler.test.js
+++ b/packages/loot-core/src/server/aql/compiler.test.js
@@ -890,7 +890,7 @@ describe('Type conversions', () => {
query('transactions').filter({ id: 5 }).select(['id']).serialize(),
schemaWithRefs,
);
- }).toThrow(/Can't convert/);
+ }).toThrow(/Can’t convert/);
});
it('allows conversions from integers to floats', () => {
@@ -913,7 +913,7 @@ describe('Type conversions', () => {
.serialize(),
basicSchema,
);
- }).toThrow(/Can't convert/);
+ }).toThrow(/Can’t convert/);
});
it('allows fields to be nullable', () => {
diff --git a/packages/loot-core/src/server/aql/schema-helpers.js b/packages/loot-core/src/server/aql/schema-helpers.js
index f3091fec2b..72737d433c 100644
--- a/packages/loot-core/src/server/aql/schema-helpers.js
+++ b/packages/loot-core/src/server/aql/schema-helpers.js
@@ -45,7 +45,7 @@ export function convertInputType(value, type) {
if (typeof value === 'number' && Number.isInteger(value)) {
return value;
} else {
- throw new Error("Can't convert to integer: " + JSON.stringify(value));
+ throw new Error('Can’t convert to integer: ' + JSON.stringify(value));
}
case 'json':
return JSON.stringify(value);
@@ -87,7 +87,7 @@ export function convertOutputType(value, type) {
export function conform(schema, schemaConfig, table, obj, { skipNull } = {}) {
let tableSchema = schema[table];
if (tableSchema == null) {
- throw new Error(`Table "${table}" does not exist`);
+ throw new Error(`Table “${table}” does not exist`);
}
let views = schemaConfig.views || {};
@@ -111,7 +111,7 @@ export function conform(schema, schemaConfig, table, obj, { skipNull } = {}) {
let fieldDesc = tableSchema[field];
if (fieldDesc == null) {
throw new Error(
- `Field "${field}" does not exist on table ${table}: ${JSON.stringify(
+ `Field “${field}” does not exist on table ${table}: ${JSON.stringify(
obj,
)}`,
);
@@ -119,7 +119,7 @@ export function conform(schema, schemaConfig, table, obj, { skipNull } = {}) {
if (isRequired(field, fieldDesc) && obj[field] == null) {
throw new Error(
- `"${field}" is required for table "${table}": ${JSON.stringify(
+ `“${field}” is required for table “${table}”: ${JSON.stringify(
obj,
)}`,
);
@@ -141,7 +141,7 @@ export function convertForInsert(schema, schemaConfig, table, rawObj) {
let tableSchema = schema[table];
if (tableSchema == null) {
- throw new Error(`Error inserting: table "${table}" does not exist`);
+ throw new Error(`Error inserting: table “${table}” does not exist`);
}
// Inserting checks all the fields in the table and adds any default
@@ -160,7 +160,7 @@ export function convertForInsert(schema, schemaConfig, table, rawObj) {
// checks the fields in `obj`. For insert, we need to do it
// here to check that all required fields in the table exist
throw new Error(
- `"${field}" is required for table "${table}": ${JSON.stringify(obj)}`,
+ `“${field}” is required for table “${table}”: ${JSON.stringify(obj)}`,
);
}
}
@@ -177,7 +177,7 @@ export function convertForUpdate(schema, schemaConfig, table, rawObj) {
let tableSchema = schema[table];
if (tableSchema == null) {
- throw new Error(`Error updating: table "${table}" does not exist`);
+ throw new Error(`Error updating: table “${table}” does not exist`);
}
return conform(schema, schemaConfig, table, obj);
@@ -186,7 +186,7 @@ export function convertForUpdate(schema, schemaConfig, table, rawObj) {
export function convertFromSelect(schema, schemaConfig, table, obj) {
let tableSchema = schema[table];
if (tableSchema == null) {
- throw new Error(`Table "${table}" does not exist`);
+ throw new Error(`Table “${table}” does not exist`);
}
let fields = Object.keys(tableSchema);
diff --git a/packages/loot-core/src/server/aql/schema-helpers.test.js b/packages/loot-core/src/server/aql/schema-helpers.test.js
index bc3b4855d5..8be75b9f27 100644
--- a/packages/loot-core/src/server/aql/schema-helpers.test.js
+++ b/packages/loot-core/src/server/aql/schema-helpers.test.js
@@ -63,7 +63,7 @@ describe('schema-helpers', () => {
account: 'foo',
amount: 5,
});
- }).toThrow(/"transactions2" does not exist/);
+ }).toThrow(/“transactions2” does not exist/);
expect(() => {
convertForInsert(basicSchema, {}, 'transactions', {
@@ -71,7 +71,7 @@ describe('schema-helpers', () => {
account: 'foo',
amount: 5,
});
- }).toThrow(/"date" is required/);
+ }).toThrow(/“date” is required/);
expect(() => {
convertForInsert(basicSchema, {}, 'transactions', {
@@ -80,7 +80,7 @@ describe('schema-helpers', () => {
amount: 5,
date: null,
});
- }).toThrow(/"date" is required/);
+ }).toThrow(/“date” is required/);
});
test('update forces required fields be non-null', () => {
@@ -90,7 +90,7 @@ describe('schema-helpers', () => {
account: 'acct',
amount: 5,
});
- }).toThrow(/"transactions2" does not exist/);
+ }).toThrow(/“transactions2” does not exist/);
expect(() => {
convertForUpdate(basicSchema, {}, 'transactions', {
@@ -98,7 +98,7 @@ describe('schema-helpers', () => {
account: 'acct',
amount: 5,
});
- }).not.toThrow(/"date" is required/);
+ }).not.toThrow(/“date” is required/);
expect(() => {
convertForUpdate(basicSchema, {}, 'transactions', {
@@ -107,7 +107,7 @@ describe('schema-helpers', () => {
amount: 5,
date: null,
});
- }).toThrow(/"date" is required/);
+ }).toThrow(/“date” is required/);
// It should enforce fields that have a `default` too
expect(() => {
@@ -116,7 +116,7 @@ describe('schema-helpers', () => {
account: 'acct',
amount: null,
});
- }).toThrow(/"amount" is required/);
+ }).toThrow(/“amount” is required/);
});
test('conform converts types to db representations', () => {
@@ -207,6 +207,6 @@ describe('schema-helpers', () => {
id: 'id',
amount: 45.5,
});
- }).toThrow("Can't convert to integer");
+ }).toThrow('Can’t convert to integer');
});
});
diff --git a/packages/loot-core/src/server/aql/schema/executors.js b/packages/loot-core/src/server/aql/schema/executors.js
index 2be475e7f4..56493a0bd0 100644
--- a/packages/loot-core/src/server/aql/schema/executors.js
+++ b/packages/loot-core/src/server/aql/schema/executors.js
@@ -31,7 +31,7 @@ function execTransactions(state, query, sql, params, outputTypes) {
let splitType = tableOptions.splits || 'inline';
if (['all', 'inline', 'none', 'grouped'].indexOf(splitType) === -1) {
- throw new Error(`Invalid "splits" option for transactions: "${splitType}"`);
+ throw new Error(`Invalid “splits” option for transactions: “${splitType}”`);
}
if (splitType === 'all' || splitType === 'inline' || splitType === 'none') {
diff --git a/packages/loot-core/src/server/aql/schema/index.js b/packages/loot-core/src/server/aql/schema/index.js
index 7dd71366b3..2a2f33887a 100644
--- a/packages/loot-core/src/server/aql/schema/index.js
+++ b/packages/loot-core/src/server/aql/schema/index.js
@@ -203,7 +203,7 @@ export const schemaConfig = {
SELECT ${fields} FROM payees _
LEFT JOIN accounts __accounts ON (_.transfer_acct = __accounts.id AND __accounts.tombstone = 0)
-- We never want to show transfer payees that are pointing to deleted accounts.
- -- Either this isn't a transfer payee, if the account exists
+ -- Either this is not a transfer payee, if the account exists
WHERE _.transfer_acct IS NULL OR __accounts.id IS NOT NULL
`;
},
@@ -222,6 +222,7 @@ export const schemaConfig = {
schedules: {
v_schedules: internalFields => {
+ /* eslint-disable rulesdir/typography */
let fields = internalFields({
next_date: `
CASE
@@ -239,12 +240,13 @@ export const schemaConfig = {
});
return `
- SELECT ${fields} FROM schedules _
- LEFT JOIN schedules_next_date _nd ON _nd.schedule_id = _.id
- LEFT JOIN schedules_json_paths _paths ON _paths.schedule_id = _.id
- LEFT JOIN rules _rules ON _rules.id = _.rule
- LEFT JOIN payee_mapping pm ON pm.id = json_extract(_rules.conditions, _paths.payee || '.value')
+ SELECT ${fields} FROM schedules _
+ LEFT JOIN schedules_next_date _nd ON _nd.schedule_id = _.id
+ LEFT JOIN schedules_json_paths _paths ON _paths.schedule_id = _.id
+ LEFT JOIN rules _rules ON _rules.id = _.rule
+ LEFT JOIN payee_mapping pm ON pm.id = json_extract(_rules.conditions, _paths.payee || '.value')
`;
+ /* eslint-enable rulesdir/typography */
},
},
diff --git a/packages/loot-core/src/server/aql/views.test.js b/packages/loot-core/src/server/aql/views.test.js
index b94d38124e..045607ba0f 100644
--- a/packages/loot-core/src/server/aql/views.test.js
+++ b/packages/loot-core/src/server/aql/views.test.js
@@ -29,6 +29,7 @@ const schemaConfig = {
v_transactions2: (_, publicFields) => {
let fields = publicFields({
+ // eslint-disable-next-line rulesdir/typography
transfer_id: 'COERCE(transfer_id, "foo")',
});
diff --git a/packages/loot-core/src/server/budget/goaltemplates.js b/packages/loot-core/src/server/budget/goaltemplates.js
index 7a81dc72eb..3083935296 100644
--- a/packages/loot-core/src/server/budget/goaltemplates.js
+++ b/packages/loot-core/src/server/budget/goaltemplates.js
@@ -215,9 +215,7 @@ async function applyCategoryTemplate(category, template_lines, month, force) {
if (template.limit != null) {
if (limit != null) {
console.log(
- `${category.name}: ${`More than one 'up to' limit found.`} ${
- template.line
- }`,
+ `${category.name}: More than one “up to” limit found. ${template.line}`,
);
return null;
} else {
@@ -261,9 +259,7 @@ async function applyCategoryTemplate(category, template_lines, month, force) {
if (template.limit != null) {
if (limit != null) {
console.log(
- `${category.name}: ${`More than one 'up to' limit found.`} ${
- template.line
- }`,
+ `${category.name}: More than one “up to” limit found. ${template.line}`,
);
return null;
} else {
diff --git a/packages/loot-core/src/server/db/__snapshots__/index.test.js.snap b/packages/loot-core/src/server/db/__snapshots__/index.test.js.snap
index 2b23c5c52a..546dabb3e4 100644
--- a/packages/loot-core/src/server/db/__snapshots__/index.test.js.snap
+++ b/packages/loot-core/src/server/db/__snapshots__/index.test.js.snap
@@ -200,7 +200,7 @@ Array [
]
`;
-exports[`Database transactions don't show orphaned child transactions 1`] = `
+exports[`Database transactions don’t show orphaned child transactions 1`] = `
Array [
Object {
"amount": -23,
diff --git a/packages/loot-core/src/server/db/index.test.js b/packages/loot-core/src/server/db/index.test.js
index 971f674f00..6083445626 100644
--- a/packages/loot-core/src/server/db/index.test.js
+++ b/packages/loot-core/src/server/db/index.test.js
@@ -151,7 +151,7 @@ describe('Database', () => {
expect(await getTransactions('2018-01-05')).toMatchSnapshot();
});
- test("transactions don't show orphaned child transactions", async () => {
+ test('transactions don’t show orphaned child transactions', async () => {
await insertTransactions([
{ date: '2018-01-05', account: 'foo', amount: -23, sort_order: 5 },
{
diff --git a/packages/loot-core/src/server/db/util.js b/packages/loot-core/src/server/db/util.js
index cce97d26e4..5cae87332f 100644
--- a/packages/loot-core/src/server/db/util.js
+++ b/packages/loot-core/src/server/db/util.js
@@ -27,6 +27,7 @@ export async function incrFetch(
export function whereIn(ids, field) {
let ids2 = [...new Set(ids)];
+ // eslint-disable-next-line rulesdir/typography
let filter = `${field} IN (` + ids2.map(id => `'${id}'`).join(',') + ')';
return filter;
}
diff --git a/packages/loot-core/src/server/main.js b/packages/loot-core/src/server/main.js
index eed06087f1..1eafa3d757 100644
--- a/packages/loot-core/src/server/main.js
+++ b/packages/loot-core/src/server/main.js
@@ -1151,14 +1151,14 @@ handlers['accounts-sync'] = async function ({ id }) {
errors.push({
type: 'SyncError',
accountId: acct.id,
- message: 'Failed syncing account "' + acct.name + '".',
+ message: 'Failed syncing account “' + acct.name + '.”',
category: err.category,
code: err.code,
});
} else if (err instanceof PostError && err.reason !== 'internal') {
errors.push({
accountId: acct.id,
- message: `Account "${acct.name}" is not linked properly. Please link it again`,
+ message: `Account “${acct.name}” is not linked properly. Please link it again`,
});
} else {
errors.push({
@@ -1353,14 +1353,14 @@ handlers['nordigen-accounts-sync'] = async function ({ id }) {
errors.push({
type: 'SyncError',
accountId: acct.id,
- message: 'Failed syncing account "' + acct.name + '".',
+ message: 'Failed syncing account “' + acct.name + '.”',
category: err.category,
code: err.code,
});
} else if (err instanceof PostError && err.reason !== 'internal') {
errors.push({
accountId: acct.id,
- message: `Account "${acct.name}" is not linked properly. Please link it again`,
+ message: `Account “${acct.name}” is not linked properly. Please link it again`,
});
} else {
errors.push({
diff --git a/packages/loot-core/src/server/schedules/app.test.js b/packages/loot-core/src/server/schedules/app.test.js
index 812a95adce..def3bff7ec 100644
--- a/packages/loot-core/src/server/schedules/app.test.js
+++ b/packages/loot-core/src/server/schedules/app.test.js
@@ -44,7 +44,7 @@ describe('schedule app', () => {
expect(updated[0].value).toBe('bar');
});
- it("conditions are added if they don't exist", () => {
+ it('conditions are added if they don’t exist', () => {
let conds = [
{ op: 'contains', field: 'payee', value: 'FOO' },
{ op: 'contains', field: 'notes', value: 'dflksjdflskdjf' },
diff --git a/packages/loot-core/src/server/spreadsheet/new/lexer.js b/packages/loot-core/src/server/spreadsheet/new/lexer.js
index 8361ee9eb4..7b192ece19 100644
--- a/packages/loot-core/src/server/spreadsheet/new/lexer.js
+++ b/packages/loot-core/src/server/spreadsheet/new/lexer.js
@@ -63,6 +63,7 @@ class Tokenizer {
this.index = this.str.length;
return token(TOKEN_STRING, this.str, lineno, colno);
}
+ // eslint-disable-next-line rulesdir/typography
} else if (cur === '"' || cur === "'") {
// We've hit a string
return token(TOKEN_STRING, this.parseString(cur), lineno, colno);
diff --git a/packages/loot-core/src/server/spreadsheet/new/sqlgen.js b/packages/loot-core/src/server/spreadsheet/new/sqlgen.js
index a62d2a6a92..7934573a14 100644
--- a/packages/loot-core/src/server/spreadsheet/new/sqlgen.js
+++ b/packages/loot-core/src/server/spreadsheet/new/sqlgen.js
@@ -18,7 +18,8 @@ function fail(node, message) {
function generateExpression(expr) {
if (typeof expr === 'string') {
- return '"' + expr + '"';
+ // eslint-disable-next-line rulesdir/typography
+ return `"${expr}"`;
} else if (typeof expr === 'number') {
return expr;
}
@@ -65,7 +66,8 @@ function generateExpression(expr) {
return '(' + str + ')';
case 'Literal':
if (typeof expr.value === 'string') {
- return '"' + expr.value + '"';
+ // eslint-disable-next-line rulesdir/typography
+ return `"${expr.value}"`;
}
return expr.value;
case 'Symbol':
@@ -136,14 +138,14 @@ function transformLookups(node, implicitTable) {
if (!SCHEMA_PATHS[table]) {
const err = new Error(
- `Table "${table}" not joinable for field "${lookup}"`,
+ `Table “${table}” not joinable for field “${lookup}”`,
);
err.node = node;
throw err;
}
if (!SCHEMA_PATHS[table][lookup.field]) {
const err = new Error(
- `Unknown field "${lookup}" on table "${table}"`,
+ `Unknown field “${lookup}” on table “${table}”`,
);
err.node = node;
throw err;
diff --git a/packages/loot-core/src/server/spreadsheet/new/vm.test.js b/packages/loot-core/src/server/spreadsheet/new/vm.test.js
index f3bc89c78b..354ec1c1a8 100644
--- a/packages/loot-core/src/server/spreadsheet/new/vm.test.js
+++ b/packages/loot-core/src/server/spreadsheet/new/vm.test.js
@@ -19,7 +19,7 @@ function makeScopes(vars) {
return vars[name];
}
- throw new Error(`"${resolvedName} is not defined`);
+ throw new Error(`“${resolvedName}” is not defined`);
},
setVariable: (name, value) => {
diff --git a/packages/loot-core/src/shared/errors.js b/packages/loot-core/src/shared/errors.js
index fc0a8cd195..8b7f64826f 100644
--- a/packages/loot-core/src/shared/errors.js
+++ b/packages/loot-core/src/shared/errors.js
@@ -93,12 +93,8 @@ export function getSyncError(error, id) {
if (error === 'out-of-sync-migrations' || error === 'out-of-sync-data') {
return 'This budget cannot be loaded with this version of the app.';
} else if (error === 'budget-not-found') {
- return (
- 'Budget "' +
- id +
- '" not found. Check the id of your budget in the "Advanced" section of the settings page.'
- );
+ return `Budget “${id}” not found. Check the id of your budget in the Advanced section of the settings page.`;
} else {
- return 'We had an unknown problem opening "' + id + '".';
+ return `We had an unknown problem opening “${id}”.`;
}
}
diff --git a/packages/loot-core/src/shared/months.js b/packages/loot-core/src/shared/months.js
index 20a5c7af36..4f2cdd6805 100644
--- a/packages/loot-core/src/shared/months.js
+++ b/packages/loot-core/src/shared/months.js
@@ -211,6 +211,7 @@ export function sheetForMonth(month) {
}
export function nameForMonth(month) {
+ // eslint-disable-next-line rulesdir/typography
return d.format(_parse(month), "MMMM 'yy");
}
diff --git a/packages/loot-core/src/shared/test-helpers.js b/packages/loot-core/src/shared/test-helpers.js
index 509bf6291a..36e2ade775 100644
--- a/packages/loot-core/src/shared/test-helpers.js
+++ b/packages/loot-core/src/shared/test-helpers.js
@@ -36,7 +36,7 @@ export function execTracer() {
if (ended) {
throw new Error(
- `Tracer received event but didn't expect it: ${name} with data: ${JSON.stringify(
+ `Tracer received event but didn’t expect it: ${name} with data: ${JSON.stringify(
data,
)}`,
);
@@ -44,7 +44,7 @@ export function execTracer() {
if (waitingFor.name !== name) {
waitingFor.reject(
new Error(
- `Event traced "${name}" but expected "${waitingFor.name}"`,
+ `Event traced “${name}” but expected “${waitingFor.name}”`,
),
);
} else {
@@ -70,7 +70,7 @@ export function execTracer() {
expectWait(name, data) {
if (!hasStarted) {
- throw new Error(`Expected "${name}" but tracer hasn't started yet`);
+ throw new Error(`Expected “${name}” but tracer hasn’t started yet`);
} else if (log) {
console.log(`--- expectWait(${name}) ---`);
}
@@ -98,14 +98,14 @@ export function execTracer() {
expectNow(name, data) {
if (!hasStarted) {
- throw new Error(`Expected "${name}" but tracer hasn't started yet`);
+ throw new Error(`Expected “${name}” but tracer hasn’t started yet`);
} else if (log) {
console.log(`--- expectNow(${name}) ---`);
}
if (queue.length === 0) {
throw new Error(
- `Expected event "${name}" but none found - has it happened yet?`,
+ `Expected event “${name}” but none found - has it happened yet?`,
);
} else if (queue[0].name === name) {
let entry = queue.shift();
@@ -117,7 +117,7 @@ export function execTracer() {
}
} else {
throw new Error(
- `Event traced "${queue[0].name}" but expected "${name}"`,
+ `Event traced “${queue[0].name}” but expected “${name}”`,
);
}
},
diff --git a/packages/loot-core/src/shared/util.js b/packages/loot-core/src/shared/util.js
index 12745e479c..1101c4212c 100644
--- a/packages/loot-core/src/shared/util.js
+++ b/packages/loot-core/src/shared/util.js
@@ -318,7 +318,7 @@ export function safeNumber(value) {
}
if (value > MAX_SAFE_NUMBER || value < MIN_SAFE_NUMBER) {
throw new Error(
- "safeNumber: can't safely perform arithmetic with number: " + value,
+ 'safeNumber: can’t safely perform arithmetic with number: ' + value,
);
}
return value;
diff --git a/packages/loot-design/src/components/NewPayeeAutocomplete.js b/packages/loot-design/src/components/NewPayeeAutocomplete.js
index 389f992a5b..99af7faed9 100644
--- a/packages/loot-design/src/components/NewPayeeAutocomplete.js
+++ b/packages/loot-design/src/components/NewPayeeAutocomplete.js
@@ -129,7 +129,7 @@ export default function PayeeAutocomplete({
display: 'inline-block',
}}
/>
- Create Payee "{inputValue}"
+ Create Payee “{inputValue}”
</View>
)}
components={{
diff --git a/packages/loot-design/src/components/PayeeAutocomplete.js b/packages/loot-design/src/components/PayeeAutocomplete.js
index 464f6ff613..3f3027bce9 100644
--- a/packages/loot-design/src/components/PayeeAutocomplete.js
+++ b/packages/loot-design/src/components/PayeeAutocomplete.js
@@ -103,7 +103,7 @@ export function PayeeList({
display: 'inline-block',
}}
/>
- Create Payee "{inputValue}"
+ Create Payee “{inputValue}”
</View>
</View>
)}
diff --git a/packages/loot-design/src/components/budget/report/BudgetSummary.js b/packages/loot-design/src/components/budget/report/BudgetSummary.js
index 273e3ea010..7e5040234a 100644
--- a/packages/loot-design/src/components/budget/report/BudgetSummary.js
+++ b/packages/loot-design/src/components/budget/report/BudgetSummary.js
@@ -364,7 +364,7 @@ export const BudgetSummary = React.memo(function BudgetSummary({ month }) {
onBudgetAction(month, type);
}}
items={[
- { name: 'copy-last', text: "Copy last month's budget" },
+ { name: 'copy-last', text: 'Copy last month’s budget' },
{ name: 'set-zero', text: 'Set budgets to zero' },
{
name: 'set-3-avg',
diff --git a/packages/loot-design/src/components/budget/rollover/BudgetSummary.js b/packages/loot-design/src/components/budget/rollover/BudgetSummary.js
index 57a2408e06..3ae6bc693c 100644
--- a/packages/loot-design/src/components/budget/rollover/BudgetSummary.js
+++ b/packages/loot-design/src/components/budget/rollover/BudgetSummary.js
@@ -213,7 +213,7 @@ function ToBudget({
},
{
name: 'reset-buffer',
- text: "Reset next month's buffer",
+ text: 'Reset next month’s buffer',
},
]}
/>
@@ -379,7 +379,7 @@ export function BudgetSummary({
onBudgetAction(month, type);
}}
items={[
- { name: 'copy-last', text: "Copy last month's budget" },
+ { name: 'copy-last', text: 'Copy last month’s budget' },
{ name: 'set-zero', text: 'Set budgets to zero' },
{
name: 'set-3-avg',
diff --git a/packages/loot-design/src/components/forms.js b/packages/loot-design/src/components/forms.js
index 50dbe703bf..9518fe3173 100644
--- a/packages/loot-design/src/components/forms.js
+++ b/packages/loot-design/src/components/forms.js
@@ -68,6 +68,7 @@ export function Checkbox(props) {
display: 'block',
background:
colors.b6 +
+ // eslint-disable-next-line rulesdir/typography
' url(\'data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>\') 9px 9px',
width: 9,
height: 9,
diff --git a/packages/loot-design/src/components/manager/BudgetList.js b/packages/loot-design/src/components/manager/BudgetList.js
index bf9b6bd526..99a4c5a7da 100644
--- a/packages/loot-design/src/components/manager/BudgetList.js
+++ b/packages/loot-design/src/components/manager/BudgetList.js
@@ -19,7 +19,7 @@ import { View, Text, Button, Tooltip, Menu } from '../common';
function getFileDescription(file) {
if (file.state === 'unknown') {
return (
- "This is a cloud-based file but it's state is unknown because you " +
+ 'This is a cloud-based file but its state is unknown because you ' +
'are offline.'
);
}
diff --git a/packages/loot-design/src/components/manager/Import.js b/packages/loot-design/src/components/manager/Import.js
index 313854b365..e7a57a43b1 100644
--- a/packages/loot-design/src/components/manager/Import.js
+++ b/packages/loot-design/src/components/manager/Import.js
@@ -49,7 +49,7 @@ function Import({ modalProps, actions }) {
)}
<Text style={{ marginBottom: 15 }}>
- Select an app to import from, and we'll guide you through the
+ Select an app to import from, and we’ll guide you through the
process.
</Text>
diff --git a/packages/loot-design/src/components/manager/ImportActual.js b/packages/loot-design/src/components/manager/ImportActual.js
index 50cb6da772..fc6c0edc4c 100644
--- a/packages/loot-design/src/components/manager/ImportActual.js
+++ b/packages/loot-design/src/components/manager/ImportActual.js
@@ -64,8 +64,8 @@ function Import({ modalProps, availableImports }) {
<P>
You can import data from another Actual account or instance. First
export your data from a different account, and it will give you a
- compressed file. This file is simple zip file that contains the
- "db.sqlite" and "metadata.json" files.
+ compressed file. This file is a simple zip file that contains the
+ <code>db.sqlite</code> and <code>metadata.json</code> files.
</P>
<P>Select one of these compressed files and import it here.</P>
diff --git a/packages/loot-design/src/components/manager/ImportYNAB4.js b/packages/loot-design/src/components/manager/ImportYNAB4.js
index 2417a5d680..7f2c441ca6 100644
--- a/packages/loot-design/src/components/manager/ImportYNAB4.js
+++ b/packages/loot-design/src/components/manager/ImportYNAB4.js
@@ -52,14 +52,14 @@ function Import({ modalProps, availableImports }) {
<P>
To import data from YNAB4, locate where your YNAB4 data is stored.
It is usually in your Documents folder under YNAB. Your data is a
- directory inside that with the ".ynab4" suffix.
+ directory inside that with the <code>.ynab4</code> suffix.
</P>
<P>
- When you've located your data,{' '}
+ When you’ve located your data,{' '}
<strong>compress it into a zip file</strong>. On macOS,
- right-click the folder and select "Compress". On Windows,
- right-click and select "Send to > Compressed (zipped) folder".
- Upload the zipped folder for importing.
+ right-click the folder and select “Compress”. On Windows,
+ right-click and select “Send to &rarr; Compressed (zipped)
+ folder”. Upload the zipped folder for importing.
</P>
<View>
<ButtonWithLoading loading={importing} primary onClick={onImport}>
diff --git a/packages/loot-design/src/components/modals/CloseAccount.js b/packages/loot-design/src/components/modals/CloseAccount.js
index 66b7f6817e..b955cfb796 100644
--- a/packages/loot-design/src/components/modals/CloseAccount.js
+++ b/packages/loot-design/src/components/modals/CloseAccount.js
@@ -66,8 +66,7 @@ function CloseAccount({
</span>
) : (
<span>
- This account has transactions so we can
- {"'"}t permanently delete it.
+ This account has transactions so we can’t permanently delete it.
</span>
)}
</P>
diff --git a/packages/loot-design/src/components/modals/ConfigureLinkedAccounts.js b/packages/loot-design/src/components/modals/ConfigureLinkedAccounts.js
index 54ba57dedf..066c4fc560 100644
--- a/packages/loot-design/src/components/modals/ConfigureLinkedAccounts.js
+++ b/packages/loot-design/src/components/modals/ConfigureLinkedAccounts.js
@@ -119,8 +119,8 @@ export default function ConfigureLinkedAccounts({
<Text style={{ fontSize: 15, marginBottom: 15, lineHeight: '1.4em' }}>
A <strong>budgeted account</strong> is one where expenses and income
affect the budget. Usually things like investments are off budget.
- We{"'"}ve chosen some defaults here, but you can change the status
- if you like.
+ We’ve chosen some defaults here, but you can change the status if
+ you like.
</Text>
<View
diff --git a/packages/loot-design/src/components/modals/ImportTransactions.test.js b/packages/loot-design/src/components/modals/ImportTransactions.test.js
index 25c04b1a1b..6f3f711fde 100644
--- a/packages/loot-design/src/components/modals/ImportTransactions.test.js
+++ b/packages/loot-design/src/components/modals/ImportTransactions.test.js
@@ -30,7 +30,7 @@ describe('Import transactions', function () {
];
it.each(invalidInputs)(
- 'should not parse string "$str" with order "$order"',
+ 'should not parse string `$str` with order `$order`',
({ str, order }) => {
expect(parseDate(str, order)).toBe(null);
},
@@ -128,7 +128,7 @@ describe('Import transactions', function () {
];
describe.each(validInputs)(
- 'should parse with order "$order"',
+ 'should parse with order `$order`',
({ order, cases }) => {
it.each(cases)('given input %j expects output %j', (input, output) => {
const parsed = parseDate(input, order);
diff --git a/packages/loot-design/src/components/modals/PlaidExternalMsg.js b/packages/loot-design/src/components/modals/PlaidExternalMsg.js
index c2cbdf68d1..10cbce8684 100644
--- a/packages/loot-design/src/components/modals/PlaidExternalMsg.js
+++ b/packages/loot-design/src/components/modals/PlaidExternalMsg.js
@@ -65,7 +65,7 @@ export default function PlaidExternalMsg({
<P style={{ fontSize: 15 }}>
To link your bank account, you will be moved to your browser for
enhanced security. Click below and Actual will automatically resume
- when you have given your bank{"'"}s credentials.
+ when you have given your bank’s credentials.
</P>
{error && renderError(error)}
@@ -127,7 +127,7 @@ export default function PlaidExternalMsg({
},
}}
>
- Typing your bank{"'"}s username and password is one of the most
+ Typing your bank’s username and password is one of the most
security-sensitive things you can do, and the browser is the most
secure app in the world. Why not use it to make sure your
information is safe? [TODO: Link to docs article]
diff --git a/packages/loot-design/src/components/spreadsheet/format.js b/packages/loot-design/src/components/spreadsheet/format.js
index 918b1bdd26..3bbdde031d 100644
--- a/packages/loot-design/src/components/spreadsheet/format.js
+++ b/packages/loot-design/src/components/spreadsheet/format.js
@@ -4,6 +4,7 @@ export default function format(value, type = 'string') {
switch (type) {
case 'string':
const val = JSON.stringify(value);
+ // eslint-disable-next-line rulesdir/typography
if (val.charAt(0) === '"' && val.charAt(val.length - 1) === '"') {
return val.slice(1, -1);
}
diff --git a/packages/loot-design/src/components/tooltips.js b/packages/loot-design/src/components/tooltips.js
index f72ab82abf..561424c5c8 100644
--- a/packages/loot-design/src/components/tooltips.js
+++ b/packages/loot-design/src/components/tooltips.js
@@ -379,6 +379,7 @@ export function Pointer({
? {
transform: 'rotate(-45deg)',
top: border ? -4 : -3,
+ // eslint-disable-next-line rulesdir/typography
content: '" "',
...(pointerPosition === 'center'
? { left: 'calc(50% - 3.5px)' }
@@ -390,6 +391,7 @@ export function Pointer({
? {
transform: 'rotate(135deg)',
bottom: border ? -4 : -3,
+ // eslint-disable-next-line rulesdir/typography
content: '" "',
...(pointerPosition === 'center'
? { left: 'calc(50% - 3.5px)' }
@@ -400,6 +402,7 @@ export function Pointer({
: pointerDirection === 'right'
? {
transform: 'rotate(45deg)',
+ // eslint-disable-next-line rulesdir/typography
content: '" "',
top: 'calc(50% - 3.5px)',
right: -3,
diff --git a/packages/loot-design/src/style.js b/packages/loot-design/src/style.js
index 3a159eccc6..330f399631 100644
--- a/packages/loot-design/src/style.js
+++ b/packages/loot-design/src/style.js
@@ -158,6 +158,7 @@ export const styles = {
boxShadow: '0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)',
},
tnum: {
+ // eslint-disable-next-line rulesdir/typography
fontFeatureSettings: '"tnum"',
},
notFixed: { fontFeatureSettings: '' },
@@ -219,6 +220,7 @@ if (Platform.env === 'web') {
function testScrollbars() {
let el = document.createElement('div');
el.innerHTML =
+ // eslint-disable-next-line rulesdir/typography
'<div style="width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px;"/>';
document.body.appendChild(el);
let testNode = el.childNodes[0];
diff --git a/upcoming-release-notes/791.md b/upcoming-release-notes/791.md
new file mode 100644
index 0000000000..73b771e604
--- /dev/null
+++ b/upcoming-release-notes/791.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [j-f1]
+---
+
+Replace straight quotes with curly quotes in user-visible text
diff --git a/yarn.lock b/yarn.lock
index 06ae57d273..ae407a455a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1979,6 +1979,24 @@ __metadata:
languageName: node
linkType: hard
+"@eslint-community/eslint-utils@npm:^4.2.0":
+ version: 4.3.0
+ resolution: "@eslint-community/eslint-utils@npm:4.3.0"
+ dependencies:
+ eslint-visitor-keys: ^3.3.0
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+ checksum: f487760a692f0f1fef76e248ad72976919576ba57edc2b1b1dc1d182553bae6b5bf7b078e654da85d04f0af8a485d20bd26280002768f4fbcd2e330078340cb0
+ languageName: node
+ linkType: hard
+
+"@eslint-community/regexpp@npm:^4.4.0":
+ version: 4.4.0
+ resolution: "@eslint-community/regexpp@npm:4.4.0"
+ checksum: 2d127af0c752b80e8a782eacfe996a86925d21de92da3ffc6f9e615e701145e44a62e26bdd88bfac2cd76779c39ba8d9875a91046ec5e7e5f23cb647c247ea6a
+ languageName: node
+ linkType: hard
+
"@eslint/eslintrc@npm:^2.0.0":
version: 2.0.0
resolution: "@eslint/eslintrc@npm:2.0.0"
@@ -1996,6 +2014,23 @@ __metadata:
languageName: node
linkType: hard
+"@eslint/eslintrc@npm:^2.0.1":
+ version: 2.0.1
+ resolution: "@eslint/eslintrc@npm:2.0.1"
+ dependencies:
+ ajv: ^6.12.4
+ debug: ^4.3.2
+ espree: ^9.5.0
+ globals: ^13.19.0
+ ignore: ^5.2.0
+ import-fresh: ^3.2.1
+ js-yaml: ^4.1.0
+ minimatch: ^3.1.2
+ strip-json-comments: ^3.1.1
+ checksum: 56b9192a687a450db53a7b883daf9f0f447c43b3510189cf88808a7a2467c2a302a42a50f184cc6d5a9faf3d1df890a2ef0fd0d60b751f32a3e9dfea717c6b48
+ languageName: node
+ linkType: hard
+
"@eslint/js@npm:8.35.0":
version: 8.35.0
resolution: "@eslint/js@npm:8.35.0"
@@ -2003,6 +2038,13 @@ __metadata:
languageName: node
linkType: hard
+"@eslint/js@npm:8.36.0":
+ version: 8.36.0
+ resolution: "@eslint/js@npm:8.36.0"
+ checksum: b7d6b84b823c8c7784be390741196617565527b1f7c0977fde9455bfb57fd88f81c074a03dd878757d2c33fa29f24291e9ecbc1425710f067917324b55e1bf3a
+ languageName: node
+ linkType: hard
+
"@floating-ui/core@npm:^1.2.3":
version: 1.2.4
resolution: "@floating-ui/core@npm:1.2.4"
@@ -4891,6 +4933,7 @@ __metadata:
eslint: 8.35.0
eslint-config-react-app: 7.0.1
eslint-plugin-prettier: 4.2.1
+ eslint-plugin-rulesdir: ^0.2.2
npm-run-all: ^4.1.3
patch-package: ^6.1.2
prettier: 2.8.2
@@ -8965,6 +9008,45 @@ __metadata:
languageName: node
linkType: hard
+"eslint-plugin-actual@workspace:packages/eslint-plugin-actual":
+ version: 0.0.0-use.local
+ resolution: "eslint-plugin-actual@workspace:packages/eslint-plugin-actual"
+ dependencies:
+ eslint: ^8.19.0
+ eslint-plugin-eslint-plugin: ^5.0.0
+ eslint-plugin-node: ^11.1.0
+ jest: ^27.0.0
+ npm-run-all: ^4.1.5
+ requireindex: ^1.2.0
+ peerDependencies:
+ eslint: ">=7"
+ languageName: unknown
+ linkType: soft
+
+"eslint-plugin-es@npm:^3.0.0":
+ version: 3.0.1
+ resolution: "eslint-plugin-es@npm:3.0.1"
+ dependencies:
+ eslint-utils: ^2.0.0
+ regexpp: ^3.0.0
+ peerDependencies:
+ eslint: ">=4.19.1"
+ checksum: e57592c52301ee8ddc296ae44216df007f3a870bcb3be8d1fbdb909a1d3a3efe3fa3785de02066f9eba1d6466b722d3eb3cc3f8b75b3cf6a1cbded31ac6298e4
+ languageName: node
+ linkType: hard
+
+"eslint-plugin-eslint-plugin@npm:^5.0.0":
+ version: 5.0.8
+ resolution: "eslint-plugin-eslint-plugin@npm:5.0.8"
+ dependencies:
+ eslint-utils: ^3.0.0
+ estraverse: ^5.3.0
+ peerDependencies:
+ eslint: ">=7.0.0"
+ checksum: dd153584bced7f30ceddb462362eac2467e4ec998517068c85989f7897d034c14dc605f6b461366e483f7e94dd5ad2943c27b71344be107814ddc9273fdacfe6
+ languageName: node
+ linkType: hard
+
"eslint-plugin-flowtype@npm:^8.0.3":
version: 8.0.3
resolution: "eslint-plugin-flowtype@npm:8.0.3"
@@ -9047,6 +9129,22 @@ __metadata:
languageName: node
linkType: hard
+"eslint-plugin-node@npm:^11.1.0":
+ version: 11.1.0
+ resolution: "eslint-plugin-node@npm:11.1.0"
+ dependencies:
+ eslint-plugin-es: ^3.0.0
+ eslint-utils: ^2.0.0
+ ignore: ^5.1.1
+ minimatch: ^3.0.4
+ resolve: ^1.10.1
+ semver: ^6.1.0
+ peerDependencies:
+ eslint: ">=5.16.0"
+ checksum: 5804c4f8a6e721f183ef31d46fbe3b4e1265832f352810060e0502aeac7de034df83352fc88643b19641bb2163f2587f1bd4119aff0fd21e8d98c57c450e013b
+ languageName: node
+ linkType: hard
+
"eslint-plugin-prettier@npm:4.2.1":
version: 4.2.1
resolution: "eslint-plugin-prettier@npm:4.2.1"
@@ -9096,6 +9194,13 @@ __metadata:
languageName: node
linkType: hard
+"eslint-plugin-rulesdir@npm:^0.2.2":
+ version: 0.2.2
+ resolution: "eslint-plugin-rulesdir@npm:0.2.2"
+ checksum: 1d8c2583dccca7e167b0eaf1adb1ae0bca4ea65b3eb3e0124fc0e21382a29ca3988306419d3b34f7f984f53c2ecb16b0c6956e676e23d165c2bd629023d10704
+ languageName: node
+ linkType: hard
+
"eslint-plugin-testing-library@npm:^5.0.1":
version: 5.10.2
resolution: "eslint-plugin-testing-library@npm:5.10.2"
@@ -9137,6 +9242,15 @@ __metadata:
languageName: node
linkType: hard
+"eslint-utils@npm:^2.0.0":
+ version: 2.1.0
+ resolution: "eslint-utils@npm:2.1.0"
+ dependencies:
+ eslint-visitor-keys: ^1.1.0
+ checksum: 27500938f348da42100d9e6ad03ae29b3de19ba757ae1a7f4a087bdcf83ac60949bbb54286492ca61fac1f5f3ac8692dd21537ce6214240bf95ad0122f24d71d
+ languageName: node
+ linkType: hard
+
"eslint-utils@npm:^3.0.0":
version: 3.0.0
resolution: "eslint-utils@npm:3.0.0"
@@ -9148,6 +9262,13 @@ __metadata:
languageName: node
linkType: hard
+"eslint-visitor-keys@npm:^1.1.0":
+ version: 1.3.0
+ resolution: "eslint-visitor-keys@npm:1.3.0"
+ checksum: 37a19b712f42f4c9027e8ba98c2b06031c17e0c0a4c696cd429bd9ee04eb43889c446f2cd545e1ff51bef9593fcec94ecd2c2ef89129fcbbf3adadbef520376a
+ languageName: node
+ linkType: hard
+
"eslint-visitor-keys@npm:^2.0.0, eslint-visitor-keys@npm:^2.1.0":
version: 2.1.0
resolution: "eslint-visitor-keys@npm:2.1.0"
@@ -9228,6 +9349,56 @@ __metadata:
languageName: node
linkType: hard
+"eslint@npm:^8.19.0":
+ version: 8.36.0
+ resolution: "eslint@npm:8.36.0"
+ dependencies:
+ "@eslint-community/eslint-utils": ^4.2.0
+ "@eslint-community/regexpp": ^4.4.0
+ "@eslint/eslintrc": ^2.0.1
+ "@eslint/js": 8.36.0
+ "@humanwhocodes/config-array": ^0.11.8
+ "@humanwhocodes/module-importer": ^1.0.1
+ "@nodelib/fs.walk": ^1.2.8
+ ajv: ^6.10.0
+ chalk: ^4.0.0
+ cross-spawn: ^7.0.2
+ debug: ^4.3.2
+ doctrine: ^3.0.0
+ escape-string-regexp: ^4.0.0
+ eslint-scope: ^7.1.1
+ eslint-visitor-keys: ^3.3.0
+ espree: ^9.5.0
+ esquery: ^1.4.2
+ esutils: ^2.0.2
+ fast-deep-equal: ^3.1.3
+ file-entry-cache: ^6.0.1
+ find-up: ^5.0.0
+ glob-parent: ^6.0.2
+ globals: ^13.19.0
+ grapheme-splitter: ^1.0.4
+ ignore: ^5.2.0
+ import-fresh: ^3.0.0
+ imurmurhash: ^0.1.4
+ is-glob: ^4.0.0
+ is-path-inside: ^3.0.3
+ js-sdsl: ^4.1.4
+ js-yaml: ^4.1.0
+ json-stable-stringify-without-jsonify: ^1.0.1
+ levn: ^0.4.1
+ lodash.merge: ^4.6.2
+ minimatch: ^3.1.2
+ natural-compare: ^1.4.0
+ optionator: ^0.9.1
+ strip-ansi: ^6.0.1
+ strip-json-comments: ^3.1.0
+ text-table: ^0.2.0
+ bin:
+ eslint: bin/eslint.js
+ checksum: e9a961fc3b3de5cff5a1cb2c92eeffaa7e155a715489e30b3e1e76f186bd1255e0481e09564f2094733c0b1dbd3453499fb72ae7c043c83156e11e6d965b2304
+ languageName: node
+ linkType: hard
+
"espree@npm:^9.4.0":
version: 9.4.1
resolution: "espree@npm:9.4.1"
@@ -9239,6 +9410,17 @@ __metadata:
languageName: node
linkType: hard
+"espree@npm:^9.5.0":
+ version: 9.5.0
+ resolution: "espree@npm:9.5.0"
+ dependencies:
+ acorn: ^8.8.0
+ acorn-jsx: ^5.3.2
+ eslint-visitor-keys: ^3.3.0
+ checksum: a7f110aefb6407e0d3237aa635ab3cea87106ae63748dd23c67031afccc640d04c4209fca2daf16e2233c82efb505faead0fb84097478fd9cc6e8f8dd80bf99d
+ languageName: node
+ linkType: hard
+
"esprima@npm:^4.0.0, esprima@npm:^4.0.1":
version: 4.0.1
resolution: "esprima@npm:4.0.1"
@@ -11174,6 +11356,13 @@ __metadata:
languageName: node
linkType: hard
+"ignore@npm:^5.1.1":
+ version: 5.2.4
+ resolution: "ignore@npm:5.2.4"
+ checksum: 3d4c309c6006e2621659311783eaea7ebcd41fe4ca1d78c91c473157ad6666a57a2df790fe0d07a12300d9aac2888204d7be8d59f9aaf665b1c7fcdb432517ef
+ languageName: node
+ linkType: hard
+
"ignore@npm:^5.2.0":
version: 5.2.0
resolution: "ignore@npm:5.2.0"
@@ -14643,7 +14832,7 @@ __metadata:
languageName: node
linkType: hard
-"npm-run-all@npm:^4.1.3":
+"npm-run-all@npm:^4.1.3, npm-run-all@npm:^4.1.5":
version: 4.1.5
resolution: "npm-run-all@npm:4.1.5"
dependencies:
@@ -17451,7 +17640,7 @@ __metadata:
languageName: node
linkType: hard
-"regexpp@npm:^3.2.0":
+"regexpp@npm:^3.0.0, regexpp@npm:^3.2.0":
version: 3.2.0
resolution: "regexpp@npm:3.2.0"
checksum: a78dc5c7158ad9ddcfe01aa9144f46e192ddbfa7b263895a70a5c6c73edd9ce85faf7c0430e59ac38839e1734e275b9c3de5c57ee3ab6edc0e0b1bdebefccef8
@@ -17598,6 +17787,13 @@ __metadata:
languageName: node
linkType: hard
+"requireindex@npm:^1.2.0":
+ version: 1.2.0
+ resolution: "requireindex@npm:1.2.0"
+ checksum: 50d8b10a1ff1fdf6aea7a1870bc7bd238b0fb1917d8d7ca17fd03afc38a65dcd7a8a4eddd031f89128b5f0065833d5c92c4fef67f2c04e8624057fe626c9cf94
+ languageName: node
+ linkType: hard
+
"requires-port@npm:^1.0.0":
version: 1.0.0
resolution: "requires-port@npm:1.0.0"
@@ -17703,7 +17899,7 @@ __metadata:
languageName: node
linkType: hard
-"resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.1":
+"resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.10.1, resolve@npm:^1.14.2, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.1":
version: 1.22.1
resolution: "resolve@npm:1.22.1"
dependencies:
@@ -17729,7 +17925,7 @@ __metadata:
languageName: node
linkType: hard
-"resolve@patch:resolve@^1.1.7#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.1#~builtin<compat/resolve>":
+"resolve@patch:resolve@^1.1.7#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.1#~builtin<compat/resolve>":
version: 1.22.1
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=c3c19d"
dependencies:
@@ -18118,7 +18314,7 @@ __metadata:
languageName: node
linkType: hard
-"semver@npm:^6.0.0, semver@npm:^6.1.1, semver@npm:^6.1.2, semver@npm:^6.2.0, semver@npm:^6.3.0":
+"semver@npm:^6.0.0, semver@npm:^6.1.0, semver@npm:^6.1.1, semver@npm:^6.1.2, semver@npm:^6.2.0, semver@npm:^6.3.0":
version: 6.3.0
resolution: "semver@npm:6.3.0"
bin: