Skip to content

Commit

Permalink
Forbid import of modules using absolute paths (import/no-absolute-path)
Browse files Browse the repository at this point in the history
Fixes: #1343

Undoes: #861
  • Loading branch information
feross committed Jul 28, 2019
1 parent 757abf0 commit 33f3c35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

*(Estimated % of affected standard users, based on test suite in parens)*

- Forbid import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#861](https://github.com/standard/standard/issues/861) [#1343](https://github.com/standard/standard/issues/1343)
- Disallow template literals when placeholders or tagged template features are not used. ([quotes](https://eslint.org/docs/rules/quotes)) [#838](https://github.com/standard/standard/issues/838) [eslint-config-standard/#151](https://github.com/standard/eslint-config-standard/pull/151) (1%)

### Changed rules
Expand Down
3 changes: 2 additions & 1 deletion eslintrc.json
Expand Up @@ -2,6 +2,7 @@
"extends": ["standard", "standard-jsx"],
"rules": {
"quotes": ["error", "single", { "avoidEscape": true }],
"no-self-assign": ["error", { "props": true }]
"no-self-assign": ["error", { "props": true }],
"import/no-absolute-path": ["error", { "esmodule": true, "commonjs": true, "amd": false }]
}
}

0 comments on commit 33f3c35

Please sign in to comment.