Skip to content

Instantly share code, notes, and snippets.

@w3cj
Last active October 2, 2025 12:14
Show Gist options
  • Save w3cj/21b1f1b4857ecd13d076075a5c5aaf13 to your computer and use it in GitHub Desktop.
Save w3cj/21b1f1b4857ecd13d076075a5c5aaf13 to your computer and use it in GitHub Desktop.

Revisions

  1. w3cj revised this gist Mar 20, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions eslint.config.mjs
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ export default antfu({
    },
    }, {
    rules: {
    "ts/no-redeclare": "off",
    "ts/consistent-type-definitions": ["error", "type"],
    "no-console": ["warn"],
    "antfu/no-top-level-await": ["off"],
  2. w3cj renamed this gist Mar 15, 2025. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. w3cj revised this gist Jan 10, 2025. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion estlint.config.mjs
    Original file line number Diff line number Diff line change
    @@ -14,12 +14,13 @@ export default antfu({
    },
    }, {
    rules: {
    "ts/consistent-type-definitions": ["error", "type"],
    "no-console": ["warn"],
    "antfu/no-top-level-await": ["off"],
    "node/prefer-global/process": ["off"],
    "node/no-process-env": ["error"],
    "perfectionist/sort-imports": ["error", {
    internalPattern: ["@/**"],
    tsconfigRootDir: '.',
    }],
    "unicorn/filename-case": ["error", {
    case: "kebabCase",
  4. w3cj revised this gist Oct 3, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion estlint.config.mjs
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,8 @@ export default antfu({
    }, {
    rules: {
    "no-console": ["warn"],
    "antfu/no-top-level-await": ["off"],
    "node/prefer-global/process": ["off"],
    "node/no-process-env": ["error"],
    "perfectionist/sort-imports": ["error", {
    internalPattern: ["@/**"],
    @@ -24,4 +26,4 @@ export default antfu({
    ignore: ["README.md"],
    }],
    },
    });
    });
  5. w3cj revised this gist Sep 21, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion estlint.config.mjs
    Original file line number Diff line number Diff line change
    @@ -14,12 +14,14 @@ export default antfu({
    },
    }, {
    rules: {
    "no-console": ["warn"],
    "node/no-process-env": ["error"],
    "perfectionist/sort-imports": ["error", {
    internalPattern: ["@/**"],
    }],
    "unicorn/filename-case": ["error", {
    case: "kebabCase",
    ignore: ["README.md"],
    }],
    },
    });
    });
  6. w3cj created this gist Sep 21, 2024.
    25 changes: 25 additions & 0 deletions estlint.config.mjs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    // Run this command to generate base config and vs code settings:
    // pnpm dlx @antfu/eslint-config@latest

    import antfu from "@antfu/eslint-config";

    export default antfu({
    type: "app",
    typescript: true,
    formatters: true,
    stylistic: {
    indent: 2,
    semi: true,
    quotes: "double",
    },
    }, {
    rules: {
    "node/no-process-env": ["error"],
    "perfectionist/sort-imports": ["error", {
    internalPattern: ["@/**"],
    }],
    "unicorn/filename-case": ["error", {
    case: "kebabCase",
    }],
    },
    });