Gathering detailed insights and metrics for @linzjs/style
Gathering detailed insights and metrics for @linzjs/style
Gathering detailed insights and metrics for @linzjs/style
Gathering detailed insights and metrics for @linzjs/style
npm install @linzjs/style
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
4 Stars
336 Commits
2 Forks
5 Watching
7 Branches
122 Contributors
Updated on 23 Jun 2024
JavaScript (63.26%)
TypeScript (36.74%)
Cumulative downloads
Total Downloads
Last day
3.1%
1,798
Compared to previous day
Last week
0.7%
9,303
Compared to previous week
Last month
-4.5%
42,631
Compared to previous month
Last year
14.2%
393,730
Compared to previous year
NPM configuration for base typescript projects
Includes:
And configuration for saneish defaults, which can be extended
Most of these are the raw defaults/recommended settings from typescript, eslint and prettier.
1export class FooBar { 2 get foo(): number { 3 return 1; 4 } 5 6 async bar(): Promise<string> { 7 return 'bar'; 8 } 9 10 /** 11 * @param foo foo to bar 12 */ 13 fooBar(foo = 'foo'): string { 14 return `${foo}bar`; 15 } 16}
eslint
using the extensions menu1"editor.codeActionsOnSave": { 2 "source.fixAll.eslint": true 3}, 4"eslint.validate": ["javascript"],
IntelliJ has ESLint support by default,
1npm install @linzjs/style
Either create the base configuration files
1# If on windows run `node ./node_modules/@linzjs/style/build/src/install.js` 2# - tsconfig.json 3# - .eslintrc.cjs 4# - .prettierrc.cjs 5npx linz-style-install
Or extend your existing eslintrc.js
config
Example extending the .eslintrc.js
file in your project
1module.exports = { 2 extends: ["./node_modules/@linzjs/style/.eslintrc.cjs"], 3 4 overrides: [ 5 { 6 /** Overrides for typescript */ 7 files: ["**/*.ts", "**/*.tsx"], 8 rules: { 9 "@typescript-eslint/super-crazy-hook-rule": "error", 10 }, 11 }, 12 ] 13}
npx eslint .
See Migration Docs
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 5/7 approved changesets -- score normalized to 7
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More