|
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' |
| 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 | 6 |
|
7 | 7 | export default defineConfig([ |
8 | | - globalIgnores(['dist']), |
| 8 | + globalIgnores(["dist"]), |
9 | 9 | { |
10 | | - files: ['**/*.{js,jsx}'], |
| 10 | + files: ["**/*.{js,jsx}"], |
11 | 11 | extends: [ |
12 | 12 | js.configs.recommended, |
13 | | - reactHooks.configs['recommended-latest'], |
| 13 | + reactHooks.configs["recommended-latest"], |
14 | 14 | reactRefresh.configs.vite, |
15 | 15 | ], |
16 | 16 | languageOptions: { |
17 | 17 | ecmaVersion: 2020, |
18 | 18 | globals: globals.browser, |
19 | 19 | parserOptions: { |
20 | | - ecmaVersion: 'latest', |
| 20 | + ecmaVersion: "latest", |
21 | 21 | ecmaFeatures: { jsx: true }, |
22 | | - sourceType: 'module', |
| 22 | + sourceType: "module", |
23 | 23 | }, |
24 | 24 | }, |
25 | 25 | rules: { |
26 | | - 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], |
| 26 | + "no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }], |
27 | 27 | }, |
28 | 28 | }, |
29 | | -]) |
| 29 | +]); |
0 commit comments