Giter Site home page Giter Site logo

Migrate to ESLint about ngx-wig HOT 7 CLOSED

bampakoa avatar bampakoa commented on August 17, 2024
Migrate to ESLint

from ngx-wig.

Comments (7)

bampakoa avatar bampakoa commented on August 17, 2024 1

Yes, that's correct. Do you want to try it by yourself? 🙂

from ngx-wig.

stevermeister avatar stevermeister commented on August 17, 2024

@bampakoa yes, sure! good idea!

the whole migration should be just a few commands:

ng add @angular-eslint/schematics
ng g @angular-eslint/schematics:convert-tslint-to-eslint
ng lint

and hope that everything works as expected? :)

from ngx-wig.

stevermeister avatar stevermeister commented on August 17, 2024

after 1 and 2
for ng lint
I'm getting a strange error:

[error] Error: Cannot find builder "@angular-devkit/build-angular:tslint".
    at WorkspaceNodeModulesArchitectHost.resolveBuilder (/Users/stevermeister/workspace/stevermeister/ngx-wig/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:130:19)
    at LintCommandModule.getArchitectTargetOptions (/Users/stevermeister/workspace/stevermeister/ngx-wig/node_modules/@angular/cli/src/command-builder/architect-base-command-module.js:81:47)
    at async LintCommandModule.builder (/Users/stevermeister/workspace/stevermeister/ngx-wig/node_modules/@angular/cli/src/command-builder/architect-command-module.js:50:31)
    at async runCommand (/Users/stevermeister/workspace/stevermeister/ngx-wig/node_modules/@angular/cli/src/command-builder/command-runner.js:111:5)
    at async default_1 (/Users/stevermeister/workspace/stevermeister/ngx-wig/node_modules/@angular/cli/lib/cli/index.js:70:16)

from ngx-wig.

stevermeister avatar stevermeister commented on August 17, 2024

just forgot to specify the project:

ng lint --project=ngx-wig

from ngx-wig.

stevermeister avatar stevermeister commented on August 17, 2024

✖ 45 problems (45 errors, 0 warnings)

and one more command:

 ng lint --project=ngx-wig --fix

✖ 17 problems (17 errors, 0 warnings)

almost there... :)

from ngx-wig.

stevermeister avatar stevermeister commented on August 17, 2024
All files pass linting.

only I have this warning now:

Warning: 'noEslintrc' option has been declared with a 'no' prefix in the schema.Please file an issue with the author of this package.

from ngx-wig.

stevermeister avatar stevermeister commented on August 17, 2024

https://github.com/stevermeister/ngx-wig/pull/178/files

from ngx-wig.

Related Issues (20)

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.