dev-env update
This commit is contained in:
Родитель
9b8ba6c238
Коммит
fee0972245
26
.eslintrc.js
26
.eslintrc.js
|
@ -3,6 +3,7 @@ module.exports = {
|
|||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
'nextcloud/nextcloud': true,
|
||||
node: true,
|
||||
jest: true
|
||||
},
|
||||
|
@ -21,17 +22,24 @@ module.exports = {
|
|||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:nextcloud/recommended',
|
||||
'plugin:node/recommended',
|
||||
'plugin:vue/essential',
|
||||
'plugin:vue/recommended',
|
||||
'standard'
|
||||
],
|
||||
plugins: ['vue', 'node'],
|
||||
plugins: [
|
||||
'vue',
|
||||
'node',
|
||||
'nextcloud'
|
||||
],
|
||||
rules: {
|
||||
"node/no-missing-import": ["error", {
|
||||
"allowModules": [],
|
||||
"tryExtensions": [".js", ".vue"]
|
||||
'node/no-missing-import': ['error', {
|
||||
'allowModules': [],
|
||||
'tryExtensions': ['.js', '.vue']
|
||||
}],
|
||||
'nextcloud/no-deprecations': 'warn',
|
||||
'nextcloud/no-removed-apis': 'error',
|
||||
// space before function ()
|
||||
'space-before-function-paren': ['error', 'never'],
|
||||
// curly braces always space
|
||||
|
@ -57,16 +65,16 @@ module.exports = {
|
|||
'node/no-unsupported-features/es-syntax': ['off'],
|
||||
// kebab case components for vuejs
|
||||
'vue/component-name-in-template-casing': ['error', 'PascalCase' , {
|
||||
"registeredComponentsOnly": true,
|
||||
"ignores": []
|
||||
'registeredComponentsOnly': true,
|
||||
'ignores': []
|
||||
}],
|
||||
// space before self-closing elements
|
||||
'vue/html-closing-bracket-spacing': 'error',
|
||||
// code spacing with attributes
|
||||
// newline before closing bracket
|
||||
'vue/html-closing-bracket-newline': ["error", {
|
||||
"singleline": "never",
|
||||
"multiline": "never"
|
||||
'vue/html-closing-bracket-newline': ['error', {
|
||||
'singleline': 'never',
|
||||
'multiline': 'never'
|
||||
}],
|
||||
'vue/max-attributes-per-line': [
|
||||
'error',
|
||||
|
|
2
Makefile
2
Makefile
|
@ -55,7 +55,7 @@ lint-fix:
|
|||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(build_dir)
|
||||
rm -rf js/
|
||||
rm -rf js/*
|
||||
mkdir -p js
|
||||
clean-dev: clean
|
||||
rm -rf node_modules
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
"@babel/core": "^7.8.3",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/preset-env": "^7.8.3",
|
||||
"@nextcloud/eslint-plugin": "^1.1.0",
|
||||
"babel-eslint": "^10.0.2",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
|
@ -77,6 +78,7 @@
|
|||
"eslint-config-standard": "^14.1.0",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-plugin-import": "^2.20.0",
|
||||
"eslint-plugin-nextcloud": "^0.3.0",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
|
|
Загрузка…
Ссылка в новой задаче