This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0544dc3
commit fc54894
Showing
60 changed files
with
367 additions
and
354 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// @ts-check | ||
// remember: "plugin:deprecation/recommended", | ||
import eslint from "@eslint/js"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
import deprecationPlugin from "eslint-plugin-deprecation"; | ||
import importPlugin from "eslint-plugin-import"; | ||
import noRelativeImportPathsPlugin from "eslint-plugin-no-relative-import-paths"; | ||
import tseslint from "typescript-eslint"; | ||
//import tsParser from "@typescript-eslint/parser"; | ||
//import ts from "@typescript-eslint/eslint-plugin"; | ||
|
||
// TODO: enable eslint-plugin-import (absolute imports) when it is properly supported with flat configs | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
tseslint.configs.strict, | ||
tseslint.configs.stylistic, | ||
// importPlugin.flatConfigs.recommended, | ||
// importPlugin.flatConfigs.typescript, | ||
{ | ||
files: ["**/*.{js,mjs,cjs,ts}"], | ||
plugins: { | ||
"no-relative-import-paths": noRelativeImportPathsPlugin, | ||
import: importPlugin, | ||
deprecation: deprecationPlugin, | ||
}, | ||
/* | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
project: ["tsconfig.json"], | ||
}, | ||
}, | ||
*/ | ||
rules: { | ||
//...ts.configs["recommended-requiring-type-checking"].rules, | ||
//...ts.configs["stylistic-type-checked"].rules, | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ argsIgnorePattern: "^_" }, | ||
], | ||
"no-relative-import-paths/no-relative-import-paths": [ | ||
"error", | ||
{ | ||
rootDir: "src", | ||
prefix: "@", | ||
}, | ||
], | ||
/** @see https://medium.com/weekly-webtips/how-to-sort-imports-like-a-pro-in-typescript-4ee8afd7258a */ | ||
"import/order": [ | ||
"error", | ||
{ | ||
groups: [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
["sibling", "parent"], | ||
"index", | ||
"unknown", | ||
], | ||
"newlines-between": "always", | ||
alphabetize: { | ||
order: "asc", | ||
caseInsensitive: true, | ||
}, | ||
}, | ||
], | ||
/** */ | ||
}, | ||
}, | ||
eslintConfigPrettier, | ||
); |
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
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
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export type RefreshToken = { | ||
export interface RefreshToken { | ||
iss: string; | ||
aud: string; | ||
expiresIn: string; | ||
iat: number; | ||
sub: string; | ||
username: string; | ||
}; | ||
} |
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
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
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
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
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
1 change: 0 additions & 1 deletion
1
src/collections/customer-item/hooks/customer-item-patch.hook.ts
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
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
Oops, something went wrong.