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

@foundersclubsoftware/eslint-config-web

v1.2.0

Published

Sharable eslint config file we use on the web team

Downloads

2

Readme

@foundersclubsoftware/eslint-config-web

Sharable eslint config file we use on the web team.

Mission of this project

This config file is not meant to replace the entire Vuejs eslint config file. It's meant to extend it with more functionality. On this team, we write tests with Jest, we use babel, and we use typescript. These rules are meant to add more rules to eslint to write more consistent and safe code.

Vuejs is changing all the time. It would be difficult to make 1 config file that worked for all vue projects all the time. If this was a vanilla typescript nodejs app, creating a single config file would be more possible. This project's sharable config file contains mostly typescript and jest rules but can also contain other rules as well.

Getting started

  1. Install your dependencies:
npm install -D @foundersclubsoftware/eslint-config-web

# These are modules that are required by the shareable config
npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser
  1. Enable the config by adding to your existing .eslintrc.js file:
module.exports = {
  parser: "vue-eslint-parser",
  extends: [
    "plugin:vue/essential",
    "@vue/typescript/recommended",

    # shareable needs to be the last config before prettier so it can override other rules defined in configs above. 
    "@foundersclubsoftware/eslint-config-web",
    # Make sure prettier last to run prettier.
    "@vue/prettier",
    "@vue/prettier/@typescript-eslint"
  ]
};
  1. Modify your project's lint script in package.json. Change "lint": "vue-cli-service lint" to "lint": "vue-cli-service lint --ext .ts,.js,.vue .". This is needed because if you do not pass in arguments to vue-cli-service lint, it will automatically lint only .js and .vue files in src/ and tests/. We want to also enable .ts files.

Development

  • Setup
npm install
  • Use the example project located in example/ to test out your changes to the config project.

  • This project follows a strict semantic versioning policy. The policy is enforced on the CI server where it will not allow you to merge your PR unless your commit messages are in the correct format. To learn more, check out this doc.

  • Make a PR, the team will merge it in, the a release will be made.

License

See LICENSE