Comments (8)
It seems like this is still a problem? Any ideas on this?
from schemastore.
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.
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.
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.
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.
@Martin-Wegner this can be closed now, see #339
from schemastore.
@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.
@Martin-Wegner Well you can send a PR like I did
from schemastore.
Related Issues (20)
- Update clangd config file schema with new config options in clangd 18 HOT 2
- `tsconfig` schema: disallow additional properties? HOT 1
- Schema for GitHub Issue forms is incomplete
- Request .clang-tidy Schema
- Alacritty schema "color" category should be "colors" (plural) HOT 2
- CircleCI schema does not allow a "machine" key in a "job" - disagrees with CircleCI docs HOT 2
- JSON Schema Store - Service is down (503) HOT 2
- Delete "table" in schema "github-action.json"
- Need to update github-action.json
- Dependabot-2.0.json doesn't support groups applies-to option
- Complaining about cranelift (shouldn't do it)
- vscode tasks.json broken due to new change HOT 1
- Schema Store offline (503 service unavailable) HOT 5
- Update semgrep Schema HOT 6
- Merging amazon apigateway integration with openapi spec schema
- Kustomization json schema - missing `sortOptions`
- CircleCI jobs name validation
- nostr
- Enforce $schema directives in test files
- Match files "*.patch.yaml" & "*.patch.yml" to JSONPatch schema HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schemastore.