forked from storacha/w3up
-
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.
chore: no longer depends on hd-scripts, packages use/configure eslint…
… directly, fixes warnings from npm lint script (storacha#1058) Motivation: * fix warning in console when running lint script while devving in access-client: storacha#1053 Tactics: * new package `packages/eslint-config-w3up` * all packages use package.json to set `eslintConfig.extends` to `@web3-storage/eslint-config-w3up` and have a devDep on that package within the monorepo. No monorepo subpackages use any eslint rules other than those in eslint-config-w3up. i.e. all w3up packages use the same eslint config (this wasn't actually the case before, since different w3up packages were depending on different versions of hd-scripts) * no packages depend on hd-scripts any more
- Loading branch information
Showing
60 changed files
with
399 additions
and
1,725 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/node_modules |
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,61 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jsdoc/recommended", | ||
], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
|
||
/** | ||
* many of these rules are inherited from hd-scripts. | ||
* It may be useful over time to remove these rules | ||
* and juse use plugin:jsdoc/recommended defaults. | ||
* But that might require updating src. | ||
*/ | ||
"jsdoc/check-values": "off", | ||
"jsdoc/check-tag-names": "off", | ||
"jsdoc/require-jsdoc": [ | ||
"warn", | ||
{ | ||
"publicOnly": true | ||
} | ||
], | ||
"jsdoc/require-returns": "off", | ||
"jsdoc/require-returns-type": "off", | ||
"jsdoc/require-throws": "off", | ||
"jsdoc/require-yields": "off", | ||
"jsdoc/require-param-description": "off", | ||
"jsdoc/require-property-description": "off", | ||
"jsdoc/require-returns-description": "off", | ||
"jsdoc/valid-types": "off", | ||
"jsdoc/tag-lines": [ | ||
"error", | ||
"any", | ||
{ | ||
"startLines": 1 | ||
} | ||
], | ||
"jsdoc/no-undefined-types": [ | ||
"error", | ||
{ | ||
"definedTypes": [ | ||
"ArrayLike", | ||
"AsyncIterable", | ||
"AsyncIterableIterator", | ||
"Iterable", | ||
"IterableIterator", | ||
"Generator", | ||
"CryptoKeyPair", | ||
"NodeJS", | ||
"ErrorOptions", | ||
"IDBTransactionMode" | ||
] | ||
} | ||
] | ||
|
||
} | ||
} |
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,25 @@ | ||
{ | ||
"name": "@web3-storage/eslint-config-w3up", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "eslint '**/*.{js,ts}'" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.9.1", | ||
"@typescript-eslint/parser": "^6.9.1", | ||
"eslint-plugin-jsdoc": "^46.8.2" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">= 8" | ||
}, | ||
"eslintConfig": { | ||
"extends": "./index.js", | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
} |
Oops, something went wrong.