Git Product home page Git Product logo

eslint-config-leozera's Introduction

ESLint (and Prettier) config

npm version NPM downloads GitHub issues Code Style Prettier MIT License Twitter Follow

These are settings for ESLint and Prettier used by me and Thinkific.

What it does

This setup lints your JavaScript code based on practices. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.

Installing

  1. In your project folder, run:
npm i -D eslint-config-leozera # or yarn install --dev eslint-config-leozera
npx install-peerdeps --dev eslint-config-leozera
  1. You will see several dependencies were installed. Now, create (or update) a .eslintrc file with the following content:
{
  'extends': [
    'leozera'
  ]
}
  1. Copy the .prettierrc file from this repository into your project folder

This repository is inspired by eslint-config-wesbos.

eslint-config-leozera's People

Contributors

dependabot-preview[bot] avatar leonardofaria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eslint-config-leozera's Issues

Best way to test the npm package locally?

Hi there,

I was following along your blog post. I'm towards the end of it where you run npm install /Users/leonardo/path/to/eslint-config-test. Upon doing this I'm getting a bunch of warnings on my JS project (the one that consumes the package) on the peer deps.

A little about what I'm doing - I made sure to add peerDependencies to my npm package, similar to what you're doing here. The JS project that consumes this package has older versions of these dependencies (eslint, eslint-config-prettier, eslint-plugin-import etc.). I did notice that you and wesbos both used npx install-peerdeps --dev which I believe works on published npm packages? I'm guessing this because when I ran npx install-peerdeps /Users/path/to/eslint-config-mypackage I got the following:

install-peerdeps v3.0.3
ERR undefined

Any suggestions as to what would be the best way to install these peer dependencies? (not sure if this is the best place to ask this, apologies if not)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.