-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1220 from neet/bump-npm-dependencies
chore: Bump npm dependencies
- Loading branch information
Showing
9 changed files
with
2,010 additions
and
1,779 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ | |
"timeframe", | ||
"tootctl", | ||
"trendable", | ||
"tseslint", | ||
"typedoc", | ||
"unassign", | ||
"unbookmark", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
); |
Oops, something went wrong.