代码拉取完成,页面将自动刷新
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';
import camundaLicensedPlugin from 'eslint-plugin-camunda-licensed';
const files = {
client: [
'client/src/**/*.js',
'client/test/**/*.js',
'resources/plugins/*/client/**/*.js'
],
sources: [
'app/*.js',
'app/lib/**/*.js',
'client/src/**/*.js'
],
tests: [
'**/test/**/*.js',
'**/__tests__/**/*.js'
],
ignored: [
'app/preload',
'app/public',
'client/build',
'coverage',
'dist',
'docs',
'resources/plugins/*/dist',
'resources/plugins/test-script-error/broken.js',
'tmp'
]
};
export default [
{
ignores: files.ignored
},
// license header
...camundaLicensedPlugin.configs.mit.map((config) => {
return {
...config,
files: files.sources
};
}),
// build + app
...bpmnIoPlugin.configs.node.map((config) => {
return {
...config,
ignores: files.client
};
}),
// client
...bpmnIoPlugin.configs.browser.map((config) => {
return {
...config,
files: files.client
};
}),
...bpmnIoPlugin.configs.jsx.map((config) => {
return {
...config,
files: files.client
};
}),
{
languageOptions: {
globals: {
process: 'readonly'
}
},
settings: {
react: { version: '16.14.0' }
},
files: files.client
},
// test
...bpmnIoPlugin.configs.mocha.map((config) => {
return {
...config,
files: files.tests
};
}),
{
languageOptions: {
globals: {
require: 'readonly'
}
},
files: files.tests
}
];
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。