Поправки для eslint
This commit is contained in:
31
.eslintrc
31
.eslintrc
@@ -1,9 +1,14 @@
|
|||||||
{
|
{
|
||||||
"parser": "babel-eslint",
|
"parserOptions": {
|
||||||
|
"parser": "babel-eslint"
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/essential"
|
||||||
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"vue",
|
||||||
"html",
|
"html",
|
||||||
"node",
|
"node"
|
||||||
"vue"
|
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
@@ -26,25 +31,5 @@
|
|||||||
"ignoreComments": true,
|
"ignoreComments": true,
|
||||||
"ignoreUrls": true
|
"ignoreUrls": true
|
||||||
}],
|
}],
|
||||||
|
|
||||||
"node/exports-style": "off",
|
|
||||||
"node/no-deprecated-api": "error",
|
|
||||||
"node/no-extraneous-import": "off",
|
|
||||||
"node/no-extraneous-require": "error",
|
|
||||||
"node/no-missing-import": "off",
|
|
||||||
"node/no-missing-require": "error",
|
|
||||||
"node/no-unpublished-bin": "error",
|
|
||||||
"node/no-unpublished-import": "off",
|
|
||||||
"node/no-unsupported-features/es-builtins": "error",
|
|
||||||
"node/no-unsupported-features/es-syntax": "error",
|
|
||||||
"node/no-unsupported-features/node-builtins": "error",
|
|
||||||
"node/prefer-global/buffer": "off",
|
|
||||||
"node/prefer-global/console": "off",
|
|
||||||
"node/prefer-global/process": "off",
|
|
||||||
"node/prefer-global/text-decoder": "off",
|
|
||||||
"node/prefer-global/text-encoder": "off",
|
|
||||||
"node/prefer-global/url-search-params": "off",
|
|
||||||
"node/prefer-global/url": "off"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -2687,12 +2687,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-plugin-html": {
|
"eslint-plugin-html": {
|
||||||
"version": "1.7.0",
|
"version": "5.0.0",
|
||||||
"resolved": "http://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-1.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-5.0.0.tgz",
|
||||||
"integrity": "sha1-KlsDiE2NVq35rZhk6cA2SA+2Kck=",
|
"integrity": "sha512-f7p/7YQdgQUFVAX3nB4dnMQbrDeTalcA01PDhuvTLk0ZadCwM4Pb+639SRuqEf1zMkIxckLY+ckCr0hVP5zl6A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"htmlparser2": "^3.8.2"
|
"htmlparser2": "^3.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-plugin-node": {
|
"eslint-plugin-node": {
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
"build:client": "webpack --config build/webpack.prod.config.js",
|
"build:client": "webpack --config build/webpack.prod.config.js",
|
||||||
"build:linux": "npm run build:client && pkg -t latest-linux-x64 -o dist/linux/liberama .",
|
"build:linux": "npm run build:client && pkg -t latest-linux-x64 -o dist/linux/liberama .",
|
||||||
"build:win": "npm run build:client && pkg -t latest-win-x64 -o dist/win/liberama .",
|
"build:win": "npm run build:client && pkg -t latest-win-x64 -o dist/win/liberama .",
|
||||||
"lint": "eslint --ext=.js,.vue client server"
|
"lint": "eslint --ext=.js,.vue client server",
|
||||||
|
"test": "eslint client/App.vue"
|
||||||
},
|
},
|
||||||
"bin": "server/index.js",
|
"bin": "server/index.js",
|
||||||
"pkg": {
|
"pkg": {
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
"babel-preset-env": "^1.3.2",
|
"babel-preset-env": "^1.3.2",
|
||||||
"css-loader": "^1.0.0",
|
"css-loader": "^1.0.0",
|
||||||
"eslint": "^5.11.1",
|
"eslint": "^5.11.1",
|
||||||
"eslint-plugin-html": "^1.4.0",
|
"eslint-plugin-html": "^5.0.0",
|
||||||
"eslint-plugin-node": "^8.0.0",
|
"eslint-plugin-node": "^8.0.0",
|
||||||
"eslint-plugin-vue": "^5.0.0",
|
"eslint-plugin-vue": "^5.0.0",
|
||||||
"file-loader": "^3.0.1",
|
"file-loader": "^3.0.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user