0.0.8 • Published 8 months ago
eslint-config-removify-monorepo v0.0.8
ESLint-Config-Removify
Installation
# npm
npm insatll -D eslint eslint-config-removify
# yarn
yarn add -D eslint eslint-config-removify
# pnpm
pnpm install -D eslint eslint-config-removify
Usage
In your eslintrc
file you can extend like this
module.exports = {
extends: ['removify'],
};
What's in here
eslint-config-prettier
: Turns off all rules that are unnecessary or might conflict with Prettier.eslint-plugin-prettier-vue
: Make prettier works better on Vue SFCeslint-plugin-vue
: Official ESLint plugin for Vue.js
The ESLint rules override
rules: {
// temporary disable as need huge refactor
'vue/multi-word-component-names': 'off',
'vue/order-in-components': 'off',
'vue/require-default-prop': 'off',
'vue/attributes-order': 'off',
'vue/no-v-html': 'off',
'vue/attribute-hyphenation': 'off',
'vue/no-template-shadow': 'off',
'vue/no-lone-template': 'off',
'vue/require-prop-types': 'off',
'vue/v-slot-style': 'off',
'vue/no-reserved-component-names': 'off',
'vue/this-in-template': 'off',
'vue/component-definition-name-casing': 'off',
'no-unsafe-optional-chaining': 'off',
'valid-typeof': 'off',
'prettier-vue/prettier': [
'error',
{
tabWidth: 4,
useTabs: true,
singleQuote: true,
trailingComma: 'all',
},
],
},