|
Last change
on this file since 3ebe47c was 72053b5, checked in by Andrej <asumanovski@…>, 5 months ago |
|
first commit
|
-
Property mode
set to
100644
|
|
File size:
758 bytes
|
| Line | |
|---|
| 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 | ])
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.