add eslint & prettier

This commit is contained in:
Ryan Cao 2022-05-21 18:32:55 +08:00
parent 7950e23236
commit 0f15e2fb2c
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
6 changed files with 805 additions and 13 deletions

8
.eslintrc.cjs Normal file
View file

@ -0,0 +1,8 @@
/* eslint-env node */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
};