Skip to content

Commit

Permalink
Merge branch 'main' into async-rule-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajsite authored Sep 26, 2024
2 parents 003b132 + c2cd58d commit ff91505
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 15 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions packages/eslint-config-angular/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@ni/eslint-config-angular",
"entries": [
{
"date": "Thu, 26 Sep 2024 17:15:21 GMT",
"version": "8.1.0",
"tag": "@ni/eslint-config-angular_v8.1.0",
"comments": {
"minor": [
{
"author": "beachball",
"package": "@ni/eslint-config-angular",
"comment": "Bump @ni/eslint-config-typescript to v4.3.0",
"commit": "not available"
}
]
}
},
{
"date": "Thu, 08 Aug 2024 22:33:17 GMT",
"version": "8.0.1",
Expand Down
10 changes: 9 additions & 1 deletion packages/eslint-config-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @ni/eslint-config-angular

This log was last generated on Thu, 08 Aug 2024 22:33:17 GMT and should not be manually modified.
This log was last generated on Thu, 26 Sep 2024 17:15:21 GMT and should not be manually modified.

<!-- Start content -->

## 8.1.0

Thu, 26 Sep 2024 17:15:21 GMT

### Minor changes

- Bump @ni/eslint-config-typescript to v4.3.0

## 8.0.1

Thu, 08 Aug 2024 22:33:17 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ni/eslint-config-angular",
"version": "8.0.1",
"version": "8.1.0",
"description": "NI's Angular ESLint Shareable Config",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -37,6 +37,6 @@
"@angular-eslint/eslint-plugin-template": "^17.5.2",
"@angular-eslint/schematics": "^17.5.2",
"@angular-eslint/template-parser": "^17.5.2",
"@ni/eslint-config-typescript": "^4.2.2"
"@ni/eslint-config-typescript": "^4.3.0"
}
}
15 changes: 15 additions & 0 deletions packages/eslint-config-playwright/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@ni/eslint-config-playwright",
"entries": [
{
"date": "Thu, 26 Sep 2024 17:15:21 GMT",
"version": "1.1.0",
"tag": "@ni/eslint-config-playwright_v1.1.0",
"comments": {
"minor": [
{
"author": "beachball",
"package": "@ni/eslint-config-playwright",
"comment": "Bump @ni/eslint-config-typescript to v4.3.0",
"commit": "not available"
}
]
}
},
{
"date": "Fri, 10 May 2024 22:42:13 GMT",
"version": "1.0.3",
Expand Down
10 changes: 9 additions & 1 deletion packages/eslint-config-playwright/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @ni/eslint-config-playwright

This log was last generated on Fri, 10 May 2024 22:42:13 GMT and should not be manually modified.
This log was last generated on Thu, 26 Sep 2024 17:15:21 GMT and should not be manually modified.

<!-- Start content -->

## 1.1.0

Thu, 26 Sep 2024 17:15:21 GMT

### Minor changes

- Bump @ni/eslint-config-typescript to v4.3.0

## 1.0.3

Fri, 10 May 2024 22:42:13 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ni/eslint-config-playwright",
"version": "1.0.3",
"version": "1.1.0",
"description": "NI's Playwright ESLint Shareable Config",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"!/.*.js"
],
"peerDependencies": {
"@ni/eslint-config-typescript": "^4.2.2",
"@ni/eslint-config-typescript": "^4.3.0",
"eslint-plugin-playwright": "^0.12.0"
}
}
15 changes: 15 additions & 0 deletions packages/eslint-config-typescript/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@ni/eslint-config-typescript",
"entries": [
{
"date": "Thu, 26 Sep 2024 17:15:21 GMT",
"version": "4.3.0",
"tag": "@ni/eslint-config-typescript_v4.3.0",
"comments": {
"minor": [
{
"author": "[email protected]",
"package": "@ni/eslint-config-typescript",
"commit": "bd1f97ecbc162826266d4f0bef9ea336e31deb8c",
"comment": "Disable `@typescript-eslint/explicit-member-accessibility` for constructors"
}
]
}
},
{
"date": "Wed, 10 Apr 2024 17:56:39 GMT",
"version": "4.2.2",
Expand Down
10 changes: 9 additions & 1 deletion packages/eslint-config-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @ni/eslint-config-typescript

This log was last generated on Wed, 06 Mar 2024 19:12:39 GMT and should not be manually modified.
This log was last generated on Thu, 26 Sep 2024 17:15:21 GMT and should not be manually modified.

<!-- Start content -->

## 4.3.0

Thu, 26 Sep 2024 17:15:21 GMT

### Minor changes

- Disable `@typescript-eslint/explicit-member-accessibility` for constructors ([email protected])

## 4.2.2

Wed, 06 Mar 2024 19:12:39 GMT
Expand Down
7 changes: 5 additions & 2 deletions packages/eslint-config-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ module.exports = {
/*
Requiring an accessibility modifier helps when creating classes to ensure the
accessibility of a class member is intentionally decided and not relying on
the default of public accessibility.
the default of public accessibility. Constructors are omitted because they are
almost always public.
*/
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/explicit-member-accessibility': ['error',
{ accessibility: 'explicit', overrides: { constructors: 'off' } }
],

/*
All interface members should be terminated with a semicolon including single line
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ni/eslint-config-typescript",
"version": "4.2.2",
"version": "4.3.0",
"description": "NI's TypeScript ESLint Shareable Config",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions tests/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
export class NI {
private _awesomeLevel = 1;

constructor() {
this._awesomeLevel = 11;
}

public get awesome(): boolean {
return this._awesomeLevel > 0;
}
Expand Down

0 comments on commit ff91505

Please sign in to comment.