Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.idea/*
7 changes: 7 additions & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-typescript',
]
}
7 changes: 0 additions & 7 deletions babel.config.js

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import reactRecommended from 'eslint-plugin-react/configs/recommended.js';
import reactJsxRuntime from 'eslint-plugin-react/configs/jsx-runtime.js';
import reactHooks from 'eslint-plugin-react-hooks';
import js from '@eslint/js';
import globals from 'globals';
import stylistic from '@stylistic/eslint-plugin';
import babelParser from '@babel/eslint-parser';

export default [
{
// Add in default flat configs
...reactRecommended,
...reactJsxRuntime,
...js.configs.recommended,

// Stylistic config factory
...stylistic.configs.customize({
semi: true,
quotes: 'single',
indent: 4,
arrowParens: true,
}),

// React hooks config, slightly different from the others because it doesn't yet support the new flat configs afaik
plugins: { 'react-hooks': reactHooks },
rules: reactHooks.configs.recommended.rules,

files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
languageOptions: {
parser: babelParser,
globals: {
...globals.browser, // Add browser environment variables/functions
},
},
},
];
Loading