Skip to content

Commit 75ee454

Browse files
chore: update configs
1 parent e4bd4ad commit 75ee454

File tree

9 files changed

+92
-72
lines changed

9 files changed

+92
-72
lines changed

.cspell.json

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/renovate.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
":ignoreModulesAndTests",
5+
"replacements:all",
6+
"workarounds:all",
7+
"group:allNonMajor",
58
"group:monorepos",
69
"group:recommended",
710
":automergeAll",
@@ -10,7 +13,6 @@
1013
":prHourlyLimitNone",
1114
":prConcurrentLimitNone",
1215
"helpers:disableTypesNodeMajor",
13-
"workarounds:typesNodeVersioning",
1416
"schedule:weekly"
1517
],
1618
"labels": ["Type: Maintenance", ":blue_heart:"],

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
save-prefix=""
2+
shamefully-hoist=true
3+
strict-peer-dependencies=false

DONATIONS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Any donations would be much appreciated. 😄
44

55
## Enterprise Users
66

7-
`eslint-plugin-functional` is available as part of the [Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-eslint-plugin-functional?utm_source=npm-eslint-plugin-functional&utm_medium=referral&utm_campaign=enterprise&utm_term=repo).
7+
`eslint-plugin-functional` is available as part of the [Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-eslint-plugin-functional).
88

99
## Real money
1010

@@ -13,23 +13,23 @@ Any donations would be much appreciated. 😄
1313
## Cryptocurrencies
1414

1515
<details>
16-
<summary><img src="https://raw.githubusercontent.com/get-icon/geticon/master/icons/bitcoin.svg" height="16"> Bitcoin</summary>
16+
<summary><img src="https://raw.githubusercontent.com/get-icon/geticon/master/icons/bitcoin.svg" height="16" alt="Bitcoin Logo"> Bitcoin</summary>
1717

1818
![bitcoin address QR code](https://raw.githubusercontent.com/RebeccaStevens/RebeccaStevens/main/assets/cryptocurrencies/wallets/bitcoin.png)\
1919
bc1qgr2xwvkpztsaq9kplud84r3dfz4g3e7d5c5lxm
2020

2121
</details>
2222

2323
<details>
24-
<summary><img src="https://raw.githubusercontent.com/get-icon/geticon/master/icons/ethereum.svg" height="16"> Ethereum</summary>
24+
<summary><img src="https://raw.githubusercontent.com/get-icon/geticon/master/icons/ethereum.svg" height="16" alt="Ethereum Logo"> Ethereum</summary>
2525

2626
![ethereum address QR code](https://raw.githubusercontent.com/RebeccaStevens/RebeccaStevens/main/assets/cryptocurrencies/wallets/ethereum.png)\
2727
0x643769d1DD2Cb912656dAA27C1b97e5A81EF9fd2
2828

2929
</details>
3030

3131
<details>
32-
<summary><img src="https://raw.githubusercontent.com/RebeccaStevens/RebeccaStevens/main/assets/cryptocurrencies/logos/ltc.svg" height="16"> Litecoin</summary>
32+
<summary><img src="https://raw.githubusercontent.com/RebeccaStevens/RebeccaStevens/main/assets/cryptocurrencies/logos/ltc.svg" height="16" alt="Litecoin Logo"> Litecoin</summary>
3333

3434
![litecoin address QR code](https://raw.githubusercontent.com/RebeccaStevens/RebeccaStevens/main/assets/cryptocurrencies/wallets/litecoin.png)\
3535
ltc1qxr7p6z4hrh87g9mjjk67chyduwrh2nfrpxksjv

cspell.config.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
$schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
2+
version: "0.2"
3+
4+
language: en-US
5+
6+
dictionaryDefinitions:
7+
- name: project-dictionary
8+
path: ./project-dictionary.txt
9+
addWords: true
10+
11+
dictionaries:
12+
- en_US
13+
- bash
14+
- csharp
15+
- css
16+
- filetypes
17+
- fonts
18+
- html
19+
- misc
20+
- node
21+
- npm
22+
- softwareTerms
23+
- typescript
24+
- project-dictionary
25+
26+
ignorePaths:
27+
- .eslintrc.json
28+
- .git
29+
- .gitattributes
30+
- .gitignore
31+
- .husky
32+
- .lintstagedrc.yml
33+
- .markdownlint.json
34+
- .npmrc
35+
- .prettierignore
36+
- .prettierrc.yml
37+
- .stylelintrc.json
38+
- .vscode
39+
- "*.pdn"
40+
- CHANGELOG.md
41+
- coverage
42+
- coverage
43+
- cspell.config.yaml
44+
- dist
45+
- lib
46+
- node_modules
47+
- package.json
48+
- patches
49+
- pnpm-lock.yaml
50+
- project-dictionary.txt
51+
52+
ignoreRegExpList:
53+
- /\b[A-Fa-f0-9]{6}\b/ # ignore hex color codes
54+
- /\b[A-Za-z0-9]{32,}\b/ # ignore long string of hex characters
55+
- /`[^`]*`/ # ignore things in `...`
56+
- /```[\w\W]*?```/ # ignore things in ```...```
57+
58+
overrides:
59+
- filename: ".github/(actions|workflows)/*.yml"
60+
ignoreRegExpList:
61+
- /\b(?:[A-Za-z0-9\-_])+\/(?:[A-Za-z0-9\-_])+@v\d+(?:\.\d+){0,2}\b/ui # ignore action

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"@babel/eslint-parser": "7.22.9",
8484
"@commitlint/cli": "17.6.7",
8585
"@commitlint/config-conventional": "17.6.7",
86-
"@cspell/dict-cryptocurrencies": "3.0.1",
8786
"@rebeccastevens/eslint-config": "2.0.2",
8887
"@rollup/plugin-typescript": "11.1.2",
8988
"@semantic-release/changelog": "6.0.3",

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project-dictionary.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
automerge
2+
declarator
3+
declarators
4+
deepmerge
5+
espree
6+
IIFE
7+
jonaskello
8+
Kello
9+
klass
10+
knip
11+
lcov
12+
litecoin
13+
noreply
14+
rebeccastevens
15+
ruleset
16+
rulesets
17+
treeshake
18+
TSES

src/utils/tree.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ export function getReadonly(
112112
}
113113

114114
const typeRef = getAncestorOfType(isTSTypeReference, node);
115-
const intHerit = getAncestorOfType(isTSInterfaceHeritage, node);
115+
const intHeritage = getAncestorOfType(isTSInterfaceHeritage, node);
116116

117-
const expressionOrTypeName = typeRef?.typeName ?? intHerit?.expression;
117+
const expressionOrTypeName = typeRef?.typeName ?? intHeritage?.expression;
118118

119119
return expressionOrTypeName !== undefined &&
120120
isIdentifier(expressionOrTypeName) &&
121121
expressionOrTypeName.name === "Readonly"
122-
? typeRef ?? intHerit
122+
? typeRef ?? intHeritage
123123
: null;
124124
}
125125

0 commit comments

Comments
 (0)