@gewis/eslint-config-vue
| Install | |
|---|---|
npm install @gewis/eslint-config-vue |
|
| Latest Version: | 2.4.0 |
| Vue: | 3 |
| License: | AGPL-3.0-or-later |
| Last Updated: | Jul 13, 2026 |
| Links: | GitHub · npm |
GEWIS Shared Configs
This repository contains shared configurations for use across all GEWIS projects. It aims to enforce consistent coding standards and code quality.
- ESLint configuration for JavaScript, TypeScript, React and Vue
- Prettier configuration including ESLint ignores
[!NOTE]
The shared configurations for ESLint are not compatible with ESLintv8.x
ESLint
In your project's root directory, create or update the eslint.config.{js,mjs,cjs,ts,mts,cts} file to extend this configuration.
You can pick a combination of various configuration files:
index.mjseslint.vue.mjseslint.react.mjs
Then, follow one of the specific README's to configure your ESLint instance. It is possible to (partially) override settings of the shared configurations in your config file. It is also possible to add your own ignored file to the configurations
[!NOTE]
All files in the.gitignorefile(s) are ignored by default
Prettier
In your project's root directory, create or update the .prettierrc.mjs file to extend this configuration.
Follow the specific README's to configure your Prettier and ESLint instance.
Just like with ESLint, it is possible to (partially) override settings. of the shared configuration.
Scripts
Make sure to define the lint and format script in your package.json.
{
"scripts": {
"lint": "eslint .",
"lint-fix": "eslint . --fix",
"format": "prettier --ignore-path .gitignore --check .",
"format-fix": "prettier --ignore-path .gitignore --write ."
}
}
Contributing
Contributions are welcome! Please open an issue or submit a pull request if you'd like to suggest changes or improvements.
Updating the Configuration
To update the configuration:
- Make changes to or add new ESLint configurations in this repository.
- Commit your changes and push to GitHub.
- Projects using this configuration will automatically pull the latest version when they run
yarn install.
License
This project is licensed under the GNU General Public License (GPL). See the LICENSE file for details.
Version History
| Version | Released | License |
|---|---|---|
| 2.4.0 | AGPL-3.0-or-later | |
| 2.3.0 | AGPL-3.0-or-later | |
| 2.2.3 | AGPL-3.0-or-later | |
| 2.2.2 | AGPL-3.0-or-later | |
| 2.2.1 | AGPL-3.0-or-later | |
| 2.2.0 | AGPL-3.0-or-later |