eslint-config-vaadin
Advanced tools
Comparing version 1.0.0-alpha.10 to 1.0.0-alpha.11
{ | ||
"name": "eslint-config-vaadin", | ||
"version": "1.0.0-alpha.10", | ||
"version": "1.0.0-alpha.11", | ||
"description": "Vaadin base JS/TS ESLint config", | ||
@@ -5,0 +5,0 @@ "main": "javascript.js", |
@@ -33,3 +33,3 @@ # eslint-config-vaadin | ||
"vaadin/javascript", | ||
// ... any other configs | ||
// ... other project configs | ||
"vaadin/prettier" | ||
@@ -42,6 +42,4 @@ ] | ||
A config that contains the TypeScript linting rules. | ||
A config that extends `vaadin/javascript` with the TypeScript linting rules. | ||
This config is designed on top of the `vaadin/javascript` config so you don't have to enable the JavaScript config when using this one. | ||
This config requires `vaadin/prettier` which must be added after any other configs. | ||
@@ -54,3 +52,3 @@ | ||
"vaadin/typescript", | ||
// ... any other configs | ||
// ... other project configs | ||
"vaadin/prettier" | ||
@@ -63,10 +61,10 @@ ] | ||
A config that contains the TypeScript linting rules that require type information. | ||
A config that extends `vaadin/typescript` with the TypeScript linting rules that require type information. | ||
Please note that adding this config to your project can significantly affect linting performance since it requires TypeScript to build the whole project before ESLint can do its linting. | ||
This config requires `tsconfig.json` at the project root with the `include` section that includes all the files that are referenced in your project. If your `tsconfig.json` is located somewhere other than the project root, you can use the `parserOptions.project` property. | ||
This config can be used in addition to `vaadin/typescript` to make it more strict. | ||
This config requires `vaadin/prettier` which must be added after any other configs. | ||
Please note that adding this config to your project can significantly affect linting performance since it requires TypeScript to build the whole project before ESLint can do its linting. | ||
```js | ||
@@ -78,5 +76,4 @@ { | ||
"extends": [ | ||
"vaadin/typescript", | ||
"vaadin/typescript-requiring-type-checking", | ||
// ... any other configs | ||
// ... other project configs | ||
"vaadin/prettier" | ||
@@ -154,2 +151,14 @@ ] | ||
"vaadin/typescript", | ||
"vaadin/lit", | ||
"vaadin/testing", | ||
"vaadin/prettier" | ||
] | ||
} | ||
``` | ||
Or, you can use a more strict config that requires type information: | ||
```js | ||
{ | ||
"extends": [ | ||
"vaadin/typescript-requiring-type-checking", | ||
@@ -156,0 +165,0 @@ "vaadin/lit", |
@@ -5,3 +5,3 @@ "use strict"; | ||
extends: [ | ||
'./javascript', | ||
'./typescript', | ||
'./rules/typescript-requiring-type-checking/original', | ||
@@ -8,0 +8,0 @@ './rules/typescript-requiring-type-checking/extensions', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78347
169