Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore]: port to official @iobroker/eslint-config config #2898

Merged
merged 16 commits into from
Sep 23, 2024
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
Loading