Lint strapi-generate-model

This commit is contained in:
soupette 2018-05-04 17:44:42 +02:00
parent 2c9aeb61a5
commit 0bfbdf8e72
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ const pluralize = require('pluralize');
// Fetch stub attribute template on initial load.
const attributeTemplate = fs.readFileSync(path.resolve(__dirname, '..', 'templates', 'attribute.template'), 'utf8');
/* eslint-disable prefer-template */
/**
* This `before` function is run before generating targets.

View File

@ -27,7 +27,7 @@ const watcher = (label, pckgName, type = 'front') => {
const packagesPath = path.resolve(process.env.PWD, 'packages');
shell.ls('* -d', packagesPath)
// TODO temporary just for eslint
.filter(package => package === 'strapi-generate-controller')
.filter(package => package === 'strapi-generate-model')
// .filter(package => package !== 'README.md')
.forEach(package => {
watcher(`Testing ${package}`, package);