UNPKG

@mega-apps/cli

Version:

Mom builder for all mega modules apps. The recommended basic operation dependency package is attached, and users can check and repair defects in actual applications.

33 lines (29 loc) 832 B
/** * Mom 内置的 stylelint 配置文件(代码自动生成) * 注意: * 1. 请不要在这里设置或者覆盖规则,这个文件是自动生成的,会被覆盖 * 2. 你可以将自己定义的规则存放到 `stylelint.rules.js` 文件中 * */ const extendFileName = "stylelint.rules.js"; const getExtendRules = () => { try { const pkg = path.join(__dirname, extendFileName); require.resolve(pkg); // eslint-disable-next-line global-require return require(`{pkg}`); } catch (e) {} return {}; }; module.exports = { extends: ["@nice-move/stylelint-config"], // add your custom config here // https://stylelint.io/user-guide/configuration rules: { "selector-no-qualifying-type": [ true, { ignore: ["attribute", "class", "id"] }, ], ...getExtendRules(), }, };