Skip to content

Commit

Permalink
build: fix the lint rules (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Nov 20, 2018
1 parent b2e89a0 commit af715b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/google-privacy-dlp/samples/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
rules:
no-console: off
no-warning-comments: off
node/no-missing-require: off
10 changes: 4 additions & 6 deletions packages/google-privacy-dlp/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,18 @@
import synthtool.gcp as gcp
import subprocess

# Run the gapic generator
gapic = gcp.GAPICGenerator()

version = 'v2'
library = gapic.node_library(
'dlp', version, config_path='/google/privacy/dlp/artman_dlp_v2.yaml')
s.copy(library, excludes=['src/index.js', 'README.md', 'package.json'])

# Copy common templates
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library()
s.copy(templates)

'''
Node.js specific cleanup
'''
# Node.js specific cleanup
subprocess.run(['npm', 'install'])
subprocess.run(['npm', 'run', 'prettier'])
subprocess.run(['npm', 'run', 'lint'])
subprocess.run(['npm', 'run', 'fix'])

0 comments on commit af715b2

Please sign in to comment.