mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 21:02:35 +03:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: [
|
|
'vue'
|
|
],
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'eslint:recommended',
|
|
],
|
|
rules: {
|
|
'no-console': 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'
|
|
}],
|
|
'import/extensions': false,
|
|
},
|
|
settings: {
|
|
'import/resolver': {
|
|
node: {
|
|
extensions: ['.js', '.jsx', '.vue'],
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|