-
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.
Prepare example and scaffolding (#5)
* Flesh out example library * More package prep
- Loading branch information
Showing
24 changed files
with
89 additions
and
119 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
* text=auto |
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,7 @@ | ||
*.log* | ||
.DS_Store | ||
|
||
.idea/ | ||
coverage/ | ||
dist/ | ||
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 @@ | ||
save-exact=true |
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 @@ | ||
14.16.0 |
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,30 @@ | ||
modult.exports = { | ||
defaultErrorLevel: 'error', | ||
failOnErrorLevel: 'error', | ||
rules: [ | ||
// `@packagelint/core` defines the rules, but rules are disabled by default: | ||
// each `@packagelint/recommended-...` ruleset enables a default set of core rules. | ||
'@packagelint/recommended-library-rules', | ||
|
||
// Update the `nvmrc` rule to require at least Node 14, instead of the default. | ||
// This could also be written like this, if you prefer shorthand: | ||
// ['@packagelint/core/nvmrc', { minVersion: '14' }], | ||
{ | ||
name: '@packagelint/core/nvmrc', | ||
options: { | ||
minVersion: '14', | ||
}, | ||
}, | ||
|
||
// Update the `npmrc` rule to require `save-exact=true`. | ||
// You would use a similar approach if your organization requires a specific `registry` to be set in .npmrc | ||
{ | ||
name: '@packagelint/core/npmrc', | ||
options: { | ||
requireValues: { | ||
'save-exact': 'true', | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |
File renamed without changes.
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,28 @@ | ||
{ | ||
"name": "@packagelint/example-library", | ||
"private": true, | ||
"version": "0.0.1", | ||
"description": "A demo configuration of packagelint for a library", | ||
"license": "MIT", | ||
"homepage": "https://github.com/spautz/packagelint/tree/main/examples/demo-library#readme", | ||
"bugs": "https://github.com/spautz/packagelint/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/spautz/packagelint.git", | ||
"directory": "examples/demo-library" | ||
}, | ||
"author": { | ||
"name": "Steven Pautz", | ||
"url": "http://stevenpautz.com/" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"packagelint": "packagelint" | ||
}, | ||
"devDependencies": { | ||
"@packagelint/core": "^0.0.1", | ||
"@packagelint/recommended-library-rules": "^0.0.1" | ||
} | ||
} |
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,5 @@ | ||
const exampleLibraryFn = () => { | ||
console.log('exampleLibraryFn!'); | ||
}; | ||
|
||
export { exampleLibraryFn }; |
File renamed without changes.
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 |
---|---|---|
|
@@ -87,7 +87,6 @@ | |
} | ||
}, | ||
"workspaces": [ | ||
"examples/*", | ||
"packages/*" | ||
] | ||
} |
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 @@ | ||
console.log('@TODO'); |
File renamed without changes.
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 @@ | ||
export {}; |
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