eslint-plugin-spellcheck
Advanced tools
Comparing version 0.0.14 to 0.0.15
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2556450
13
235
148
+ Addedglobals@12.4.0(transitive)
+ Addedtype-fest@0.8.1(transitive)
- Removedglobals@11.12.0(transitive)
Updatedglobals@^12.0.0
Updatedlodash@^4.17.15