Skip to content

Commit

Permalink
some more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Dec 24, 2024
1 parent f42a19f commit 98e04f4
Show file tree
Hide file tree
Showing 5 changed files with 2,237 additions and 1,900 deletions.
21 changes: 7 additions & 14 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
import eslint from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';
import tseslint from 'typescript-eslint';
import importPlugin from 'eslint-plugin-import';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';

const compat = new FlatCompat();

export default tseslint.config(
{ ignores: ['dist/'] },
eslint.configs.recommended,
tseslint.configs.recommended,
importPlugin.flatConfigs.recommended,
jsxA11y.flatConfigs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
...compat.extends('plugin:react-hooks/recommended'),
{
settings: {
'import/resolver': {
typescript: true,
alias: {
map: [['jotai-valtio', './src/index.ts']],
},
},
react: {
version: 'detect',
alias: { map: [['jotai-valtio', './src/index.ts']] },
},
},
plugins: {
'react-hooks': reactHooks,
react: { version: 'detect' },
},
rules: {
...reactHooks.configs.recommended.rules,
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
},
},
{
ignores: ['dist/'],
},
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"src",
"dist"
],
"packageManager": "pnpm@8.15.0",
"packageManager": "pnpm@9.4.0",
"scripts": {
"compile": "rm -rf dist && pnpm run '/^compile:.*/'",
"compile:esm": "tsc -p tsconfig.esm.json",
Expand Down
Loading

0 comments on commit 98e04f4

Please sign in to comment.