We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44e7696 commit 6fd25e3Copy full SHA for 6fd25e3
1 file changed
src/Stott.Security.Ui/eslint.config.js
@@ -0,0 +1,29 @@
1
+import js from '@eslint/js'
2
+import globals from 'globals'
3
+import reactHooks from 'eslint-plugin-react-hooks'
4
+import reactRefresh from 'eslint-plugin-react-refresh'
5
+import { defineConfig, globalIgnores } from 'eslint/config'
6
+
7
+export default defineConfig([
8
+ globalIgnores(['dist']),
9
+ {
10
+ files: ['**/*.{js,jsx}'],
11
+ extends: [
12
+ js.configs.recommended,
13
+ reactHooks.configs.flat.recommended,
14
+ reactRefresh.configs.vite,
15
+ ],
16
+ languageOptions: {
17
+ ecmaVersion: 2020,
18
+ globals: globals.browser,
19
+ parserOptions: {
20
+ ecmaVersion: 'latest',
21
+ ecmaFeatures: { jsx: true },
22
+ sourceType: 'module',
23
+ },
24
25
+ rules: {
26
+ 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
27
28
29
+])
0 commit comments