UNPKG

@somosyampi/eslint-config

Version:

Pacote de padronização de código padrão para os projetos Yampi usando Node.js

85 lines (80 loc) 2.28 kB
module.exports = { extends: [ './js.js', 'plugin:vue/recommended', ], plugins: [ 'vue', ], rules: { 'vue/singleline-html-element-content-newline': 0, 'vue/html-indent': [ 'error', 4, { attribute: 1, baseIndent: 1, closeBracket: 0, alignAttributesVertically: true, ignores: [], }, ], 'vue/padding-lines-in-component-definition': [ 'error', { betweenOptions: 'always', withinOption: { components: 'never', mixin: 'never', props: { betweenItems: 'always', withinEach: 'ignore', }, data: { betweenItems: 'always', withinEach: 'ignore', }, computed: { betweenItems: 'always', withinEach: 'ignore', }, watch: { betweenItems: 'always', withinEach: 'ignore', }, methods: { betweenItems: 'always', withinEach: 'ignore', }, }, groupSingleLineProperties: false, }, ], 'vue/component-name-in-template-casing': [ 'error', 'PascalCase', { registeredComponentsOnly: false, ignores: [], }, ], 'import/order': [ 'error', { groups: [ 'builtin', 'external', 'internal', ], pathGroups: [ { pattern: '~/**/*.vue', group: 'internal', position: 'after', }, ], 'newlines-between': 'never', }, ], }, };