Skip to content

Commit

Permalink
cspell: correctly check 'resources' folder
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 14, 2020
1 parent 616819e commit eca8884
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"check": "flow check",
"check:ts": "dtslint src",
"check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml",
"check:spelling": "cspell \"./{src/**/,resources**/,}*.{js,ts,md,graphql}\"",
"check:spelling": "cspell \"./{src/**/,resources/**/}*.{js,ts,md,graphql}\"",
"build": "node resources/build.js",
"changelog": "node resources/gen-changelog.js",
"preversion": ". ./resources/checkgit.sh && yarn check --integrity",
Expand Down
6 changes: 3 additions & 3 deletions resources/eslint-rules/no-dir-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const path = require('path');

module.exports = function (context) {
return {
ImportDeclaration: checkImporPath,
ExportNamedDeclaration: checkImporPath,
ImportDeclaration: checkImportPath,
ExportNamedDeclaration: checkImportPath,
};

function checkImporPath(node) {
function checkImportPath(node) {
const { source } = node;

// bail if the declaration doesn't have a source, e.g. "export { foo };"
Expand Down

0 comments on commit eca8884

Please sign in to comment.