2.0.21 • Published 10 months ago
@meojs/cfgs v2.0.21
Introduction
npm i -D @meojs/cfgsTSConfig
{
"extends": "@meojs/cfgs/ts/general.json",
"include": ["src"],
}@meojs/cfgs/ts/base.json- Configuration with rules only@meojs/cfgs/ts/general.json- Common configuration for ES modules@meojs/cfgs/ts/cocos.json- Configuration for Cocos Creator projects@meojs/cfgs/ts/node.json- Configuration for NodeJS projects
ESLint Config
import { eslint } from "@xenon.js/configs";
export default eslint.config({
// Whether to add `.gitignore` ignore, by default uses `cwd()` to find the `.gitignore` file path
gitignore?: boolean | string,
// Ignore all `*.config` configuration files, such as `eslint.config.js`, default is `true`
ignoreConfigFiles?: boolean,
// JSDoc inspection level, default is `loose`
jsdoc?: "none" | "loose" | "strict",
// Include NodeJS related rules, default is `strict`
nodejs?: "none" | "loose" | "strict",
// Include Web related rules, default is `true`
web?: boolean,
// Additional allowed JSDoc tags
jsdocTags?: string[],
// Whether to be compatible with `ctix`, default is `false`
ctix?: boolean,
// Whether to be compatible with reactive libraries, default is `true`
reactive?: boolean,
});Prettier Config
import { prettier } from "@xenon.js/configs";
export default prettier.config;Editor Config
Please manually copy the files from the editorconfig directory.
Repo Template
Please manually copy the files from the repo directory.
Contributing
- Run
npm run buildto build the project. - Run
npm publishto push a new version.
License
2.0.21
10 months ago
2.0.20
10 months ago
2.0.17
10 months ago
2.0.16
10 months ago
2.0.15
10 months ago
2.0.14
10 months ago
2.0.13
11 months ago
2.0.12
12 months ago
2.0.11
12 months ago
2.0.10
12 months ago
2.0.9
1 year ago
2.0.8
1 year ago
2.0.7
1 year ago
2.0.6
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.1
1 year ago