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
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: monthly
# typescript-eslint requires TypeScript <6.1.
ignore:
- dependency-name: typescript
versions: ['>=6.1.0']
groups:
npm:
patterns: ['*']
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
groups:
actions:
patterns: ['*']
4 changes: 2 additions & 2 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'

Expand Down
16 changes: 13 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import { fixupConfigRules } from '@eslint/compat';
import eslint from '@eslint/js';
import nextConfig from 'eslint-config-next';
import prettierPlugin from 'eslint-plugin-prettier/recommended';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import { parser as tsParser, plugin as tsPlugin } from 'typescript-eslint';

const config = [
eslint.configs.recommended,
...nextConfig,
{
// Next.js's bundled Babel parser lacks ESLint 10's scope-manager API.
files: ['**/*.{js,jsx,mjs,cjs}'],
languageOptions: {
parser: tsParser,
parserOptions: { ecmaFeatures: { jsx: true } },
},
},
prettierPlugin,
{
files: ['**/*.ts', '**/*.tsx'],
Expand Down Expand Up @@ -51,4 +59,6 @@ const config = [
},
];

export default config;
// Next.js still bundles React, import, and accessibility plugins that use pre-ESLint 10 APIs.
// The version-scoped peer overrides in package.json accompany this compatibility wrapper.
export default fixupConfigRules(config);
Loading
Loading