mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-18 02:13:35 -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}
|
||||
}]
|
||||
}
|
||||
}
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -21,9 +21,8 @@ server/data/processed/**
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
# .env files
|
||||
.env
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
|
||||
Reference in New Issue
Block a user