express-template/.eslintrc.yml

80 lines
1.4 KiB
YAML

env:
browser: true
commonjs: true
es2021: true
node: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 12
rules:
no-multiple-empty-lines:
- error
- max: 1
maxEOF: 0
maxBOF: 0
object-curly-spacing:
- error
- always
space-infix-ops:
- error
- int32Hint: false
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- always
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- never
overrides:
- files:
- '*.ts'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
rules:
no-multiple-empty-lines:
- error
- max: 1
maxEOF: 0
maxBOF: 0
object-curly-spacing:
- error
- always
space-infix-ops:
- error
- int32Hint: false
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- always
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- never