mirror of https://github.com/portainer/portainer
feat(build): enable eslint on build
parent
3cb053250b
commit
49eb5b54ed
|
@ -20,7 +20,7 @@ parserOptions:
|
||||||
modules: true
|
modules: true
|
||||||
|
|
||||||
# # http://eslint.org/docs/rules/
|
# # http://eslint.org/docs/rules/
|
||||||
# rules:
|
rules:
|
||||||
# # Possible Errors
|
# # Possible Errors
|
||||||
# no-await-in-loop: off
|
# no-await-in-loop: off
|
||||||
# no-cond-assign: error
|
# no-cond-assign: error
|
||||||
|
@ -32,7 +32,7 @@ parserOptions:
|
||||||
# no-dupe-keys: error
|
# no-dupe-keys: error
|
||||||
# no-duplicate-case: error
|
# no-duplicate-case: error
|
||||||
# no-empty-character-class: error
|
# no-empty-character-class: error
|
||||||
# no-empty: error
|
no-empty: warn
|
||||||
# no-ex-assign: error
|
# no-ex-assign: error
|
||||||
# no-extra-boolean-cast: error
|
# no-extra-boolean-cast: error
|
||||||
# no-extra-parens: off
|
# no-extra-parens: off
|
||||||
|
|
|
@ -64,8 +64,6 @@
|
||||||
"splitargs": "github:deviantony/splitargs#~0.2.0",
|
"splitargs": "github:deviantony/splitargs#~0.2.0",
|
||||||
"toastr": "github:CodeSeven/toastr#~2.1.3",
|
"toastr": "github:CodeSeven/toastr#~2.1.3",
|
||||||
"ui-select": "^0.19.8",
|
"ui-select": "^0.19.8",
|
||||||
"webpack": "^4.20.2",
|
|
||||||
"webpack-cli": "^3.1.2",
|
|
||||||
"xterm": "^3.1.0"
|
"xterm": "^3.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -98,6 +96,8 @@
|
||||||
"load-grunt-tasks": "^3.5.2",
|
"load-grunt-tasks": "^3.5.2",
|
||||||
"ngtemplate-loader": "^2.0.1",
|
"ngtemplate-loader": "^2.0.1",
|
||||||
"style-loader": "^0.23.1",
|
"style-loader": "^0.23.1",
|
||||||
"url-loader": "^1.1.1"
|
"url-loader": "^1.1.1",
|
||||||
|
"webpack": "^4.20.2",
|
||||||
|
"webpack-cli": "^3.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,11 @@ module.exports = {
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
use: [
|
use: [
|
||||||
'auto-ngtemplate-loader'
|
'auto-ngtemplate-loader',
|
||||||
// {
|
{
|
||||||
// enforce: 'pre',
|
// enforce: 'pre',
|
||||||
// loader: 'eslint-loader'
|
loader: 'eslint-loader'
|
||||||
// }
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue