在花括号之前或之前防止空行的eslint规则的名称是什么?

时间:2017-11-05 12:29:39

标签: javascript eslint

在大括号之后或之前阻止空行的eslint规则的名称是什么?

@app.route('/getstatus',methods=['POST','GET'])
def get_score():
    if request.method=='POST':
    #we wait till the web user has filled in the ID of the doctor
        id = request.form['id']

        #hearthmonitor Processor 1 parallelactivity 1 before the request I am searching the servername of the hearthmonitor that belongs with the ID
        urlhearth=serverhearth+id
        rh= requests.get(serverhearth, allow_redirects=False)
        h1=rh.content


        #doctormonitor Processor 2 parallelactivity 2 before the request I am searching the servername of the doctorserver (department server) that belongs with the ID. This is what I want to run in parrallel with activity 1   
        urldoc=server+id
        rd= requests.get(urldoc, allow_redirects=False)
        d1= rd.content



        #we make a list of their outcomes together
        list=[doctor, hearth]

2 个答案:

答案 0 :(得分:3)

"填充线之间语句"

详细说明: https://eslint.org/docs/rules/padding-line-between-statements

答案 1 :(得分:0)

规则是“填充块”而不是“ padding-line-between-statements”

更多信息:https://eslint.org/docs/rules/padded-blocks