mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
Lint strapi-generate-controller
This commit is contained in:
parent
666673961a
commit
2c9aeb61a5
@ -6,7 +6,7 @@
|
||||
|
||||
// Public node modules.
|
||||
const _ = require('lodash');
|
||||
|
||||
/* eslint-disable prefer-template */
|
||||
/**
|
||||
* This `before` function is run before generating targets.
|
||||
* Validate, configure defaults, get extra dependencies, etc.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const { after, includes, indexOf, drop, dropRight, uniq, defaultsDeep, get, set, merge } = require('lodash');
|
||||
const { after, includes, indexOf, drop, dropRight, uniq, defaultsDeep, get, set, merge, isUndefined } = require('lodash');
|
||||
|
||||
/* eslint-disable prefer-template */
|
||||
module.exports = async function() {
|
||||
|
||||
@ -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-api')
|
||||
.filter(package => package === 'strapi-generate-controller')
|
||||
// .filter(package => package !== 'README.md')
|
||||
.forEach(package => {
|
||||
watcher(`Testing ${package}`, package);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user