| module.exports = { |
| root: true, |
| env: { browser: true, es2020: true }, |
| extends: [ |
| 'eslint:recommended', |
| 'plugin:@typescript-eslint/recommended', |
| 'plugin:react-hooks/recommended', |
| ], |
| parser: '@typescript-eslint/parser', |
| parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, |
| plugins: ['react-refresh', 'simple-import-sort'], |
| rules: { |
| 'react-refresh/only-export-components': 'warn', |
| 'simple-import-sort/imports': [ |
| 'error', |
| { |
| groups: [ |
| |
| ['^\\u0000'], |
| |
| [`^(${require('module').builtinModules.join('|')})(/|$)`], |
| |
| ['^react', '^\\w', '^@\\w'], |
| |
| [`^(@@types)(/.*|$)`], |
| |
| [ |
| `^(~)(/.*|$)`, |
| ], |
| |
| ['^\\.\\.(?!/?$)', '^\\.\\./?$'], |
| |
| ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], |
| |
| ['^.+\\.s?css$'], |
| ], |
| }, |
| ], |
| '@typescript-eslint/no-explicit-any': 'off' |
| }, |
| } |
|
|