mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 12:52:35 +03:00
Fix linter, fix files by linter rules.
Fix backup file.
This commit is contained in:
64
.eslintrc.js
64
.eslintrc.js
@@ -1,27 +1,39 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
'extends': [
|
||||
'plugin:vue/essential',
|
||||
'eslint:recommended',
|
||||
'airbnb'
|
||||
],
|
||||
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'
|
||||
}]
|
||||
},
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
}
|
||||
}
|
||||
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'],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user