mirror of https://github.com/fantasticit/think.git
chore: fix eslint
parent
c5ebb307aa
commit
8cadda82c2
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
{
|
||||
files: ['*.ts', '*.tsx', '.js', '.jsx'],
|
||||
parserOptions: {
|
||||
project: ['./packages/client/tsconfig.json'],
|
||||
project: ['./tsconfig.json'],
|
||||
sourceType: 'module',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: './packages/server/tsconfig.json',
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['@typescript-eslint', 'simple-import-sort', 'prettier'],
|
||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.ts', '*.tsx', '.js', '.jsx'],
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.json'],
|
||||
sourceType: 'module',
|
||||
},
|
||||
},
|
||||
],
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
|
|
Loading…
Reference in New Issue