Skip to content
This repository was archived by the owner on Feb 28, 2021. It is now read-only.
This repository was archived by the owner on Feb 28, 2021. It is now read-only.

grunt curl 's colorNamer.js has lint errors #97

Open

Description

@mithru

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Details about the bug:

  • Web browser and version:
  • Operating System:
  • Steps to reproduce this:

Following this step in the readme generates a new colorNamer.js with indents that eslint doesn't like.
run grunt curl to get the latest versions of the CDN libraries

Feature enhancement details:

New feature details:

Activity

  1. spiray commented on Aug 9, 2018

    @spiray
    Contributor

    @mithru I am not seeing the same issue. Maybe it is your text editor settings? Either way, does running eslint src/ --fix work for you? Do you think i should add --fix in to the build script?

  2. lm-n commented on Aug 9, 2018

    @lm-n
    Member

    I can fix in the color library.

  3. self-assigned this
    on Aug 9, 2018
  4. mithru commented on Aug 22, 2018

    @mithru
    ContributorAuthor

    Tried eslint src/ --fix on a borrowed machine and this happens (I see the same lint errors in colorNamer.js - I was using vim in both scenarios which defaults to 4-spaced tabs instead of a single space):

    Error: Cannot find module 'eslint-config-p5js'

    npm install --save-dev eslint-config-p5js doesn't seem to help either. I'm definitely missing something on both machines (Windows and Mac). Any ideas? Help, please.

  5. spiray commented on Aug 22, 2018

    @spiray
    Contributor

    @mithru I am not having this issue. Did you run npm install? If so, can you try it in another editor to see if it is being caused by VIM's behavior?

  6. lm-n commented on Sep 23, 2018

    @lm-n
    Member

    @mithru I've updated the colornamer could you try and let me know if there are no linting errors?

  7. mithru commented on Sep 27, 2018

    @mithru
    ContributorAuthor

    @lm-n

    The lint setup on p5 accessibility library still complains about spaces, but I think @spiray 's method of adding --fix to the build script might be the way to handle this, since color namer doesn't necessarily have to abide by eslint-config-p5js

    In any case, here's what npm run build throws at me. eslint src/ --fix fixes these indent issues.

    eslint-config-p5js and eslint are installed globally on my machine though. I have not tried having both just local.

        2:1   error  Expected indentation of 2 spaces but found 4    indent
        3:1   error  Expected indentation of 2 spaces but found 4    indent
    
  8. mithru commented on Sep 27, 2018

    @mithru
    ContributorAuthor

    changing the colorNamer to es6 definitely helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions