Socket
Socket
Sign inDemoInstall

eslint-plugin-spellcheck

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-spellcheck - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

rules/utils/dicts/en_AU.aff

8

package.json
{
"name": "eslint-plugin-spellcheck",
"version": "0.0.14",
"version": "0.0.15",
"description": "ESLint rules to spell check js files",

@@ -22,5 +22,5 @@ "main": "index.js",

"dependencies": {
"globals": "^11.3.0",
"globals": "^12.0.0",
"hunspell-spellchecker": "^1.0.2",
"lodash": "^4.14.2"
"lodash": "^4.17.15"
},

@@ -30,3 +30,3 @@ "devDependencies": {

"coveralls": "^3.0.5",
"eslint": "^3.2.2 || ^4.0.0",
"eslint": ">4.18.2",
"gulp": "^4.0.2",

@@ -33,0 +33,0 @@ "gulp-istanbul": "^1.1.3",

@@ -19,2 +19,5 @@ # eslint-plugin-spellcheck

"ignoreRequire": <<Boolean>>, default: false
Exclude `require()` imports from spell-checking. Useful for excluding NPM package name false-positives.
"templates": <<Boolean>>, default: true

@@ -25,3 +28,3 @@ Check Spelling inside ES6 templates you should enable parser options for ES6 features for this to work

"lang": <<String>>, default: "en_US"
Choose the language you want to use. Options are: "en_US", "en_CA", and "en_GB"
Choose the language you want to use. Options are: "en_US", "en_CA", "en_AU", and "en_GB"

@@ -28,0 +31,0 @@ "skipWords": <<Array Of Strings>> default: []

@@ -68,2 +68,6 @@ // Native modules

},
ignoreRequire: {
type: 'boolean',
default: false
},
templates: {

@@ -179,6 +183,8 @@ type: 'boolean',

function isInImportDeclaration( aNode ) {
// @see https://buildmedia.readthedocs.org/media/pdf/esprima/latest/esprima.pdf
return aNode.parent &&
(aNode.parent.type === 'ImportDeclaration' || aNode.parent.type === 'ExportDeclaration');
function isInImportDeclaration(aNode) {
// @see https://buildmedia.readthedocs.org/media/pdf/esprima/latest/esprima.pdf
return aNode.parent && (
(aNode.parent.type === 'ImportDeclaration' || aNode.parent.type === 'ExportDeclaration') ||
(options.ignoreRequire && aNode.parent.type === 'CallExpression' && aNode.parent.callee.name === 'require')
);
}

@@ -185,0 +191,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc