Initial state with almost all ready to work
This commit is contained in:
35
eslint.config.js
Normal file
35
eslint.config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import { defineConfig } from "eslint/config";
|
||||
import eslint from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import eslintPluginReact from "eslint-plugin-react";
|
||||
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
|
||||
|
||||
// noinspection JSCheckFunctionSignatures
|
||||
export default defineConfig([
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
settings: {
|
||||
react: {
|
||||
version: "detect",
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
react: eslintPluginReact,
|
||||
reactHooks: eslintPluginReactHooks,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"varsIgnorePattern": "^_",
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
eslintPluginReact.configs.flat.recommended,
|
||||
eslintPluginReact.configs.flat['jsx-runtime'],
|
||||
eslintPluginReactHooks.configs['recommended-latest'],
|
||||
|
||||
]);
|
||||
Reference in New Issue
Block a user