Skip to content

Commit

Permalink
fix: A number of bugs in newrelic/one-core-toolbox#38
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgolden committed Jul 26, 2022
1 parent c6a8c45 commit 974623e
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
1 change: 1 addition & 0 deletions demo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.vercel
1 change: 0 additions & 1 deletion demo/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function App() {
value={sampleText}
/>

{`isLoading === ${linterIsLoading}`}

<LanguageLinter
sampleText={sampleText}
Expand Down
2 changes: 1 addition & 1 deletion demo/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
plugins: [react()],
})
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"install": "^0.13.0",
"npm": "^8.10.0",
"retext": "^8.1.0",
"retext-capitalization": "^1.2.4",
"retext-capitalization": "^1.2.5",
"retext-contractions": "^5.2.0",
"retext-english": "^4.1.0",
"retext-equality": "^6.6.0",
Expand Down
2 changes: 1 addition & 1 deletion src/LanguageLinter.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function lintMyText(textToBeLinted, customLocalDictionary) {
};

const retextEqualityOptions = {
ignore: ["disabled", "host", "hosts", "invalid", "just"],
ignore: ["disabled", "host", "hosts", "invalid", "just", "special"],
};

let output = "untouched";
Expand Down
21 changes: 19 additions & 2 deletions src/personalDictionary.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// List originally pulled from https://en.wikipedia.org/wiki/Wikipedia:List_of_English_contractions
export const dictionaryContents = [
"customizable",
"New Relic",
"New Relic One",
"nerdgraph",
Expand All @@ -9,6 +9,9 @@ export const dictionaryContents = [
"Figma",
"UI",
"Node.js",
"NPM",
"JVM",
"apm",
"APM",
"serverless",
"kubernetes",
Expand Down Expand Up @@ -93,5 +96,19 @@ export const dictionaryContents = [
"trello",
"asana",
"integrations",
"300m"
"300m",
"Jan",
"Feb",
"Mar",
"Apr",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
"uncheck",
"pre-populated",
"CDN",
];

0 comments on commit 974623e

Please sign in to comment.