@mklimov1/cocos-config
v0.0.4
Published
Setup ESLint + Prettier for Cocos Creator 3.x TypeScript projects
Downloads
220
Maintainers
Readme
@mklimov1/cocos-config
Sets up ESLint + Prettier for Cocos Creator 3.x + TypeScript projects.
What it does
- Copies
.prettierrc,.prettierignore,eslint.config.jsto the project root - Merges
compilerOptionsinto the existingtsconfig.json - Adds scripts and devDependencies to
package.json
Usage
Run in the root of your Cocos Creator project:
npx @mklimov1/cocos-configThen install dependencies:
npm installScripts
npm run lint # check assets/**/*.ts
npm run lint:fix # autofix
npm run format # prettier