mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 12:52:35 +03:00
Add more eslint rules
This commit is contained in:
14
.eslintrc.js
14
.eslintrc.js
@@ -5,11 +5,21 @@ module.exports = {
|
||||
},
|
||||
'extends': [
|
||||
'plugin:vue/essential',
|
||||
'eslint:recommended'
|
||||
'eslint:recommended',
|
||||
'airbnb'
|
||||
],
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
||||
'max-len': ['error', { 'code': 120 }],
|
||||
'class-methods-use-this': 'off',
|
||||
'object-curly-newline': ['error', { 'consistent': true }],
|
||||
'comma-dangle': ['error', {
|
||||
'functions': 'never',
|
||||
'arrays': 'always-multiline',
|
||||
'objects': 'always-multiline'
|
||||
}]
|
||||
},
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
|
||||
Reference in New Issue
Block a user