Skip to content
Commits on Source (8)
# @html-validate/eslint-config-monorepo changelog
### 5.4.2 (2022-03-25)
### Bug Fixes
- **@html-validate/eslint-config-jest:** dont check unsafe assignment to any in test-cases 7127551
- **@html-validate/eslint-config:** only apply typeinfo rules on src folder c9e0338
### 5.4.1 (2022-03-24)
### Bug Fixes
- **@html-validate/eslint-config-jest:** disable `@typescript-eslint/no-non-null-assertion` for test-cases e1df9d1
- **@html-validate/eslint-config-typescript-typeinfo:** disable `@typescript-eslint/no-unsafe-member-access` 73cdf3f
- **@html-validate/eslint-config-typescript-typeinfo:** enable `@typescript-eslint/consistent-type-definitions` 6b3ef26
- **@html-validate/eslint-config-typescript-typeinfo:** prefer to use inline `type` c356a9a
## 5.4.0 (2022-03-24)
### Features
......
{
"name": "@html-validate/eslint-config-monorepo",
"version": "5.4.0",
"version": "5.4.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@html-validate/eslint-config-monorepo",
"version": "5.4.0",
"version": "5.4.2",
"license": "MIT",
"workspaces": [
"integration-test",
......@@ -10403,7 +10403,7 @@
},
"packages/eslint-config": {
"name": "@html-validate/eslint-config",
"version": "5.4.0",
"version": "5.4.2",
"license": "MIT",
"dependencies": {
"@rushstack/eslint-patch": "1.1.1",
......@@ -10467,7 +10467,7 @@
},
"packages/eslint-config-jest": {
"name": "@html-validate/eslint-config-jest",
"version": "5.4.0",
"version": "5.4.2",
"license": "MIT",
"dependencies": {
"eslint-plugin-jest": "26.1.2"
......@@ -10515,7 +10515,7 @@
},
"packages/eslint-config-typescript-typeinfo": {
"name": "@html-validate/eslint-config-typescript-typeinfo",
"version": "5.4.0",
"version": "5.4.1",
"license": "MIT",
"engines": {
"node": ">= 12.22",
......
{
"name": "@html-validate/eslint-config-monorepo",
"version": "5.4.0",
"version": "5.4.2",
"private": true,
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
......
......@@ -28,5 +28,9 @@ module.exports = {
/* jest uses @jest-* tags for per-file configuration */
"tsdoc/syntax": "off",
/* lessen type-safety features in test-cases */
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
},
};
{
"name": "@html-validate/eslint-config-jest",
"version": "5.4.0",
"version": "5.4.2",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint",
......
......@@ -2,8 +2,18 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended-requiring-type-checking"],
rules: {
/* no-explicit-any is enabled and for now this rule is a bit to tedious to
* actually help */
"@typescript-eslint/no-unsafe-member-access": "off",
/* prefer interface over type = { .. } */
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
/* enforce usage of "type" with export/import */
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-exports": [
"error",
{ fixMixedExportsWithInlineTypeSpecifier: true },
],
"@typescript-eslint/consistent-type-imports": "error",
},
};
{
"name": "@html-validate/eslint-config-typescript-typeinfo",
"version": "5.4.0",
"version": "5.4.1",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint",
......
{
"name": "@html-validate/eslint-config",
"version": "5.4.0",
"version": "5.4.2",
"description": "Eslint sharable config used by the various HTML-validate packages",
"keywords": [
"eslint"
......
......@@ -174,11 +174,15 @@ module.exports = {
overrides: [
{
files: \\"*.ts\\",
extends: [\\"@html-validate/typescript\\"],
},
{
files: \\"src/**/*.ts\\",
parserOptions: {
tsconfigRootDir: path.join(__dirname, \\"src\\"),
project: [\\"./tsconfig.json\\"],
},
extends: [\\"@html-validate/typescript\\", \\"@html-validate/typescript-typeinfo\\"],
extends: [\\"@html-validate/typescript-typeinfo\\"],
},
],
};
......@@ -195,11 +199,15 @@ module.exports = {
overrides: [
{
files: \\"*.ts\\",
extends: [\\"@html-validate/typescript\\"],
},
{
files: \\"src/**/*.ts\\",
parserOptions: {
tsconfigRootDir: __dirname,
project: [\\"./tsconfig.json\\"],
},
extends: [\\"@html-validate/typescript\\", \\"@html-validate/typescript-typeinfo\\"],
extends: [\\"@html-validate/typescript-typeinfo\\"],
},
],
};
......
......@@ -13,15 +13,17 @@ module.exports = {
{% if typescript %}
{
files: "*.ts",
extends: ["@html-validate/typescript"],
},
{% endif %}
{% if typeinfo %}
{
files: "src/**/*.ts",
parserOptions: {
tsconfigRootDir: {% if typeinfo.rootDir == "." %}__dirname{% else %}path.join(__dirname, "{{ typeinfo.rootDir }}"){% endif %},
project: ["{{ typeinfo.tsconfig }}"],
},
extends: ["@html-validate/typescript", "@html-validate/typescript-typeinfo"],
{% else %}
extends: ["@html-validate/typescript"],
{% endif %}
extends: ["@html-validate/typescript-typeinfo"],
},
{% endif %}
{% if angularjs %}
......