Skip to content

Commit c62ec58

Browse files
author
Loïc Mangeonjean
committed
lib!: update all dependencies
fix eslint config & use prettier
1 parent bc28431 commit c62ec58

File tree

5 files changed

+7137
-6445
lines changed

5 files changed

+7137
-6445
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
singleQuote: true,
3+
jsxSingleQuote: true,
4+
trailingComma: 'none',
5+
semi: false,
6+
printWidth: 100
7+
}

eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import eslint from '@eslint/js'
2+
import tsEslint from 'typescript-eslint'
3+
import eslintPluginReact from 'eslint-plugin-react'
4+
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
5+
import globals from 'globals'
6+
7+
export default tsEslint.config(
8+
eslint.configs.recommended,
9+
tsEslint.configs.recommended,
10+
eslintPluginReact.configs.flat.recommended,
11+
eslintPluginReact.configs.flat?.['jsx-runtime'],
12+
{
13+
rules: { '@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }] },
14+
languageOptions: {
15+
globals: {
16+
...globals.browser
17+
}
18+
}
19+
},
20+
21+
// TODO: Simplify when https://github.com/facebook/react/issues/28313 is resolved
22+
{
23+
plugins: {
24+
'react-hooks': eslintPluginReactHooks
25+
},
26+
rules: { ...eslintPluginReactHooks.configs.recommended.rules }
27+
}
28+
)

0 commit comments

Comments
 (0)