Coder Social home page Coder Social logo

Comments (8)

proProbe avatar proProbe commented on April 28, 2024

It seems like this is still a problem? Any ideas on this?

from schemastore.

omgaunicorn avatar omgaunicorn commented on April 28, 2024

I ran into the same issue, specifically with the curly rule at first and mistakenly tried to fix it on the tslint side, but the tslint.json used here has several old schemata for rules that have changed. I'll look into making a PR with updates to those rules.

from schemastore.

cyrilletuzi avatar cyrilletuzi commented on April 28, 2024

Be sure to not only add the missing new rules, but also the new options and severity configuration for each rule.

For example :

"class-name": true

can now be set like this, to manage severity level :

"class-name": {
  "options": true,
  "severity": "error"
}

I hope there is something to manage this case in json schemas, or it will be a very ugly schema with a lot of duplicate code...

from schemastore.

timbru31 avatar timbru31 commented on April 28, 2024

The ban rule is also invalid since it's no longer an array of banned functions/methods since v5.4.0.
See palantir/tslint#2547

from schemastore.

tkrotoff avatar tkrotoff commented on April 28, 2024

Other TSLint rules having the same issue (Incorrect type. Expected "array"):

"interface-name": false
"trailing-comma": false
"comment-format": false
"max-classes-per-file": false
"no-console": false
"member-ordering": false

from schemastore.

tkrotoff avatar tkrotoff commented on April 28, 2024

@Martin-Wegner this can be closed now, see #339

from schemastore.

Martin-Luft avatar Martin-Luft commented on April 28, 2024

@tkrotoff thank you! But unfortunately there are a lot of new TSLint rules which produces a lot of warnings. For example:

"member-ordering": [true, "fields-first"] -> Incorrect type. Expected "object"

"no-magic-numbers": true -> Incorrect type. Expected "array"

"no-void-expression": [true, "ignore-arrow-function-shorthand"] -> Incorrect type. Expected "boolean"

"ordered-imports": [true, { "import-sources-order": "case-insensitive", "named-imports-order": "case-insensitive" }] -> Incorrect type. Expected "boolean"

from schemastore.

tkrotoff avatar tkrotoff commented on April 28, 2024

@Martin-Wegner Well you can send a PR like I did

from schemastore.

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.