Combine eslint overrides for scripts
authorRandall Leeds <randall@apache.org>
Fri, 8 Jun 2018 21:55:50 +0000 (14:55 -0700)
committerRandall Leeds <randall@apache.org>
Fri, 8 Jun 2018 21:55:50 +0000 (14:55 -0700)
.eslintrc.yml

index 2b9dca6..4feb3c2 100644 (file)
@@ -47,13 +47,10 @@ settings:
 overrides:
   - files:
       - 'babel.config.js'
-    parserOptions:
-      sourceType: script
-    env:
-      node: true
-  - files:
       - 'scripts/*.js'
     parser: espree
+    parserOptions:
+      sourceType: script
     plugins:
       - node
     rules: