mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Lint strapi-generate-model
This commit is contained in:
parent
2c9aeb61a5
commit
0bfbdf8e72
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user