Skip to content

Commit 993ec45

Browse files
committed
chore: update deps, configs, etc.
1 parent cf7f342 commit 993ec45

File tree

17 files changed

+1587
-680
lines changed

17 files changed

+1587
-680
lines changed

.eslintrc

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

.eslintrc.cjs

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
/* eslint-disable unicorn/no-null */
2+
3+
module.exports = {
4+
root: true,
5+
6+
env: {
7+
es6: true,
8+
amd: true,
9+
browser: true,
10+
},
11+
12+
parserOptions: {
13+
sourceType: "module",
14+
ecmaVersion: 2020,
15+
ecmaFeatures: {
16+
jsx: true,
17+
},
18+
},
19+
20+
plugins: ["unicorn", "import", "prettier"],
21+
22+
extends: [
23+
"eslint:recommended",
24+
"plugin:import/recommended",
25+
"plugin:import/react",
26+
"plugin:node/recommended",
27+
"plugin:unicorn/recommended",
28+
"plugin:import/recommended",
29+
"plugin:import/react",
30+
"prettier",
31+
],
32+
33+
rules: {
34+
"consistent-this": ["warn", "self"],
35+
"eqeqeq": ["warn", "smart"],
36+
37+
"max-depth": ["warn", 8],
38+
"max-nested-callbacks": ["warn", 8],
39+
"no-array-constructor": "warn",
40+
41+
"no-inline-comments": "warn",
42+
"spaced-comment": ["warn", "always"],
43+
44+
"no-lonely-if": "warn",
45+
"no-new-object": "warn",
46+
"no-return-await": "warn",
47+
"no-undef": "off",
48+
"no-unneeded-ternary": "warn",
49+
"no-var": "error",
50+
51+
"padded-blocks": ["warn", "never"],
52+
"prefer-const": ["error", { destructuring: "any", ignoreReadBeforeAssign: false }],
53+
"quotes": ["warn", "double", { avoidEscape: true, allowTemplateLiterals: false }],
54+
55+
"prettier/prettier": "warn",
56+
57+
"node/no-unpublished-import": ["off"],
58+
"node/no-unsupported-features/es-syntax": ["off"],
59+
60+
"node/no-missing-import": ["off"],
61+
"import/no-unresolved": ["off"],
62+
63+
"unicorn/filename-case": ["off"],
64+
"unicorn/prefer-module": "off",
65+
"unicorn/prevent-abbreviations": "off",
66+
67+
"unicorn/no-array-for-each": ["off"],
68+
"unicorn/consistent-function-scoping": ["off"],
69+
70+
"import/order": [
71+
"warn",
72+
{
73+
alphabetize: {
74+
order: "asc",
75+
caseInsensitive: true,
76+
},
77+
groups: ["type", "internal", "parent", "sibling", "external", "builtin", "index", "object"],
78+
},
79+
],
80+
},
81+
82+
overrides: [
83+
{
84+
files: ["*.ts", "*.tsx"],
85+
86+
parser: "@typescript-eslint/parser",
87+
88+
settings: {
89+
"import/parsers": {
90+
"@typescript-eslint/parser": [".ts", ".tsx"],
91+
},
92+
93+
"import/resolver": {
94+
typescript: {
95+
alwaysTryTypes: true,
96+
},
97+
},
98+
},
99+
100+
plugins: ["@typescript-eslint", "prettier"],
101+
extends: ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:import/typescript"],
102+
rules: {
103+
"no-undef": "off",
104+
"semi": "off",
105+
106+
"@typescript-eslint/explicit-module-boundary-types": "off",
107+
"@typescript-eslint/member-delimiter-style": "error",
108+
"@typescript-eslint/member-ordering": "error",
109+
"@typescript-eslint/no-empty-function": "off",
110+
"@typescript-eslint/no-explicit-any": "off",
111+
"@typescript-eslint/no-unused-vars": "error",
112+
"@typescript-eslint/no-var-requires": "off",
113+
"@typescript-eslint/type-annotation-spacing": "error",
114+
"@typescript-eslint/explicit-member-accessibility": [
115+
"error",
116+
{
117+
accessibility: "no-public",
118+
overrides: {
119+
accessors: "explicit",
120+
methods: "explicit",
121+
},
122+
},
123+
],
124+
125+
// Naming convention
126+
"@typescript-eslint/naming-convention": [
127+
"warn",
128+
{
129+
selector: "default",
130+
format: ["camelCase"],
131+
},
132+
{
133+
selector: "variableLike",
134+
format: ["camelCase"],
135+
},
136+
{
137+
selector: "variable",
138+
format: ["camelCase", "UPPER_CASE", "PascalCase"],
139+
},
140+
{
141+
selector: "parameter",
142+
format: ["camelCase"],
143+
leadingUnderscore: "allow",
144+
},
145+
{
146+
selector: "memberLike",
147+
format: ["camelCase"],
148+
},
149+
{
150+
selector: "memberLike",
151+
modifiers: ["private"],
152+
format: ["camelCase"],
153+
leadingUnderscore: "require",
154+
},
155+
{
156+
selector: "typeParameter",
157+
format: ["PascalCase"],
158+
prefix: ["T"],
159+
},
160+
{
161+
selector: "interface",
162+
format: ["PascalCase"],
163+
custom: { regex: "^I[A-Z]", match: false },
164+
},
165+
{
166+
selector: "enumMember",
167+
format: ["UPPER_CASE"],
168+
},
169+
{
170+
selector: "objectLiteralProperty",
171+
format: null,
172+
},
173+
{
174+
selector: "typeLike",
175+
format: null,
176+
},
177+
{
178+
selector: "typeAlias",
179+
format: null,
180+
},
181+
{
182+
selector: "typeProperty",
183+
format: null,
184+
},
185+
],
186+
},
187+
},
188+
],
189+
};

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Automatically assigned to any PRs
2-
* @sysdotini
2+
* @espimarisa

.github/funding.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
ko_fi: sysdotini
1+
ko_fi: espimarisa
2+
github: espimarisa

.github/workflows/automerge.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
1-
name: "Dependabot Automerge"
1+
name: "Dependabot Auto-Merge"
22

33
on:
44
pull_request:
55

66
jobs:
7-
worker:
8-
runs-on: ubuntu-20.04
9-
10-
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
7+
auto-merge:
8+
runs-on: ubuntu-latest
119
steps:
12-
- name: "Wait for status checks"
13-
id: waitforstatuschecks
14-
uses: WyriHaximus/github-action-wait-for-status@v1.3
10+
- uses: actions/checkout@v3.5.2
11+
- uses: ahmadnassri/action-dependabot-auto-merge@v2.6.6
1512
with:
16-
ignoreActions: worker,WIP
17-
checkInterval: 300
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
21-
- name: "Automerge"
22-
uses: pascalgn/automerge-action@v0.13.1
23-
if: steps.waitforstatuschecks.outputs.status == 'success'
24-
env:
25-
MERGE_LABELS: "update"
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
MERGE_DELETE_BRANCH: true
13+
target: minor
14+
github-token: ${{ github.token }}
Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,75 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
112
name: "CodeQL"
213

314
on:
415
push:
5-
branches: [main]
16+
branches: ["main"]
617
pull_request:
718
# The branches below must be a subset of the branches above
8-
branches: [main]
19+
branches: ["main"]
920
schedule:
10-
- cron: "0 18 * * 5"
21+
- cron: "0 9 * * 2"
1122

1223
jobs:
1324
analyze:
1425
name: Analyze
15-
runs-on: ubuntu-20.04
26+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
1631

1732
strategy:
1833
fail-fast: false
1934
matrix:
2035
language: ["javascript"]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Use only 'java' to analyze code written in Java, Kotlin or both
38+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
39+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
2140

2241
steps:
2342
- name: Checkout repository
24-
uses: actions/checkout@v2
43+
uses: actions/checkout@v3
2544

2645
# Initializes the CodeQL tools for scanning.
2746
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v1
47+
uses: github/codeql-action/init@v2
2948
with:
3049
languages: ${{ matrix.language }}
50+
# If you wish to specify custom queries, you can do so here or in a config file.
51+
# By default, queries listed here will override any specified in a config file.
52+
# Prefix the list here with "+" to use these queries and those in the config file.
3153

32-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55+
# queries: security-extended,security-and-quality
56+
57+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
3358
# If this step fails, then you should remove it and run the build manually (see below)
3459
- name: Autobuild
35-
uses: github/codeql-action/autobuild@v1
60+
uses: github/codeql-action/autobuild@v2
3661

3762
# ℹ️ Command-line programs to run using the OS shell.
38-
# 📚 https://git.io/JvXDl
63+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
3964

40-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
41-
# and modify them (or add more) to build your code if your project
42-
# uses a compiled language
65+
# If the Autobuild fails above, remove it and uncomment the following three lines.
66+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
4367

44-
#- run: |
45-
# make bootstrap
46-
# make release
68+
# - run: |
69+
# echo "Run, Build Application using script"
70+
# ./location_of_script_within_repo/buildscript.sh
4771

4872
- name: Perform CodeQL Analysis
49-
uses: github/codeql-action/analyze@v1
73+
uses: github/codeql-action/analyze@v2
74+
with:
75+
category: "/language:${{matrix.language}}"

.github/workflows/push.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1-
name: Push
1+
name: "Push Testing"
22

33
on: [push]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
node-version: [14.x]
10+
node-version: [20.x]
11+
os: [ubuntu-latest]
1112
steps:
12-
- uses: actions/checkout@v2.3.4
13-
- name: Node ${{ matrix.node-version }}
14-
uses: actions/setup-node@v2.1.5
13+
# Checks out git
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
# Installs PNPM
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2.2.4
21+
22+
# Sets Node.js up
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
1525
with:
1626
node-version: ${{ matrix.node-version }}
17-
- name: Testing
27+
cache: "pnpm"
28+
29+
# Runs any test scripts
30+
- name: Unit Tests
1831
run: |
19-
npm install
20-
npm test --if-present
32+
pnpm install
33+
pnpm test --if-present
2134
env:
2235
CI: true

.github/workflows/stale.yml

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

0 commit comments

Comments
 (0)