Skip to content

Commit 044f417

Browse files
authored
update dependencies (#276)
* chore: remove xo, update a couple of dependencies * chore: update the rest of the dependencies
1 parent 2b3e291 commit 044f417

11 files changed

Lines changed: 16393 additions & 24538 deletions

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci-cd.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CI/CD
22

33
on:
44
push:
5-
pull_request:
6-
workflow_dispatch:
75
branches:
86
- main
7+
pull_request:
8+
workflow_dispatch:
99

1010
jobs:
1111
lint-commits:
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v6.0.3
1818
with:
1919
fetch-depth: 0
20-
- uses: actions/setup-node@v3
20+
- uses: actions/setup-node@v6.4.0
2121
with:
22-
node-version: 22
22+
node-version: 24
2323
cache: "npm"
2424
- run: npm ci --ignore-scripts
2525
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
@@ -30,12 +30,12 @@ jobs:
3030
strategy:
3131
matrix:
3232
# add/remove versions as we move support forward
33-
node-version: [20, 22]
33+
node-version: [22, 24, 26]
3434

3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v6.0.3
3737
- name: Use Node.js ${{ matrix.node-version }}
38-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v6.4.0
3939
with:
4040
node-version: ${{ matrix.node-version }}
4141
cache: "npm"
@@ -52,11 +52,11 @@ jobs:
5252
runs-on: ubuntu-latest
5353

5454
steps:
55-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v6.0.3
5656
- name: Setup Node.js
57-
uses: actions/setup-node@v3
57+
uses: actions/setup-node@v6.4.0
5858
with:
59-
node-version: 22
59+
node-version: 24
6060
cache: "npm"
6161
- run: npm ci
6262
- name: Release

eslint.config.mjs

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
import js from '@eslint/js'
2+
import tseslint from 'typescript-eslint'
3+
import unicorn from 'eslint-plugin-unicorn'
4+
import nodePlugin from 'eslint-plugin-n'
5+
import globals from 'globals'
6+
7+
const customRules = {
8+
'no-useless-constructor': 'warn',
9+
'prefer-object-spread': 'warn',
10+
'no-template-curly-in-string': 'off',
11+
'newline-before-return': 'off',
12+
'padding-line-between-statements': 'off',
13+
'quote-props': ['error', 'consistent'],
14+
'capitalized-comments': 'off',
15+
'arrow-body-style': 'off',
16+
'comma-dangle': 'off',
17+
'complexity': 'off',
18+
'max-depth': 'off',
19+
'object-shorthand': 'off',
20+
'operator-linebreak': 'off',
21+
'object-curly-spacing': 'off',
22+
'unicorn/prevent-abbreviations': 'off',
23+
'unicorn/empty-brace-spaces': 'off',
24+
'unicorn/no-this-assignment': 'off',
25+
'unicorn/prefer-ternary': 'off',
26+
'unicorn/no-array-for-each': 'warn',
27+
'unicorn/prefer-logical-operator-over-ternary': 'off',
28+
'unicorn/prefer-module': 'off',
29+
'unicorn/prefer-node-protocol': 'off',
30+
'unicorn/prefer-spread': 'off',
31+
'unicorn/switch-case-braces': 'off',
32+
'unicorn/no-null': 'off',
33+
'unicorn/text-encoding-identifier-case': 'off',
34+
'unicorn/no-instanceof-builtins': 'off',
35+
'unicorn/prefer-at': 'off',
36+
'unicorn/prefer-switch': 'off',
37+
'unicorn/no-immediate-mutation': 'off',
38+
'unicorn/no-useless-undefined': 'off',
39+
'unicorn/consistent-existence-index-check': 'off',
40+
'unicorn/consistent-compound-words': 'off',
41+
'unicorn/prefer-split-limit': 'off'
42+
}
43+
44+
const styleRules = {
45+
indent: ['error', 'tab', {SwitchCase: 1}],
46+
semi: ['error', 'never'],
47+
quotes: ['error', 'single', {avoidEscape: true}],
48+
'no-unexpected-multiline': 'error'
49+
}
50+
51+
const tsCustomRules = {
52+
'@typescript-eslint/consistent-indexed-object-style': 'off',
53+
'@typescript-eslint/consistent-type-definitions': 'off',
54+
'@typescript-eslint/consistent-type-imports': 'off',
55+
'@typescript-eslint/naming-convention': 'off',
56+
'@typescript-eslint/no-explicit-any': 'off'
57+
}
58+
59+
export default tseslint.config(
60+
{
61+
ignores: [
62+
'coverage/**',
63+
'docs/**',
64+
'docsrc/**',
65+
'scripts/**',
66+
'node_modules/**'
67+
]
68+
},
69+
js.configs.recommended,
70+
unicorn.configs.recommended,
71+
{
72+
files: ['**/*.js'],
73+
...nodePlugin.configs['flat/recommended-script'],
74+
languageOptions: {
75+
sourceType: 'commonjs',
76+
globals: {
77+
...globals.node
78+
}
79+
},
80+
rules: {
81+
...nodePlugin.configs['flat/recommended-script'].rules,
82+
...styleRules,
83+
...customRules,
84+
'n/file-extension-in-import': 'off',
85+
'n/prefer-global/process': 'off',
86+
// Allow `_`-prefixed identifiers as intentional throwaways (e.g. `_ => {}`).
87+
'no-unused-vars': ['error', {
88+
argsIgnorePattern: '^_',
89+
varsIgnorePattern: '^_',
90+
caughtErrorsIgnorePattern: '^_'
91+
}]
92+
}
93+
},
94+
{
95+
files: ['**/*.ts'],
96+
extends: [tseslint.configs.recommended],
97+
rules: {
98+
...styleRules,
99+
...customRules,
100+
...tsCustomRules
101+
}
102+
},
103+
{
104+
files: ['test/**/*.{js,ts}', 'config/jest.setup.js'],
105+
languageOptions: {
106+
globals: {
107+
...globals.jest
108+
}
109+
}
110+
}
111+
)

lib/pages/link-setting.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export enum LinkStyle {
1313
* does not replace the current configuration page window.
1414
* ```
1515
* section.linkSetting('moreInfo')
16-
* .url('http://www.smartthings.com')
16+
* .url('https://www.smartthings.com')
1717
* ```
1818
*/
1919
export class LinkSetting extends SectionSetting<LinkSetting> {

0 commit comments

Comments
 (0)