Skip to content

Commit

Permalink
Linter rules have moved
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr committed Dec 18, 2024
1 parent ba5a877 commit 22ff47a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/parse-command-line-arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// GENERATED FROM packages/aws-cdk/lib/config.ts.
// Do not edit by hand; all changes will be overwritten at build time from the config file.
// -------------------------------------------------------------------------------------------
/* eslint-disable @typescript-eslint/comma-dangle, comma-spacing, max-len, quotes, quote-props */
/* eslint-disable @stylistic/comma-dangle, comma-spacing, max-len, quotes, quote-props */
import { Argv } from 'yargs';
import * as helpers from './util/yargs-helpers';

Expand Down
13 changes: 6 additions & 7 deletions tools/@aws-cdk/yargs-gen/lib/yargs-gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { $E, Expression, ExternalModule, FreeFunction, IScope, Module, SelectiveModuleImport, Statement, ThingSymbol, Type, TypeScriptRenderer, code, expr } from '@cdklabs/typewriter';
import { EsLintRules } from '@cdklabs/typewriter/lib/eslint-rules';
import * as prettier from 'prettier';
import { CliConfig, CliOption, YargsOption } from './yargs-types';

Expand Down Expand Up @@ -47,12 +46,12 @@ export async function renderYargs(config: CliConfig, helpers: CliHelpers): Promi

const ts = new TypeScriptRenderer({
disabledEsLintRules: [
EsLintRules.COMMA_DANGLE,
EsLintRules.COMMA_SPACING,
EsLintRules.MAX_LEN,
EsLintRules.QUOTES,
EsLintRules.QUOTE_PROPS,
],
'@stylistic/comma-dangle',
'@stylistic/comma-spacing',
'@stylistic/max-len',
'@stylistic/quotes',
'@stylistic/quote-props',
] as any, // Force our string[] into EsLintRules[], it will work out at runtime
}).render(scope);

return prettier.format(ts, {
Expand Down
4 changes: 2 additions & 2 deletions tools/@aws-cdk/yargs-gen/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('render', () => {
// GENERATED FROM packages/aws-cdk/lib/config.ts.
// Do not edit by hand; all changes will be overwritten at build time from the config file.
// -------------------------------------------------------------------------------------------
/* eslint-disable @typescript-eslint/comma-dangle, comma-spacing, max-len, quotes, quote-props */
/* eslint-disable @stylistic/comma-dangle, comma-spacing, max-len, quotes, quote-props */
import { Argv } from 'yargs';
import * as helpers from './util/yargs-helpers';
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('render', () => {
// GENERATED FROM packages/aws-cdk/lib/config.ts.
// Do not edit by hand; all changes will be overwritten at build time from the config file.
// -------------------------------------------------------------------------------------------
/* eslint-disable @typescript-eslint/comma-dangle, comma-spacing, max-len, quotes, quote-props */
/* eslint-disable @stylistic/comma-dangle, comma-spacing, max-len, quotes, quote-props */
import { Argv } from 'yargs';
import * as helpers from './util/yargs-helpers';
Expand Down

0 comments on commit 22ff47a

Please sign in to comment.