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/05/23 18:33:56 UTC
[incubator-annotator] branch master updated (dc34afb -> d1eb36a)
This is an automated email from the ASF dual-hosted git repository.
randall pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.
from dc34afb Lint for imports first
new fbce11f Lint for parent relative imports
new d1eb36a Set ESLint module source type and implied strict
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.eslintrc.js | 6 ++++++
1 file changed, 6 insertions(+)
[incubator-annotator] 02/02: Set ESLint module source type and
implied strict
Posted by ra...@apache.org.
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 d1eb36a0d19a06ba080f63b73e15221523a26f38
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 23 14:33:26 2019 -0400
Set ESLint module source type and implied strict
---
.eslintrc.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.eslintrc.js b/.eslintrc.js
index 5e38452..7381f85 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -10,7 +10,11 @@ module.exports = {
},
parser: 'babel-eslint',
parserOptions: {
+ ecmaFeatures: {
+ impliedStrict: true,
+ },
ecmaVersion: '2019',
+ sourceType: 'module',
},
plugins: ['import', 'prettier'],
rules: {
[incubator-annotator] 01/02: Lint for parent relative imports
Posted by ra...@apache.org.
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 fbce11f9215dd4db873bf00718ad734c21f2d256
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 23 14:29:39 2019 -0400
Lint for parent relative imports
---
.eslintrc.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.eslintrc.js b/.eslintrc.js
index 1fe2690..5e38452 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,6 +19,7 @@ module.exports = {
'import/newline-after-import': 'error',
'import/no-default-export': 'error',
'import/no-internal-modules': 'error',
+ 'import/no-relative-parent-imports': 'error',
'import/order': ['error', { 'newlines-between': 'always' }],
'import/unambiguous': 'error',
'no-restricted-syntax': [
@@ -86,6 +87,7 @@ module.exports = {
allow: ['ajv/lib/refs/json-schema-draft-04.json', 'src/**'],
},
],
+ 'import/no-relative-parent-imports': 'off',
},
},
],