Skip to content

Commit d27b05a

Browse files
committed
feat: Integrate with eslint-plugin-spellcheck
TODO: config needs tunning to remove noise.
1 parent e4ffd37 commit d27b05a

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"chai": "^4.1.2",
5656
"codecov": "^3.6.5",
5757
"eslint": "7.27.0",
58+
"eslint-plugin-spellcheck": "0.0.19",
5859
"jest": "^24.7.1",
5960
"karma-browserstack-launcher": "^1.5.1",
6061
"karma-firefox-launcher": "^1.1.0",

packages/eslint-config-sdk/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
node: true,
55
},
66
extends: ['prettier', 'eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings'],
7-
plugins: ['@sentry-internal/eslint-plugin-sdk', 'simple-import-sort'],
7+
plugins: ['@sentry-internal/eslint-plugin-sdk', 'simple-import-sort', 'spellcheck'],
88
overrides: [
99
{
1010
// Configuration for JavaScript files
@@ -199,5 +199,7 @@ module.exports = {
199199

200200
// Make sure for in loops check for properties
201201
'guard-for-in': 'error',
202+
203+
'spellcheck/spell-checker': ['warn'],
202204
},
203205
};

yarn.lock

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9265,6 +9265,15 @@ eslint-plugin-simple-import-sort@^5.0.3:
92659265
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-5.0.3.tgz#9ae258ddada6efffc55e47a134afbd279eb31fc6"
92669266
integrity sha512-1rf3AWiHeWNCQdAq0iXNnlccnH1UDnelGgrPbjBBHE8d2hXVtOudcmy0vTF4hri3iJ0MKz8jBhmH6lJ0ZWZLHQ==
92679267

9268+
eslint-plugin-spellcheck@0.0.19:
9269+
version "0.0.19"
9270+
resolved "https://registry.yarnpkg.com/eslint-plugin-spellcheck/-/eslint-plugin-spellcheck-0.0.19.tgz#73926b94208ae93ea5be00a8844dcdf1d8d2bf6f"
9271+
integrity sha512-Vau+oCLT3IGx+inJV5rkuKlIwgka9L2is1SkztviIHN3apNnT2OrZoGy9Jt3gbcjjkfkIFMFSZjB+ijHCimbNA==
9272+
dependencies:
9273+
globals "^13.0.0"
9274+
hunspell-spellchecker "^1.0.2"
9275+
lodash "^4.17.15"
9276+
92689277
eslint-scope@^4.0.3:
92699278
version "4.0.3"
92709279
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848"
@@ -10803,6 +10812,13 @@ globals@^12.1.0:
1080310812
dependencies:
1080410813
type-fest "^0.8.1"
1080510814

10815+
globals@^13.0.0:
10816+
version "13.10.0"
10817+
resolved "https://registry.yarnpkg.com/globals/-/globals-13.10.0.tgz#60ba56c3ac2ca845cfbf4faeca727ad9dd204676"
10818+
integrity sha512-piHC3blgLGFjvOuMmWZX60f+na1lXFDhQXBf1UYp2fXPXqvEUbOhNwi6BsQ0bQishwedgnjkwv1d9zKf+MWw3g==
10819+
dependencies:
10820+
type-fest "^0.20.2"
10821+
1080610822
globals@^13.6.0:
1080710823
version "13.9.0"
1080810824
resolved "https://registry.yarnpkg.com/globals/-/globals-13.9.0.tgz#4bf2bf635b334a173fb1daf7c5e6b218ecdc06cb"
@@ -11484,6 +11500,11 @@ humanize-ms@^1.2.1:
1148411500
dependencies:
1148511501
ms "^2.0.0"
1148611502

11503+
hunspell-spellchecker@^1.0.2:
11504+
version "1.0.2"
11505+
resolved "https://registry.yarnpkg.com/hunspell-spellchecker/-/hunspell-spellchecker-1.0.2.tgz#a10b0bd2fa00a65ab62a4c6b734ce496d318910e"
11506+
integrity sha1-oQsL0voAplq2Kkxrc0zkltMYkQ4=
11507+
1148711508
iconv-lite@0.4.24, iconv-lite@^0.4.24:
1148811509
version "0.4.24"
1148911510
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"

0 commit comments

Comments
 (0)