mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-17 16:13:36 -06:00
Add .eslintrc.js for Vue.js project linting & formatting
- Also changed .gitignore for .env files (previous rules were for Flask .env.local files, no idea why python-dotenv could not read them properly, but whatever).
This commit is contained in:
22
.eslintrc.js
Normal file
22
.eslintrc.js
Normal file
@@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
|
||||
],
|
||||
rules: {
|
||||
// override/add rules settings here, such as:
|
||||
'vue/no-unused-vars': 'error',
|
||||
'indent': ['warn', 4],
|
||||
"vue/html-indent": ["error", 4, {
|
||||
"attribute": 1,
|
||||
"baseIndent": 1,
|
||||
"closeBracket": 0,
|
||||
"alignAttributesVertically": true,
|
||||
"ignores": []
|
||||
}],
|
||||
'vue/max-attributes-per-line': ["warn", {
|
||||
"singleline": {"max": 5},
|
||||
"multiline": {"max": 2}
|
||||
}]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user