Skip to content

Commit

Permalink
update dependencies (#213)
Browse files Browse the repository at this point in the history
Signed-off-by: Kangrui Johann Ye <[email protected]>
  • Loading branch information
strawberry-choco authored Jan 5, 2024
1 parent 615cfd8 commit 2e05569
Show file tree
Hide file tree
Showing 49 changed files with 389 additions and 913 deletions.
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/eslint-plugin",
"version": "0.22.0",
"version": "0.23.0",
"private": true,
"volta": {
"node": "20.10.0",
Expand Down Expand Up @@ -28,27 +28,28 @@
"author": "Cloudflight GmbH",
"license": "Apache-2.0",
"devDependencies": {
"@angular-eslint/eslint-plugin": "16.3.1",
"@angular-eslint/eslint-plugin-template": "16.3.1",
"@angular-eslint/template-parser": "16.3.1",
"@rushstack/eslint-patch": "1.6.0",
"@types/eslint": "8.44.8",
"@angular-eslint/eslint-plugin": "17.1.1",
"@angular-eslint/eslint-plugin-template": "17.1.1",
"@angular-eslint/template-parser": "17.1.1",
"@rushstack/eslint-patch": "1.6.1",
"@types/eslint": "8.56.1",
"@types/estree": "1.0.5",
"@types/jest": "29.5.11",
"@types/node": "20.10.4",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@types/node": "20.10.6",
"@typescript-eslint/eslint-plugin": "6.17.0",
"@typescript-eslint/parser": "6.17.0",
"@typescript-eslint/utils": "6.17.0",
"@vue/eslint-config-typescript": "12.0.0",
"eslint": "8.55.0",
"eslint-plugin-import": "2.29.0",
"eslint": "8.56.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-json-es": "1.5.7",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-no-unsanitized": "4.0.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-rxjs": "5.0.3",
"eslint-plugin-security": "1.7.1",
"eslint-plugin-security": "2.1.0",
"eslint-plugin-vue": "9.19.2",
"husky": "8.0.3",
"jest": "29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can find the directory of all rules including their reasoning [here](src/con
The following dependencies are required:

```
"@cloudflight/eslint-plugin-typescript": ">=0.22.0",
"@cloudflight/eslint-plugin-typescript": ">=0.23.0",
"@rushstack/eslint-patch": "1.2.0",
"eslint": ">=8.0.0 <9.0.0"
```
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-plugin-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/eslint-plugin-angular",
"version": "0.22.0",
"version": "0.23.0",
"description": "Cloudflight eslint-plugin & eslint-config for angular",
"volta": {
"extends": "../../package.json"
Expand All @@ -26,9 +26,9 @@
"build-package": "tsc"
},
"dependencies": {
"@angular-eslint/eslint-plugin": "^16.3.1",
"@angular-eslint/eslint-plugin-template": "^16.3.1",
"@angular-eslint/template-parser": "^16.3.1"
"@angular-eslint/eslint-plugin": "^17.1.1",
"@angular-eslint/eslint-plugin-template": "^17.1.1",
"@angular-eslint/template-parser": "^17.1.1"
},
"peerDependencies": {
"@cloudflight/eslint-plugin-typescript": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-angular/src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {FormatConfig, RecommendedConfig} from './recommended/recommended.config'
import {FormattingHtmlConfig, RecommendedHtmlConfig} from './recommended-html/recommended-html.config';
import {RecommendedTypescriptConfig} from './recommended-typescript/recommended-typescript.config';

export const configs: Record<string, TSESLint.Linter.Config> = {
export const configs: Record<string, TSESLint.Linter.ConfigType> = {
'recommended-typescript': RecommendedTypescriptConfig,
'recommended-html': RecommendedHtmlConfig,
'html-formatting': FormattingHtmlConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {TSESLint} from '@typescript-eslint/utils';
import {angularTemplateEslintRules} from './rules/angular-eslint-template';
import {formatAngularTemplateEslintRules} from './rules/format';

export const RecommendedHtmlConfig: TSESLint.Linter.Config = {
export const RecommendedHtmlConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/angular', '@angular-eslint/template'],
parser: '@angular-eslint/template-parser',
extends: ['plugin:@angular-eslint/template/accessibility', 'plugin:@angular-eslint/template/recommended'],
Expand All @@ -12,7 +12,7 @@ export const RecommendedHtmlConfig: TSESLint.Linter.Config = {
},
};

export const FormattingHtmlConfig: TSESLint.Linter.Config = {
export const FormattingHtmlConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/angular', '@angular-eslint/template'],
parser: '@angular-eslint/template-parser',
extends: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {angularEslintRules} from './rules/angular-eslint';
import {eslintRules} from './rules/eslint';
import {typescriptEslintRules} from './rules/typescript-eslint';

export const RecommendedTypescriptConfig: TSESLint.Linter.Config = {
export const RecommendedTypescriptConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/angular', '@cloudflight/typescript', '@angular-eslint'],
parser: '@typescript-eslint/parser',
extends: ['plugin:@cloudflight/typescript/recommended'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {TSESLint} from '@typescript-eslint/utils';

export const RecommendedConfig: TSESLint.Linter.Config = {
export const RecommendedConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/angular'],
overrides: [
{
Expand All @@ -14,7 +14,7 @@ export const RecommendedConfig: TSESLint.Linter.Config = {
],
};

export const FormatConfig: TSESLint.Linter.Config = {
export const FormatConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/angular'],
overrides: [
{
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-plugin-angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"target": "ES2015",
"useDefineForClassFields": true,

"module": "CommonJS",
"module": "NodeNext",
"moduleResolution": "NodeNext",

"declaration": true,
"outDir": "./dist/",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can find the directory of all rules including their reasoning [here](src/con
The following dependencies are required:

```
"@cloudflight/eslint-plugin-typescript": ">=0.22.0",
"@cloudflight/eslint-plugin-typescript": ">=0.23.0",
"@rushstack/eslint-patch": "1.2.0",
"eslint": ">=8.0.0 <9.0.0"
```
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/eslint-plugin-node",
"version": "0.22.0",
"version": "0.23.0",
"description": "Cloudflight eslint-plugin & eslint-config for node",
"volta": {
"extends": "../../package.json"
Expand Down Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-security": "^1.7.1"
"eslint-plugin-security": "^2.1.0"
},
"peerDependencies": {
"@cloudflight/eslint-plugin-typescript": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin-node/src/configs/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {TSESLint} from '@typescript-eslint/utils';
import {type TSESLint} from '@typescript-eslint/utils';

import {RecommendedConfig} from './recommended/recommended.config';

export const configs: Record<string, TSESLint.Linter.Config> = {
export const configs: Record<string, TSESLint.Linter.ConfigType> = {
recommended: RecommendedConfig,
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {TSESLint} from '@typescript-eslint/utils';

export const RecommendedConfig: TSESLint.Linter.Config = {
export const RecommendedConfig: TSESLint.Linter.ConfigType = {
extends: [
'plugin:@cloudflight/typescript/recommended',
'plugin:node/recommended',
'plugin:no-unsanitized/DOM',
'plugin:security/recommended',
'plugin:security/recommended-legacy',
],
rules: {
// require all requires be top-level
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-plugin-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"target": "ES2015",
"useDefineForClassFields": true,

"module": "CommonJS",
"module": "NodeNext",
"moduleResolution": "NodeNext",

"declaration": true,
"outDir": "./dist/",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can find the directory of all rules including their reasoning [here](src/con
The following dependencies are required:

```
"@cloudflight/eslint-plugin-typescript": ">=0.22.0",
"@cloudflight/eslint-plugin-typescript": ">=0.23.0",
"@rushstack/eslint-patch": "1.2.0",
"eslint": ">=8.0.0 <9.0.0"
```
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/eslint-plugin-react",
"version": "0.22.0",
"version": "0.23.0",
"description": "Cloudflight eslint-plugin & eslint-config for React",
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react/src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {TSESLint} from '@typescript-eslint/utils';

import {RecommendedConfig} from './recommended/recommended.config';

export const configs: Record<string, TSESLint.Linter.Config> = {
export const configs: Record<string, TSESLint.Linter.ConfigType> = {
recommended: RecommendedConfig,
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {TSESLint} from '@typescript-eslint/utils';

export const RecommendedConfig: TSESLint.Linter.Config = {
export const RecommendedConfig: TSESLint.Linter.ConfigType = {
extends: [
'plugin:@cloudflight/typescript/recommended',
'plugin:react/recommended',
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-plugin-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"target": "ES2015",
"useDefineForClassFields": true,

"module": "CommonJS",
"module": "NodeNext",
"moduleResolution": "NodeNext",

"declaration": true,
"outDir": "./dist/",
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-plugin-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflight/eslint-plugin-typescript",
"version": "0.22.0",
"version": "0.23.0",
"description": "Cloudflight eslint-plugin & eslint-config for typescript",
"volta": {
"extends": "../../package.json"
Expand All @@ -27,9 +27,9 @@
"test-package": "jest"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint-plugin-import": "^2.29.0",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-json-es": "^1.5.7",
"eslint-plugin-rxjs": "^5.0.3",
"eslint-plugin-simple-import-sort": "^10.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-typescript/src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {RecommendedJsonConfig} from './recommended-json/recommended-json.config'
import {RecommendedPackageConfig} from './recommended-package/recommended-package.config';
import {FormattingTypescriptConfig, RecommendedTypescriptConfig} from './recommended-typescript/recommended-typescript.config';

export const configs: Record<string, TSESLint.Linter.Config> = {
export const configs: Record<string, TSESLint.Linter.ConfigType> = {
formatting: FormattingTypescriptConfig,
'recommended-typescript': RecommendedTypescriptConfig,
'recommended-json': RecommendedJsonConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {TSESLint} from '@typescript-eslint/utils';

import {customRules} from './rules/custom';

export const RecommendedJsonConfig: TSESLint.Linter.Config = {
export const RecommendedJsonConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/typescript'],
parser: 'eslint-plugin-json-es',
rules: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {TSESLint} from '@typescript-eslint/utils';

import {customRules} from './rules/custom';

export const RecommendedPackageConfig: TSESLint.Linter.Config = {
export const RecommendedPackageConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/typescript'],
parser: 'eslint-plugin-json-es',
rules: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {typescriptEslintRules} from './rules/typescript-eslint';
* complain about unknown rules when disabling some of them
*/

export const RecommendedTypescriptConfig: TSESLint.Linter.Config = {
export const RecommendedTypescriptConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/typescript', '@typescript-eslint', 'rxjs', 'import', 'simple-import-sort'],
parser: '@typescript-eslint/parser',
extends: [
Expand All @@ -29,7 +29,7 @@ export const RecommendedTypescriptConfig: TSESLint.Linter.Config = {
},
};

export const FormattingTypescriptConfig: TSESLint.Linter.Config = {
export const FormattingTypescriptConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/typescript', '@typescript-eslint', 'rxjs', 'import', 'simple-import-sort'],
parser: '@typescript-eslint/parser',
extends: [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {TSESLint} from '@typescript-eslint/utils';

export const RecommendedConfig: TSESLint.Linter.Config = {
export const RecommendedConfig: TSESLint.Linter.ConfigType = {
plugins: ['@cloudflight/typescript'],
overrides: [
{
Expand Down
6 changes: 5 additions & 1 deletion packages/eslint-plugin-typescript/src/rules/no-moment-js.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import {createRule} from '../util/create-rule';

export const NoMomentJsRuleName = 'no-moment-js';
/**
* Comment needed to prevent type declaration generation, which is broken.
* @internal
*/
export const NoMomentJsRule = createRule<[], 'noMomentJs'>({
name: NoMomentJsRuleName,
meta: {
type: 'problem',
fixable: 'code',
docs: {
description: 'Enforces that all packages have absolute versions.',
recommended: 'error',
recommended: 'strict',
},
schema: [],
messages: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,18 @@ const disallowedEvents = [
];

export const NoOnEventAssignName = 'no-on-event-assign';
/**
* Comment needed to prevent type declaration generation, which is broken.
* @internal
*/
export const NoOnEventAssign = createRule<[], 'noAssign'>({
name: NoOnEventAssignName,
meta: {
type: 'problem',
fixable: 'code',
docs: {
description: 'Enforces that all packages have absolute versions.',
recommended: 'error',
recommended: 'strict',
},
schema: [],
messages: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ import {findPropertyPath, getPropertyName, reportWrongPropertyValue} from '../..
const semVerRegex = /\d+\.(\d+|x)\.(\d+|x)/;

export const PackageForceAbsoluteVersionDependenciesRuleName = 'package-force-absolute-version-dependencies';
/**
* Comment needed to prevent type declaration generation, which is broken.
* @internal
*/
export const PackageForceAbsoluteVersionDependenciesRule = createPackageRule<[], string>({
name: PackageForceAbsoluteVersionDependenciesRuleName,
meta: {
type: 'problem',
fixable: 'code',
docs: {
description: 'Enforces that all packages have absolute versions.',
recommended: 'error',
recommended: 'strict',
},
schema: [],
messages: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ const privatePropertyAssertion: JsonPropertyAssertion = {
};

export const PackageForcePrivateRuleName = 'package-force-private';
/**
* Comment needed to prevent type declaration generation, which is broken.
* @internal
*/
export const PackageForcePrivateRule = createPackageRule<RuleOptions[], string>({
name: PackageForcePrivateRuleName,
meta: {
type: 'problem',
fixable: 'code',
docs: {
description: 'Enforces that all packages are private, in other words non-publishable.',
recommended: 'error',
recommended: 'strict',
},
schema: [
{
Expand Down
Loading

0 comments on commit 2e05569

Please sign in to comment.