Skip to content

Commit

Permalink
feat(rules): add import/no-unresolved rule
Browse files Browse the repository at this point in the history
Original commit:
metarhia/jstp@06579df

Original commit message:

  lint: add import/no-unresolved ESLint rule

  PR-URL: metarhia/jstp#133
  Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
  • Loading branch information
aqrln committed Sep 6, 2017
1 parent 6d431e4 commit 5962ba5
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ env:
node: true
es6: true
extends: 'eslint:recommended'
plugins:
- import
rules:
indent:
- error
Expand Down Expand Up @@ -173,3 +175,6 @@ rules:
template-curly-spacing:
- error
- never
import/no-unresolved:
- error
- commonjs: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ styleguide.
1. Install ESLint, this config and required plugins:

```console
npm i -D eslint eslint-config-metarhia
npm i -D eslint eslint-plugin-import eslint-config-metarhia
```

2. Add `"extends": "metarhia"` to your `.eslintrc`.
Expand Down
170 changes: 170 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@
"@commitlint/cli": "^3.2.0",
"@commitlint/config-angular": "^3.1.1",
"eslint": "^4.6.1",
"eslint-plugin-import": "^2.7.0",
"husky": "^0.14.3",
"remark-cli": "^4.0.0",
"remark-preset-lint-metarhia": "^1.0.1",
"standard-version": "^4.2.0"
},
"peerDependencies": {
"eslint": "^4.6.1"
"eslint": "^4.6.1",
"eslint-plugin-import": "^2.7.0"
}
}

0 comments on commit 5962ba5

Please sign in to comment.