File tree Expand file tree Collapse file tree 4 files changed +162
-82
lines changed
Expand file tree Collapse file tree 4 files changed +162
-82
lines changed Original file line number Diff line number Diff line change 6969 "@types/react" : " ^16.9" ,
7070 "@types/react-dom" : " ^16.9" ,
7171 "@types/stylis" : " ^4.0.0" ,
72- "@typescript-eslint/eslint-plugin" : " ^5.3.1 " ,
73- "@typescript-eslint/parser" : " ^5.3.1 " ,
72+ "@typescript-eslint/eslint-plugin" : " ^5.15.0 " ,
73+ "@typescript-eslint/parser" : " ^5.15.0 " ,
7474 "babel-jest" : " 26.6.3" ,
7575 "babel-plugin-macros" : " 3.0.1" ,
7676 "babel-preset-codecademy" : " 2.3.0" ,
7979 "enzyme" : " 3.11.0" ,
8080 "enzyme-adapter-react-16" : " 1.15.5" ,
8181 "enzyme-to-json" : " 3.3.5" ,
82- "eslint" : " ^8.2 .0" ,
82+ "eslint" : " ^8.11 .0" ,
8383 "eslint-plugin-import" : " ^2.25.2" ,
8484 "eslint-plugin-jest" : " ^25.2.4" ,
8585 "eslint-plugin-jest-react" : " ^0.1.0" ,
Original file line number Diff line number Diff line change @@ -54,6 +54,21 @@ module.exports = {
5454 '@typescript-eslint/unbound-method' : 'off' ,
5555 } ,
5656 } ,
57+ // These rules need type information so can only be run on .ts* files. These will be enabled in follow-up ticket WEB-1937
58+ {
59+ files : [ '*.ts' , '*.tsx' ] ,
60+ rules : {
61+ '@typescript-eslint/no-misused-promises' : [
62+ 'error' ,
63+ {
64+ checksVoidReturn : {
65+ attributes : false ,
66+ properties : false ,
67+ } ,
68+ } ,
69+ ] ,
70+ } ,
71+ } ,
5772 ] ,
5873
5974 plugins : [
@@ -102,6 +117,7 @@ module.exports = {
102117 '@typescript-eslint/no-magic-numbers' : 'off' ,
103118 '@typescript-eslint/no-type-alias' : 'off' ,
104119 '@typescript-eslint/typedef' : 'off' ,
120+
105121 'arrow-body-style' : 'off' ,
106122 camelcase : 'off' ,
107123 'class-methods-use-this' : 'off' ,
Original file line number Diff line number Diff line change 2020 },
2121 "homepage" : " https://github.com/Codecademy/client-modules/client-modules/packages/eslint-config" ,
2222 "peerDependencies" : {
23- "eslint" : " ^7.32 .0"
23+ "eslint" : " ^8.11 .0"
2424 },
2525 "dependencies" : {
26- "@typescript-eslint/eslint-plugin" : " ^5.3.1 " ,
27- "@typescript-eslint/parser" : " ^5.3.1 " ,
26+ "@typescript-eslint/eslint-plugin" : " ^5.15.0 " ,
27+ "@typescript-eslint/parser" : " ^5.15.0 " ,
2828 "eslint-config-airbnb" : " ^18.2.1" ,
2929 "eslint-config-prettier" : " ^8.3.0" ,
3030 "eslint-mdx" : " ^1.15.0" ,
4040 "yargs" : " ^17.1.1"
4141 },
4242 "devDependencies" : {
43- "eslint" : " ^7.32 .0"
43+ "eslint" : " ^8.11 .0"
4444 },
4545 "publishConfig" : {
4646 "access" : " public"
You can’t perform that action at this time.
0 commit comments