@@ -35,38 +35,6 @@ const project = new awscdk.AwsCdkConstructLibrary({
3535 tabWidth : 4 ,
3636 trailingComma : "all" ,
3737 } ,
38- eslint : true ,
39- eslintOptions : {
40- env : {
41- es2021 : true ,
42- } ,
43- extends : [
44- "eslint:recommended" ,
45- "plugin:@typescript-eslint/recommended" ,
46- "plugin:prettier/recommended" ,
47- ] ,
48- parser : "@typescript-eslint/parser" ,
49- parserOptions : {
50- ecmaVersion : 2018 ,
51- sourceType : "module" ,
52- } ,
53- plugins : [ "@typescript-eslint" , "unused-imports" ] ,
54- rules : {
55- "unused-imports/no-unused-imports" : "error" ,
56- "no-case-declarations" : "off" ,
57- "no-bitwise" : "off" ,
58- "no-shadow" : "off" ,
59- "@typescript-eslint/no-explicit-any" : "off" ,
60- "@typescript-eslint/no-shadow" : "off" ,
61- "@typescript-eslint/member-ordering" : "off" ,
62- "@typescript-eslint/explicit-module-boundary-types" : "off" ,
63- "@typescript-eslint/no-unused-vars" : [
64- "error" ,
65- { argsIgnorePattern : "^_" } ,
66- ] ,
67- "prettier/prettier" : "error" ,
68- } ,
69- } ,
7038} ) ;
7139
7240// Projen doesn't handle monocdk properly; remove @aws-cdk manually
@@ -91,4 +59,17 @@ project.deps.addDependency(
9159 DependencyType . DEVENV
9260) ;
9361
62+ // Add some other eslint rules followed across this project
63+ project . eslint . addRules ( {
64+ "no-case-declarations" : "off" ,
65+ "no-bitwise" : "off" ,
66+ "no-shadow" : "off" ,
67+ "@typescript-eslint/no-explicit-any" : "off" ,
68+ "@typescript-eslint/no-shadow" : "off" ,
69+ "@typescript-eslint/member-ordering" : "off" ,
70+ "@typescript-eslint/explicit-module-boundary-types" : "off" ,
71+ "@typescript-eslint/no-unused-vars" : [ "error" , { argsIgnorePattern : "^_" } ] ,
72+ "prettier/prettier" : "error" ,
73+ } ) ;
74+
9475project . synth ( ) ;
0 commit comments