first commit
This commit is contained in:
commit
8f13dec0e4
15 files changed
+223
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
|
||||
import js from '@eslint/js';
|
||||
import reactHooks from 'eslint-plugin-react-hooks';
|
||||
import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
|
||||
import react from 'eslint-plugin-react/configs/recommended.js';
|
||||
import globals from 'globals';
|
||||
import ts from 'typescript-eslint';
|
||||
|
||||
export default [
|
||||
{ languageOptions: { globals: globals.browser } },
|
||||
js.configs.recommended,
|
||||
...ts.configs.recommended,
|
||||
...fixupConfigRules([
|
||||
{
|
||||
...react,
|
||||
settings: {
|
||||
react: { version: 'detect' },
|
||||
},
|
||||
},
|
||||
reactJsx,
|
||||
]),
|
||||
{
|
||||
plugins: {
|
||||
'react-hooks': fixupPluginRules(reactHooks),
|
||||
},
|
||||
rules: {
|
||||
...reactHooks.configs.recommended.rules,
|
||||
},
|
||||
},
|
||||
{ ignores: ['dist/'] },
|
||||
];
|
||||
Reference in new issue
Block a user