Add polymer.json and move lint settings to it.

Change-Id: I84a9901695a3b9a7bb85b1bb275469cde86fd174
This commit is contained in:
Dmitrii Filippov
2019-11-15 12:58:26 +01:00
parent 53752f7638
commit 9d423e05af
3 changed files with 18 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ sh_test(
size = "large",
srcs = ["polylint_test.sh"],
data = [
"polymer.json",
":pg_code_without_test",
"//polygerrit-ui:polygerrit_components.bower_components.zip",
],

View File

@@ -25,4 +25,7 @@ fi
unzip -o polygerrit-ui/polygerrit_components.bower_components.zip -d polygerrit-ui/app
$polymer_bin lint --root polygerrit-ui/app --entrypoint polygerrit-ui/app/elements/gr-app.html --component-dir 'polygerrit-ui/app/bower_components' --verbose --rules polymer-2-hybrid --sources "polygerrit-ui/app/**/*"
#Can't use --root with polymer.json - see https://github.com/Polymer/tools/issues/2616
#Change current directory to the root folder
cd polygerrit-ui/app
$polymer_bin lint --component-dir 'bower_components' --verbose

View File

@@ -0,0 +1,13 @@
{
"entrypoint": "elements/gr-app.html",
"sources": [
"behaviors/**/*",
"elements/**/*",
"scripts/**/*",
"styles/**/*",
"types/**/*"
],
"lint": {
"rules": ["polymer-2-hybrid"]
}
}