npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@proxima-oss/eslint-config

v6.0.1

Published

This repo contains Proxima's canonical `eslint` config, it is strongly recommended that you keep your `TypeScript` repositories in-line with this config where possible. Currently all the rules are sitting inside the `index.js` (which is exported via the `

Downloads

13

Readme

Proxima Capital's ESLint-Config

This repo contains Proxima's canonical eslint config, it is strongly recommended that you keep your TypeScript repositories in-line with this config where possible.

Different type of eslint configs

There are currently three different types of configs available to use under two different catagories. You can access the config two ways. Either through the package.json or a dedicated .eslintrc(.js) file.

Correctness

The correctness rule set is all of our current eslint config rules that keep the code in a correct manor, i.e if(true) is always truthy and shouldn't be in our code base.

Style

The style rule set encompasses all of our stylist rules. We have two subsets of these, Verbose and Standard. The difference between the two is that standard allows type-inferring while the verbose rule set makes the dev declare what type the type is on the variable.

i.e.

Standard: const lExampleVar = aClass.GetVar();

Verbose: const lExampleVar: ExampleType = aClass.GetVar();

These eslint configs both extend correctness. This is because correctness should always be used and when we import more than one eslint config, there overrides clash which can lead to correctness-rules/style-rules missing.

package.json modifications

This is the slickest way to access the config. Add one of the following objects to the package.json:

"eslintConfig": {
    "extends": "@proxima-oss/eslint-config/style/standard"
},

"eslintConfig": {
    "extends": "@proxima-oss/eslint-config/style/verbose"
},

"eslintConfig": {
    "extends": "@proxima-oss/eslint-config/correctness"
},

In line with the eslint recommendations, the next easiest way to use this config in your repo is to extend the eslintrc.js in your root directory. That is,

// repo_root/.eslintrc.js
module.exports = {
    "extends": "@proxima-oss/eslint-config/style/standard"
}

module.exports = {
    "extends": "@proxima-oss/eslint-config/style/verbose"
}

module.exports = {
    "extends": "@proxima-oss/eslint-config/correctness"
}

Development

If you want to make additions to this configuration and don't want to wait between npm publishes, your best bet is to use npm link to symbolically link your changes to the package you want to try it out in.

Let's say you wanted to make changes here and test them out in the infrastructure repo:

# inside this repo
npm link # <- this makes a symbolic link in the global node_modules folder
cd ../infrastructure
# copy the symlink into the ./node_modules/@proxima-oss/eslint-config/
npm link @proxima-oss/eslint-config

Now, provided your infrastructure/.eslintrc.js or infrastructure/package.json is configured as above, you should see the effects of your changes.

Don't forget to npm unlink (npm uninstall) after you publish your changes:

# inside the infrastructure repo
npm unlink --no-save @proxima-oss/eslint-config
npm install # download latest eslint-config