Skip to content

Commit

Permalink
Removed spell checker
Browse files Browse the repository at this point in the history
  • Loading branch information
yousufkalim committed Jul 6, 2022
1 parent e0da4ff commit 3108d57
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 36 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ All notable changes to this project will be documented in this file.
> - Internal
> - Unreleased
## v2.0.3

#### Enhancements

- Removed spell checker

## v2.0.2

#### Bug Fixes
Expand Down
17 changes: 1 addition & 16 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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
@@ -1,6 +1,6 @@
{
"name": "eslint-action",
"version": "2.0.2",
"version": "2.0.3",
"description": "Run ESLint on files changed in a pull request with inline error and warning annotations",
"author": "yousufkalim",
"license": "MIT",
Expand Down
15 changes: 0 additions & 15 deletions src/eslint-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const eslintRules = {
parserOptions: {
ecmaVersion: 12,
},
plugins: ['spellcheck'],
rules: {
'no-duplicate-imports': 'error',
'no-self-compare': 'error',
Expand All @@ -24,19 +23,5 @@ export const eslintRules = {
eqeqeq: 'error',
// eslint-disable-next-line quote-props
camelcase: 'error',
'spellcheck/spell-checker': [
1,
{
comments: true,
strings: true,
identifiers: true,
templates: true,
lang: 'en_US',
skipWords: ['dict', 'aff', 'hunspellchecker', 'hunspell', 'utils'],
skipIfMatch: ['http://[^s]*', '^[-\\w]+/[-\\w\\.]+$'],
skipWordIfMatch: ['^foobar.*$'],
minLength: 3,
},
],
},
};
2 changes: 1 addition & 1 deletion src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const runEslint = async (inputs: Inputs): Promise<void> => {

// Installing required libs
await exec('npm install --force --legacy-peer-deps');
await exec('npm i eslint-config-airbnb eslint-plugin-spellcheck prettier');
await exec('npm i eslint-config-airbnb prettier');

// if auto-fix-before-test is true, then run prettier on the files
if (inputs.autofix) {
Expand Down

0 comments on commit 3108d57

Please sign in to comment.