eslint-config-hive
v0.7.0
Published
Simple ESLint configuration for Hive Solutions
Readme
ESLint Config Hive
Simple ESLint configuration for Hive Solutions.
Requirements
- ESLint 9.x
- Node.js 18.x or higher
Installation
npm install --save-dev eslint eslint-config-hiveUsage
ESLint 9 uses the flat config format. Create an eslint.config.js file in your project root:
Basic Configuration
import hive from "eslint-config-hive";
export default [
...hive
];Vue.js Configuration
import hive from "eslint-config-hive/vue";
export default [
...hive
];With Prettier
import hive from "eslint-config-hive/prettier";
export default [
...hive
];Custom Rules
You can extend the configuration with your own rules:
import hive from "eslint-config-hive";
export default [
...hive,
{
rules: {
"no-console": "warn"
}
}
];Migration from ESLint 8
If you're upgrading from the previous version (v0.x) that used ESLint 8:
- Update your ESLint to version 9.x
- Rename
.eslintrc.js(or similar) toeslint.config.js - Update the config format as shown above
- Replace
extends: "hive"with the spread syntax...hive
License
ESLint Config Hive is currently licensed under the Apache License, Version 2.0.
