Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/packages/eslint-config-base/ @robertrossmann
/packages/eslint-config-node/ @robertrossmann
/packages/eslint-config-mocha/ @robertrossmann
/packages/eslint-config-typescript/ @robertrossmann
/packages/eslint-config-graphql/ @developer239
/packages/eslint-config-react/ @robertrossmann @matejpolak
/packages/prettier-config/ @robertrossmann @matejpolak
6 changes: 3 additions & 3 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
CI: 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
cache: npm

- run: make install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
CI: 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
cache: npm

- run: make install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
CI: 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
cache: npm

- run: make install
Expand Down
2 changes: 1 addition & 1 deletion documentation/eslint/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const files = {
}

// This will allow your IDE to provide autocomplete suggestions ✨
/** @type {Array<import("eslint").Linter.FlatConfig>} */
/** @type {Array<import("eslint").Linter.Config>} */
const config = [{
linterOptions: {
reportUnusedDisableDirectives: true,
Expand Down
32 changes: 13 additions & 19 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
import node from './packages/eslint-config-node/index.mjs'
import optional from './packages/eslint-config-node/optional.mjs'
import style from './packages/eslint-config-node/style.mjs'
import { defineConfig } from 'eslint/config'
import node from '@strv/eslint-config-node'
import optional from '@strv/eslint-config-node/optional'
import style from '@strv/eslint-config-node/style'

/** @type {Array<import("eslint").Linter.Config>} */
const config = [{
export default defineConfig([{
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
extends: [
node,
optional,
style,
],
linterOptions: {
reportUnusedDisableDirectives: true,
reportUnusedDisableDirectives: 'warn',
},
ignores: [
'node_modules',
'!.*.js',
],
settings: {
'import/resolver': { typescript: {} },
},
},
node,
optional,
style,
{
rules: {},
}]

export default config
}])
Loading