Document Phase 0 scaffold and architecture
This commit is contained in:
33
eslint.config.mjs
Normal file
33
eslint.config.mjs
Normal file
@@ -0,0 +1,33 @@
|
||||
import eslint from '@eslint/js';
|
||||
import reactHooks from 'eslint-plugin-react-hooks';
|
||||
import globals from 'globals';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: ['.vite/**', 'coverage/**', 'node_modules/**', 'out/**'],
|
||||
},
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
files: ['src/renderer/**/*.{ts,tsx}'],
|
||||
languageOptions: {
|
||||
globals: globals.browser,
|
||||
},
|
||||
plugins: {
|
||||
'react-hooks': reactHooks,
|
||||
},
|
||||
rules: reactHooks.configs.flat.recommended.rules,
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'*.config.{ts,mts}',
|
||||
'forge.env.d.ts',
|
||||
'src/main/**/*.ts',
|
||||
'src/preload/**/*.ts',
|
||||
],
|
||||
languageOptions: {
|
||||
globals: globals.node,
|
||||
},
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user