Skip to content

Commit b7627f2

Browse files
committed
fix: eslint errors
1 parent 674be0a commit b7627f2

File tree

7 files changed

+140
-15
lines changed

7 files changed

+140
-15
lines changed

.eslintrc.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ const config = createConfig('eslint', {
88
'import/no-import-module-exports': 'off',
99
'spaced-comment': ['error', 'always', { 'block': { 'exceptions': ['*'] } }],
1010
},
11-
});
12-
13-
config.settings = {
14-
"import/resolver": {
15-
node: {
16-
paths: ["src", "node_modules"],
17-
extensions: [".js", ".jsx"],
11+
settings: {
12+
'import/resolver': {
13+
webpack: {
14+
config: 'webpack.prod.config.js',
15+
},
1816
},
19-
},
20-
};
17+
}
18+
});
2119

2220
module.exports = config;

package-lock.json

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"@testing-library/jest-dom": "^5.14.1",
7878
"@testing-library/react": "^12.1.0",
7979
"copy-webpack-plugin": "^12.0.0",
80+
"eslint-import-resolver-webpack": "^0.13.9",
8081
"husky": "^9.0.0",
8182
"identity-obj-proxy": "^3.0.0",
8283
"jest": "^29.7.0",

src/containers/RelatedProgramsModal/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const messages = defineMessages({
1010
description: {
1111
id: 'learner-dash.relatedPrograms.description',
1212
description: 'Description for related settings modal',
13-
defaultMessage: `Are you looking to expand your knowledge? Enrolling in a Program lets you take a series of courses in the subject that you're interested in`,
13+
defaultMessage: 'Are you looking to expand your knowledge? Enrolling in a Program lets you take a series of courses in the subject that you\'re interested in',
1414
},
1515
});
1616

src/containers/UnenrollConfirmModal/components/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const messages = defineMessages({
2020
reasonHeading: {
2121
id: 'learner-dash.unenrollConfirm.confirm.reason.heading',
2222
description: 'Heading for unenroll reason modal',
23-
defaultMessage: `What's your main reason for unenrolling?`,
23+
defaultMessage: 'What\'s your main reason for unenrolling?',
2424
},
2525
reasonSkip: {
2626
id: 'learner-dash.unenrollConfirm.confirm.reason.skip',

src/containers/UnenrollConfirmModal/constants.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const messages = StrictDict({
3030
[reasonKeys.prereqs]: {
3131
id: 'learner-dash.unenrollConfirm.reasons.prereqs',
3232
description: 'Unenroll reason option - missing prerequisites',
33-
defaultMessage: `I don't have the academic or language prerequisites`,
33+
defaultMessage: 'I don\'t have the academic or language prerequisites',
3434
},
3535
[reasonKeys.difficulty]: {
3636
id: 'learner-dash.unenrollConfirm.reasons.difficulty',
@@ -40,7 +40,7 @@ const messages = StrictDict({
4040
[reasonKeys.goals]: {
4141
id: 'learner-dash.unenrollConfirm.reasons.goals',
4242
description: 'Unenroll reason option - goals-related',
43-
defaultMessage: `This won't help me reach my goals`,
43+
defaultMessage: 'This won\'t help me reach my goals',
4444
},
4545
[reasonKeys.broken]: {
4646
id: 'learner-dash.unenrollConfirm.reasons.broken',
@@ -50,7 +50,7 @@ const messages = StrictDict({
5050
[reasonKeys.time]: {
5151
id: 'learner-dash.unenrollConfirm.reasons.time',
5252
description: 'Unenroll reason option - time-related',
53-
defaultMessage: `I don't have the time`,
53+
defaultMessage: 'I don\'t have the time',
5454
},
5555
[reasonKeys.browse]: {
5656
id: 'learner-dash.unenrollConfirm.reasons.browse',
@@ -60,7 +60,7 @@ const messages = StrictDict({
6060
[reasonKeys.support]: {
6161
id: 'learner-dash.unenrollConfirm.reasons.support',
6262
description: 'Unenroll reason option - lacking support',
63-
defaultMessage: `I don't have enough support`,
63+
defaultMessage: 'I don\'t have enough support',
6464
},
6565
[reasonKeys.quality]: {
6666
id: 'learner-dash.unenrollConfirm.reasons.quality',

tsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "@edx/typescript-config",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"baseUrl": "./src",
6+
"paths": {
7+
"*": ["*"],
8+
"@src/*": ["*"]
9+
}
10+
},
11+
"include": ["*.js", ".eslintrc.js", "src/**/*"],
12+
"exclude": ["dist", "node_modules"]
13+
}

0 commit comments

Comments
 (0)