Other: Introduce ESLint for code linting

This commit is contained in:
June 2021-05-17 17:45:22 +02:00
commit b938d7a28f
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
6 changed files with 1020 additions and 5 deletions

21
.eslintrc.yml Normal file
View file

@ -0,0 +1,21 @@
env:
es2021: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 12
rules:
indent:
- error
- 4
- SwitchCase: 1
linebreak-style:
- error
- unix
quotes:
- error
- double
semi:
- error
- always
globals:
imports: readonly