Skip to content

Instantly share code, notes, and snippets.

View balthild's full-sized avatar
😢
Depression

Balthild balthild

😢
Depression
View GitHub Profile
import js from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import react from 'eslint-plugin-react';
import ts from 'typescript-eslint';
/**
* @type { import("eslint").Linter.Config[] }
*/
export default [
js.configs.recommended,
#[macro_export]
macro_rules! lazy_regex {
{ $($e:expr)* } => {{
use ::std::sync::LazyLock;
use ::regex_lite::Regex;
static __RE: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(concat!($($e),*)).unwrap()
});