Skip to content

Instantly share code, notes, and snippets.

View bossever's full-sized avatar
💠

Ayushman Sachan bossever

💠
View GitHub Profile
@bossever
bossever / eslint.config.js
Created October 25, 2024 08:28
ESLint Flat Config (fixed import/resolver & import/parser options)
import js from "@eslint/js";
import importPlugin from "eslint-plugin-import";
import react from "eslint-plugin-react";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
@bossever
bossever / .eslintrc.js
Created October 9, 2024 10:41
ESLint config for a Next.js project, including import ordering with @ aliases
/** @type {import("eslint").Linter.Config} */
const config = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
plugins: ["@typescript-eslint", "react", "prettier", "import"],
extends: [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended-type-checked",
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@bossever
bossever / config_profiles.xml
Last active April 26, 2021 17:25
Issue #9940
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
<property name="severity" value="warning"/>
@bossever
bossever / markdown-details-collapsible.md
Created March 18, 2021 15:06 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets