@kintone/eslint-plugin
v0.0.3
Published
An ESLint plugin for kintone.
Maintainers
Readme
@kintone/eslint-plugin
This plugin provide rules for kintone plugin development.
[!WARNING] Experimental: This package is still under early development.
Usage
npm i -D @kintone/eslint-plugin// eslint.config.mjs
import kintoneESLintPlugin from "@kintone/eslint-plugin";
export default [kintoneESLintPlugin.configs.recommended];By default, this plugin refers manifest.json of current directory.
You can update this behavior by manifestFilePath in shared settings.
// eslint.config.mjs
import kintoneESLintPlugin from "@kintone/eslint-plugin";
export default [
{
settings: {
"@kintone/eslint-plugin": { manifestFilePath: "path/to/manifest.json" },
},
},
kintoneESLintPlugin.configs.recommended,
];Rules
| Name | Description |
| ---------------------------------------------------------- | ------------------------------------------------------------------------ |
| only-allowed-js-api | Only allow the kintone JS APIs listed in permissions.js_api in manifest. |
