Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
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
38 changes: 0 additions & 38 deletions .eslintrc.cjs

This file was deleted.

11 changes: 7 additions & 4 deletions .github/workflows/build-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:

steps:
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 18
node-version: 22
cache: npm

- name: Install dependencies
Expand All @@ -29,7 +29,10 @@ jobs:
run: npm run build

- name: Lint
run: npm run lint:check
run: npm run lint

- name: Format
run: npm run format

- name: Add build summary
run: |
Expand Down
74 changes: 0 additions & 74 deletions eslint.config.cjs

This file was deleted.

60 changes: 60 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import globals from 'globals';
import js from '@eslint/js';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import reactPlugin from 'eslint-plugin-react';
import reactHooksPlugin from 'eslint-plugin-react-hooks';
import reactRefreshPlugin from 'eslint-plugin-react-refresh';
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
import importPlugin from 'eslint-plugin-import';
import prettierConfig from 'eslint-config-prettier';

export default [
{
ignores: ['**/dist', '**/node_modules', '**/eslint.config.*', '**/vite.config.*', '**/tsconfig*.json'],
},
js.configs.recommended,
...tsPlugin.configs['flat/recommended'],
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
reactHooksPlugin.configs.flat.recommended,
jsxA11yPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.recommended,
Comment thread
alainncls marked this conversation as resolved.
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
globals: {
...globals.browser,
},
parser: tsParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
'react-refresh': reactRefreshPlugin,
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
paths: ['src'],
alias: {
'@': './node_modules',
},
},
},
},
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
},
prettierConfig,
];
Loading