Skip to content

Commit

Permalink
Merge pull request #1220 from neet/bump-npm-dependencies
Browse files Browse the repository at this point in the history
chore: Bump npm dependencies
  • Loading branch information
neet authored Oct 15, 2024
2 parents a96ac58 + b0792e1 commit 129e8b0
Show file tree
Hide file tree
Showing 9 changed files with 2,010 additions and 1,779 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

88 changes: 0 additions & 88 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"timeframe",
"tootctl",
"trendable",
"tseslint",
"typedoc",
"unassign",
"unbookmark",
Expand Down
107 changes: 107 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
import eslint from "@eslint/js";
import importPlugin from "eslint-plugin-import";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import eslintPluginUnicorn from "eslint-plugin-unicorn";
import globals from "globals";
// eslint-disable-next-line import/no-unresolved
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
eslintPluginUnicorn.configs["flat/recommended"],
eslintPluginPrettierRecommended,
{
ignores: [
"dist",
"docs",
"coverage",
"playground",
"**/__tests__/",
"**/__mocks__/",
],
},
{
files: ["**/*.{js,ts}"],
plugins: {
"simple-import-sort": simpleImportSort,
},
rules: {
"no-console": "error",
"no-unused-vars": "off",
"import/no-cycle": "error",
"simple-import-sort/imports": "error",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-array-reduce": "off",
},
ignores: ["/dist", "/docs", "**/__tests__/", "**/__mocks__/"],
},
{
files: ["**/*.ts"],
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
},
},
rules: {
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ accessibility: "no-public" },
],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"@typescript-eslint/consistent-type-imports": [
"error",
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
],
"no-restricted-imports": [
"error",
{
paths: [
{
name: "ws",
message: "Use `isomophic-ws` instead.",
},
],
},
],
},
},
{
files: ["examples/**"],
languageOptions: {
parserOptions: {
project: "./examples/tsconfig.json",
},
},
rules: {
"no-console": "off",
"import/no-unresolved": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/no-process-exit": "off",
},
},
{
files: ["tests/**/*.ts", "test-utils/**/*.ts", "**/*.spec.ts"],

languageOptions: {
globals: {
...globals.jest,
},
},

rules: {
"no-constant-condition": "off",
},
},
);
Loading

0 comments on commit 129e8b0

Please sign in to comment.