1 Star 0 Fork 0

karashokxu/camunda-modeler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.mjs 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
Nico Rehwaldt 提交于 2024-10-18 10:37 . chore: move to flat eslint@9 config
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
}
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/karashokxu/camunda-modeler.git
git@gitee.com:karashokxu/camunda-modeler.git
karashokxu
camunda-modeler
camunda-modeler
develop

搜索帮助