Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
aui committed Apr 18, 2024
1 parent fbffa04 commit 316732a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 21 deletions.
22 changes: 11 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
sourceType: 'module', // Allows for the use of imports
},
settings: {
react: {
version: "detect", // Tells eslint-plugin-react to automatically detect the version of React to use
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
extends: [
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"prettier", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
Expand Down
14 changes: 11 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always"
}
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "@web-widget/shared-cache",
"version": "0.0.1",
"version": "0.0.0",
"description": "An implementation of the web Cache API using LRU",
"keywords": [
"Cache",
"caches",
"fetch",
"WinterCG"
],
"exports": {
".": {
"types": "./dist/shared-cache.d.ts",
Expand All @@ -27,8 +33,7 @@
"update:check": "pnpm -r exec ncu -- --errorLevel 2 && ncu -- --errorLevel 2",
"version:prepare": "changeset version && pnpm install --no-frozen-lockfile",
"version:publish": "changeset publish",
"docs": "typedoc",
"example": "ts-node example/example.ts"
"docs": "typedoc"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ export type SharedCacheQueryOptions = {
*/
forceCache?: boolean;
ignoreCacheControl?: boolean;
/** @deprecated */
/** @private */
ignoreMethod?: never;
/** @deprecated */
/** @private */
ignoreSearch?: never;
/** @deprecated */
/** @private */
ignoreVary?: never;
/**
* Method to initiate a request after cache expiration.
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
},
"exclude": [".backup/**/*", "tsup.config.ts", "node_modules"],
"include": ["src/**/*", "test/**/*"]
}
}

0 comments on commit 316732a

Please sign in to comment.