Giter Club home page Giter Club logo

eslint-config's People

Contributors

chernodub avatar dependabot[bot] avatar panov-aleksey-saritasa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

denischudnov

eslint-config's Issues

Resolve extra spaces case

export class NotesComponent {
  /** Project based on the opened url. */
  public readonly project$: Observable<Project>;


  public constructor(
    private readonly projectsService: ProjectsService,
    activatedRoute: ActivatedRoute,
  ) {
}

lint script does not traverse child directories

image
Issue:

When we set way, as on repo readme file
("lint": "eslint src/**/*.ts --fix")
, linter does not work with child directories. It's happen cause of eslint CLI rules.
For check it, visit eslint CLI docs: https://eslint.org/docs/user-guide/command-line-interface

To reproduce:

Generate angular project
Install eslint via npm or yarn
install current eslint (repo) via npm, or command from readme file
(npm i -D @chernodub/eslint-config && echo "{ "extends": "@chernodub/eslint-config" }" > .eslintrc.json
)

Expected result:

Lint working with all .ts file in src directory and child directories

Actual result:

Lint working only with .ts files in describe directory,
Lint doesn't working with .ts files from child directories;

Environment:

Ubuntu 20/04 LTS, IDE WebStorm (JetBrains), angular v.12.2.0, npm v 7.20.3, node v. 16.6.1

Proposed solution:

Add quotes to set way, like that:
"lint": "eslint 'src/**' --fix"

Additional issue:
After added quotes, lint working with all childs directories, and check all formats.
Unfortunatelly, if we using quotes for setting global scope, formats names will be ignored.
(Info from eslint documentation)

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.