Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

build: fix the lint rules #187

Merged
merged 1 commit into from
Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 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 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'])