@bluera/eslint-plugin-vue-threejs
v1.1.1
Published
ESLint rules for @bluera/vue-threejs.
Readme
@bluera/eslint-plugin-vue-threejs
An ESLint plugin which provides lint rules for @bluera/vue-threejs.
Installation
npm install @bluera/eslint-plugin-vue-threejs --save-devConfiguration
Use the recommended config to get reasonable defaults:
"extends": [
"plugin:@bluera/vue-threejs/recommended"
]If you do not use a config you will need to specify individual rules and add extra configuration.
Add "@bluera/vue-three" to the plugins section.
"plugins": [
"@bluera/vue-three"
]Enable the rules that you would like to use.
"rules": {
"@bluera/vue-threejs/no-clone-in-frame-loop": "error"
}Rules
✅ Enabled in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
| Rule | Description | ✅ | 🔧 | 💡 | | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | --- | --- | --- | | no-clone-in-loop | Disallow cloning vectors in the frame loop which can cause performance problems. | ✅ | | | | no-new-in-loop | Disallow instantiating new objects in the frame loop which can cause performance problems. | ✅ | | |
Shareable configs
Recommended
This plugin exports a recommended configuration that enforces rules appropriate for everyone using Vue Three Fiber.
"extends": [
"plugin:@bluera/vue-threejs/recommended"
]All
This plugin also exports an all configuration that includes every available rule.
"extends": [
"plugin:@bluera/vue-threejs/all"
]