Nuxt.js: eslint ignore

Created on 29 Mar 2017  路  3Comments  路  Source: nuxt/nuxt.js

I require a pagination plugin js file ,when I run dev, I got the error from lint.

But I don't want to lint the external js library. So what should I do?

This question is available on Nuxt.js community (#c409)
help-wanted

Most helpful comment

you can make a .eslintignore file in project folder
and add code like this .. (this for my setting just for reference )

.eslintignore

# js vendor file with import/require
assets/vendor/**
# static vendor file . use with nuxt.config.js script
static/**
# dependencies
node_modules
# Nuxt build
.nuxt
# Nuxt generate
dist

and if you have use yarn run lint please modify to

package.json

"lint": "eslint --ext .js,.vue --ignore-path .eslintignore .",

All 3 comments

you can make a .eslintignore file in project folder
and add code like this .. (this for my setting just for reference )

.eslintignore

# js vendor file with import/require
assets/vendor/**
# static vendor file . use with nuxt.config.js script
static/**
# dependencies
node_modules
# Nuxt build
.nuxt
# Nuxt generate
dist

and if you have use yarn run lint please modify to

package.json

"lint": "eslint --ext .js,.vue --ignore-path .eslintignore .",

Any plans to roll this into a version? Would be useful, linter freaked out when I added a plugin and linted the Tapable library, found errors.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikekidder picture mikekidder  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

vadimsg picture vadimsg  路  3Comments

vadimsg picture vadimsg  路  3Comments

ghost picture ghost  路  3Comments