0.1.0 • Published 3 years ago
@novicell/eslint-config-vue v0.1.0
Novicell ESLint config for Vue 3 with TypeScript
This is an ESLint config for Vue 3 projects with TypeScript.
How to install
1.
```bash
npm i eslint @novicell/eslint-config-vue
```- Create a
.eslintrc.jsonin the root of the project - Add the following 👇
{ "extends": "@novicell/eslint-config-vue", "rules": { // Your project specific rules or overrides } } - Add lint scripts to
package.json"scripts": { "eslint": "eslint --ext .js,.vue,.ts --ignore-path .gitignore .", "eslint:fix": "eslint --ext .js,.vue,.ts --ignore-path .gitignore . --fix", } Make VS Code autofix issues on save (optional)
- Create a
.vscodefolder in root and addsettings.jsonto it. Remember to disable Prettier! - Add the following
{ "css.validate": false, "less.validate": false, "scss.validate": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": true, }, "prettier.enable": false }- Create a
Configure webpack to autofix eslint issues during build (optional)
extend (config, { isDev, isClient }) { if (isDev && isClient) { config.module.rules.push({ enforce: 'pre', test: /\.(js|vue|ts)$/, loader: 'eslint-loader', exclude: /(node_modules)/, options: { fix: true } }); } }
Contribution
Looking to contribute something? Here's how you can help. Please take a moment to review our contribution guidelines in order to make the contribution process easy and effective for everyone involved.
License
The Novicell CSS Utils is licensed under the MIT license. (http://opensource.org/licenses/MIT)
0.1.0
3 years ago