File tree 8 files changed +347
-406
lines changed
8 files changed +347
-406
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,15 +6,14 @@ module.exports = {
6
6
extends : [
7
7
'eslint:recommended' ,
8
8
'plugin:@typescript-eslint/recommended' ,
9
- 'prettier'
9
+ 'plugin: prettier/recommended '
10
10
] ,
11
11
parser : '@typescript-eslint/parser' ,
12
12
parserOptions : {
13
- ecmaVersion : 12 ,
13
+ ecmaVersion : 2020 ,
14
14
sourceType : 'module' ,
15
15
project : './tsconfig.eslint.json'
16
16
} ,
17
- plugins : [ '@typescript-eslint' ] ,
18
17
rules : {
19
18
'no-unused-vars' : 'off' ,
20
19
'@typescript-eslint/no-unused-vars' : [
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ module.exports = {
3
3
tabWidth : 2 ,
4
4
semi : false ,
5
5
singleQuote : true ,
6
- printWidth : 80
6
+ printWidth : 80 ,
7
+ endOfLine : 'auto'
7
8
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"main" : " build/index.js" ,
3
3
"devDependencies" : {
4
- "@types/node" : " ^14.14.17" ,
5
- "@typescript-eslint/eslint-plugin" : " ^4.8.1" ,
6
- "@typescript-eslint/parser" : " ^4.8.1" ,
7
- "eslint" : " ^7.13.0" ,
8
- "eslint-config-prettier" : " ^7.1.0" ,
9
- "prettier" : " ^2.1.2" ,
10
- "typescript" : " ^4.0.5"
4
+ "@types/node" : " ^16.11.0" ,
5
+ "@typescript-eslint/eslint-plugin" : " ^5.0.0" ,
6
+ "@typescript-eslint/parser" : " ^5.0.0" ,
7
+ "eslint" : " ^8.0.1" ,
8
+ "eslint-config-prettier" : " ^8.3.0" ,
9
+ "eslint-plugin-prettier" : " ^4.0.0" ,
10
+ "prettier" : " ^2.4.1" ,
11
+ "typescript" : " ^4.4.4"
11
12
},
12
13
"dependencies" : {},
13
14
"scripts" : {
14
- "lint" : " yarn eslint && yarn prettier --check ." ,
15
- "lint:fix" : " yarn eslint --fix && yarn prettier --write ." ,
16
- "build" : " yarn tsc" ,
17
- "build:watch" : " yarn tsc --watch"
15
+ "lint" : " eslint --ignore-path .gitignore ." ,
16
+ "lint:fix" : " eslint --fix --ignore-path .gitignore ." ,
17
+ "build" : " tsc" ,
18
+ "build:watch" : " tsc --watch"
18
19
}
19
20
}
Original file line number Diff line number Diff line change 1
- console . log ( 'Hello world!' )
1
+ async function main ( ) {
2
+ console . log ( 'Main' )
3
+ }
4
+
5
+ void main ( )
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ./tsconfig.json" ,
3
- "include" : [" .eslintrc.js" , " .prettierrc.js" ]
4
- }
3
+ "compilerOptions" : {
4
+ "noEmit" : true
5
+ },
6
+ "include" : [
7
+ " src/**/*" ,
8
+ " .eslintrc.js" ,
9
+ " .prettierrc.js"
10
+ ]
11
+ }
You can’t perform that action at this time.
0 commit comments