insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linting problem on fresh web-module

mccalluc opened this issue · comments

This issue is a:

  • Bug report (?)
  • Question / support request

I've just created a fresh web-module, and there is a linting problem in the stub test:

$ eslint tests

/Users/chuck/github/hms-dbmi/validate-oas-response/tests/index-test.js
  1:1  error  Parsing error: The keyword 'import' is reserved

✖ 1 problem (1 error, 0 warnings)

(Actually noticed this first in Atom editor, where where I have the same error.)

I do see #157, so maybe linting problems are out of scope? But nwb does create an .eslintrc, so it seems it does matter? Is this problem in the scope of nwb, or should I fix it myself in my own repo?

REPRO REPOS

https://github.com/mccalluc/validate-oas-response

$ nwb new web-module validate-oas-response
Creating a web-module project...
? Do you want to create an ES modules build for use by compatible bundlers? Yes
? Do you want to create a UMD build for global usage via <script> tag? No
  create .gitignore
  create .travis.yml
  create CONTRIBUTING.md
  create README.md
  create nwb.config.js
  create package.json
  create src/index.js
  create tests/.eslintrc
  create tests/index-test.js
✔ Initing Git repo
$ cd validate-oas-response
$ git remote add origin https://github.com/mccalluc/validate-oas-response.git
$ git push -u origin master

TROUBLESHOOTING

$ node -v
v9.8.0
$ npm -v
6.9.0
$ nwb -v
v0.23.0
$ npm ls --depth=0
validate-oas-response@1.0.0 /Users/chuck/github/hms-dbmi/validate-oas-response
└── (empty)