You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/10/27 23:03:06 UTC
[incubator-annotator] 02/02: Be strict with
import/no-internal-modules in tests
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 54daa7864ba29bd5a328e6ed7e1c22ebcf615361
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Oct 13 20:33:40 2019 -0400
Be strict with import/no-internal-modules in tests
---
.eslintrc.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 526cfc3..c52aaad 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,3 +1,5 @@
+const path = require('path');
+
const babel = require('@babel/core');
// Use the root babel.config.js for module resolution.
@@ -90,7 +92,10 @@ module.exports = {
'import/no-internal-modules': [
'error',
{
- allow: ['ajv/lib/refs/json-schema-draft-04.json', 'src/**'],
+ allow: [
+ 'ajv/lib/refs/json-schema-draft-04.json',
+ path.resolve(__dirname, './packages/*/src/**'),
+ ],
},
],
'import/no-relative-parent-imports': 'off',