Skip to content

Commit 4e8189a

Browse files
authored
[chore]: port to official @iobroker/eslint-config config (#2898)
* port to official eslint config * cleanup * move jszip in correct package * try to fix build * pack lock update * update tsd * move tsd to global pack as dev dep * fix tsd and ignore build for eslint * fix build * fix type tests * upgrade to 0.1.4 * update to 0.1.5 * fix rest of lint errors * fix install without override
1 parent 10b9973 commit 4e8189a

File tree

132 files changed

+23708
-22273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+23708
-22273
lines changed

.eslintrc.json

-299
This file was deleted.

.github/workflows/ci-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v4
28-
- name: Use Node.js 18
28+
- name: Use Node.js
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 18
31+
node-version-file: '.nvmrc'
3232

3333
- name: NPM install
3434
run: npm i --ignore-scripts # install typescript and @types do not `setup first`

.github/workflows/nightly-dev-release.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ jobs:
99
publish-config:
1010
runs-on: ubuntu-20.04
1111

12-
strategy:
13-
matrix:
14-
node: [18.x] # This should be LTS
15-
1612
steps:
1713
- name: Checkout code
1814
uses: actions/checkout@v4
1915
with:
2016
fetch-depth: 0 # Fetch the history, or this action won't work
2117

22-
- name: Use Node.js ${{ matrix.node }}
18+
- name: Use Node.js
2319
uses: actions/setup-node@v4
2420
with:
25-
node-version: ${{ matrix.node }}
21+
node-version-file: '.nvmrc'
2622

2723
- name: Detect changes (git)
2824
id: changes

.github/workflows/official-release.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,16 @@ jobs:
1717
publish-config:
1818
runs-on: ubuntu-20.04
1919

20-
strategy:
21-
matrix:
22-
node: [18.x] # This should be LTS
23-
2420
steps:
2521
- name: Checkout code
2622
uses: actions/checkout@v4
2723
with:
2824
fetch-depth: 0 # Fetch the history, or this action won't work
2925

30-
- name: Use Node.js ${{ matrix.node }}
26+
- name: Use Node.js
3127
uses: actions/setup-node@v4
3228
with:
33-
node-version: ${{ matrix.node }}
29+
node-version-file: '.nvmrc'
3430

3531
- name: Prepare installation
3632
uses: ./.github/actions/install-redis-linux

.prettierrc.json

-12
This file was deleted.

eslint.config.mjs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import config, { esmConfig } from '@iobroker/eslint-config';
2+
3+
export default [
4+
{
5+
ignores: ['**/build/*'],
6+
},
7+
...config,
8+
...esmConfig,
9+
{
10+
files: ['**/*.test-d.ts'],
11+
rules: {
12+
'@typescript-eslint/no-unused-vars': 'off',
13+
'@typescript-eslint/no-base-to-string': 'off',
14+
},
15+
},
16+
];

0 commit comments

Comments
 (0)