File tree 4 files changed +312
-215
lines changed
4 files changed +312
-215
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,17 @@ module.exports = {
3
3
env : {
4
4
node : true ,
5
5
} ,
6
- 'extends' : [ 'sora' ] ,
6
+ 'extends' : [
7
+ 'plugin:@typescript-eslint/recommended' ,
8
+ 'sora' ,
9
+ ] ,
10
+ parser : '@typescript-eslint/parser' ,
7
11
parserOptions : {
8
- ecmaVersion : 2017 ,
12
+ sourceType : 'module' ,
13
+ ecmaVersion : 2020 ,
14
+ } ,
15
+ rules : {
16
+ 'no-use-before-define' : 'off' ,
17
+ '@typescript-eslint/no-use-before-define' : [ 'error' ] ,
9
18
} ,
10
19
}
Original file line number Diff line number Diff line change 10
10
"devDependencies" : {
11
11
"@commitlint/cli" : " ^11.0.0" ,
12
12
"@commitlint/config-conventional" : " ^11.0.0" ,
13
+ "@typescript-eslint/eslint-plugin" : " ^4.15.2" ,
14
+ "@typescript-eslint/parser" : " ^4.15.2" ,
13
15
"eslint" : " ^7.20.0" ,
14
16
"eslint-config-sora" : " ^3.1.0" ,
15
17
"husky" : " ^5.0.9" ,
16
- "lerna" : " ^4.0.0"
18
+ "lerna" : " ^4.0.0" ,
19
+ "typescript" : " ^4.1.5"
17
20
}
18
21
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "esModuleInterop" : true ,
4
+ "importHelpers" : true ,
5
+ "jsx" : " preserve" ,
6
+ "lib" : [" esnext" , " dom" ],
7
+ "module" : " esnext" ,
8
+ "moduleResolution" : " node" ,
9
+ "skipLibCheck" : true ,
10
+ "sourceMap" : true ,
11
+ "strict" : true ,
12
+ "target" : " esnext" ,
13
+ },
14
+ "include" : [
15
+ " src/**/*.ts" ,
16
+ " src/**/*.tsx" ,
17
+ ],
18
+ "exclude" : [
19
+ " node_modules"
20
+ ]
21
+ }
You can’t perform that action at this time.
0 commit comments