mirror of
https://github.com/hanzoai/cc.git
synced 2026-09-24 16:57:40 +00:00
31 lines
700 B
JavaScript
31 lines
700 B
JavaScript
import js from '@eslint/js';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
import pluginReact from 'eslint-plugin-react';
|
|
import { defineConfig } from 'eslint/config';
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
plugins: { js },
|
|
extends: ['js/recommended'],
|
|
},
|
|
{
|
|
files: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
languageOptions: { globals: globals.node },
|
|
},
|
|
tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
{
|
|
settings: {
|
|
react: {
|
|
version: '18.2',
|
|
runtime: 'automatic',
|
|
},
|
|
},
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
},
|
|
},
|
|
]);
|