javascript-node

作者: contentstack

用于本仓库中的 ESLint、格式化以及 JavaScript/Node 规约。

npx skills add https://github.com/contentstack/datasync-boilerplate --skill javascript-node

JavaScript / Node – Contentstack DataSync Boilerplate

When to use

  • Editing .eslintrc.js or fixing lint findings
  • Keeping new files consistent with existing CommonJS style

Instructions

  • Lint: Run npx eslint . from the repo root (no lint npm script). Config is .eslintrc.js: eslint:recommended plus indent, linebreak, quotes, and semi rules—match ESLint output and the style of files you edit.
  • Modules: Use CommonJS (require / module.exports) to match index.js, config/, and dependencies.
  • Environment: Target Node; match ecmaVersion / parser options to .eslintrc.js when changing tooling.