File tree Expand file tree Collapse file tree 5 files changed +378
-16
lines changed Expand file tree Collapse file tree 5 files changed +378
-16
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ parser : "@typescript-eslint/parser" , // Specifies the ESLint parser
3
+ parserOptions : {
4
+ ecmaVersion : 2020 , // Allows for the parsing of modern ECMAScript features
5
+ sourceType : "module" // Allows for the use of imports
6
+ } ,
7
+ extends : [
8
+ "plugin:@typescript-eslint/recommended" // Uses the recommended rules from the @typescript -eslint/eslint-plugin
9
+ ] ,
10
+ rules : {
11
+ // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
12
+ // e.g. "@typescript-eslint/explicit-function-return-type": "off",
13
+ }
14
+ } ;
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ semi : true ,
3
+ trailingComma : "all" ,
4
+ singleQuote : true ,
5
+ printWidth : 120 ,
6
+ tabWidth : 4
7
+ } ;
Original file line number Diff line number Diff line change 20
20
"test:integration-legacy" : " cucumber-js --fail-fast" ,
21
21
"test:integration" : " jest --config jest.config.integ.js --passWithNoTests" ,
22
22
"test:protocols" : " yarn build:protocols && lerna run test --scope '@aws-sdk/aws-*'" ,
23
- "local-publish" : " node ./scripts/verdaccio-publish/index.js"
23
+ "local-publish" : " node ./scripts/verdaccio-publish/index.js" ,
24
+ "lint" : " eslint 'packages/**/src/*.ts' --quiet --fix"
24
25
},
25
26
"repository" : {
26
27
"type" : " git" ,
42
43
"@types/chai-as-promised" : " ^7.1.2" ,
43
44
"@types/fs-extra" : " ^8.0.1" ,
44
45
"@types/jest" : " ^26.0.4" ,
46
+ "@typescript-eslint/eslint-plugin" : " ^3.6.0" ,
47
+ "@typescript-eslint/parser" : " ^3.6.0" ,
45
48
"chai" : " ^4.2.0" ,
46
49
"chai-as-promised" : " ^7.1.1" ,
47
50
"codecov" : " ^3.4.0" ,
48
51
"cucumber" : " ^6.0.5" ,
52
+ "eslint" : " ^7.4.0" ,
53
+ "eslint-config-prettier" : " ^6.11.0" ,
54
+ "eslint-plugin-prettier" : " ^3.1.4" ,
49
55
"fs-extra" : " ^9.0.0" ,
50
56
"generate-changelog" : " ^1.7.1" ,
51
57
"husky" : " ^4.2.3" ,
66
72
"lerna" : " 3.22.1" ,
67
73
"lint-staged" : " ^10.0.1" ,
68
74
"mocha" : " ^8.0.1" ,
69
- "prettier" : " 2.0.5" ,
75
+ "prettier" : " ^ 2.0.5" ,
70
76
"puppeteer" : " ^4.0.0" ,
71
77
"ts-loader" : " ^7.0.5" ,
72
78
"typescript" : " ~3.8.3" ,
Original file line number Diff line number Diff line change 9
9
"noUnusedParameters" : false ,
10
10
"removeComments" : false ,
11
11
"incremental" : true ,
12
- /**
13
- * Nice to have:
14
- */
15
12
// "preserveConstEnums": true,
13
+ "noImplicitAny" : true ,
14
+ // "sourceMap": true,
15
+ "noUnusedLocals" : true ,
16
+ // "noImplicitReturns": true,
17
+ // "noImplicitThis": true,
18
+ // "alwaysStrict": true,
19
+ // "noFallthroughCasesInSwitch": true,
16
20
"module" : " commonjs" ,
17
21
"moduleResolution" : " node" ,
18
22
"target" : " es5" ,
You can’t perform that action at this time.
0 commit comments