Skip to content

Commit

Permalink
[chore]: port to official @iobroker/eslint-config config (#2898)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
foxriver76 authored Sep 23, 2024
1 parent 10b9973 commit 4e8189a
Show file tree
Hide file tree
Showing 132 changed files with 23,708 additions and 22,273 deletions.
299 changes: 0 additions & 299 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: '.nvmrc'

- name: NPM install
run: npm i --ignore-scripts # install typescript and @types do not `setup first`
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/nightly-dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,16 @@ jobs:
publish-config:
runs-on: ubuntu-20.04

strategy:
matrix:
node: [18.x] # This should be LTS

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch the history, or this action won't work

- name: Use Node.js ${{ matrix.node }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version-file: '.nvmrc'

- name: Detect changes (git)
id: changes
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/official-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,16 @@ jobs:
publish-config:
runs-on: ubuntu-20.04

strategy:
matrix:
node: [18.x] # This should be LTS

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch the history, or this action won't work

- name: Use Node.js ${{ matrix.node }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version-file: '.nvmrc'

- name: Prepare installation
uses: ./.github/actions/install-redis-linux
Expand Down
12 changes: 0 additions & 12 deletions .prettierrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import config, { esmConfig } from '@iobroker/eslint-config';

export default [
{
ignores: ['**/build/*'],
},
...config,
...esmConfig,
{
files: ['**/*.test-d.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-base-to-string': 'off',
},
},
];
Loading

0 comments on commit 4e8189a

Please sign in to comment.