1
0
mirror of synced 2024-11-29 00:26:12 +03:00
vue-formulario/.eslintrc.js

46 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-01-31 01:21:21 +03:00
module.exports = {
2020-10-09 22:58:28 +03:00
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
2020-10-09 22:58:28 +03:00
sourceType: 'module',
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: [
'standard',
'@vue/standard',
'@vue/typescript',
2020-10-09 22:58:28 +03:00
'plugin:vue/recommended',
],
env: {
browser: true,
},
rules: {
// allow paren-less arrow functions
'arrow-parens': 0,
'comma-dangle': ['error', 'only-multiline'],
'indent': ['error', 4, { SwitchCase: 1 }],
2020-10-09 22:58:28 +03:00
'max-depth': ['error', 3],
'max-lines-per-function': ['error', 40],
'no-console': ['warn', {allow: ['warn', 'error']}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
2020-10-09 22:58:28 +03:00
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'always',
}],
'vue/html-indent': ['error', 4, {
attribute: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: [],
}],
},
2018-01-31 01:21:21 +03:00
}