| 3719 |
stevensc |
1 |
import js from '@eslint/js';
|
|
|
2 |
import globals from 'globals';
|
|
|
3 |
import pluginReact from 'eslint-plugin-react';
|
|
|
4 |
import eslintConfigPrettier from 'eslint-config-prettier/flat';
|
|
|
5 |
import importPlugin from 'eslint-plugin-import';
|
|
|
6 |
import { defineConfig } from 'eslint/config';
|
|
|
7 |
|
|
|
8 |
export default defineConfig([
|
|
|
9 |
{ files: ['**/*.{js,mjs,cjs,jsx}'], plugins: { js, importPlugin }, extends: ['js/recommended'] },
|
|
|
10 |
{ files: ['**/*.{js,mjs,cjs,jsx}'], languageOptions: { globals: globals.browser } },
|
|
|
11 |
pluginReact.configs.flat.recommended,
|
|
|
12 |
eslintConfigPrettier,
|
|
|
13 |
{
|
|
|
14 |
files: ['**/*.{js,mjs,cjs,jsx}'],
|
|
|
15 |
settings: {
|
|
|
16 |
react: {
|
|
|
17 |
version: '18.3'
|
|
|
18 |
}
|
|
|
19 |
},
|
|
|
20 |
rules: {
|
|
|
21 |
'react/prop-types': 'off'
|
|
|
22 |
}
|
|
|
23 |
}
|
|
|
24 |
]);
|