repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
777b782
)
Override specific lint rule for JS (#95)
author
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 9 Feb 2021 12:10:16 +0000
(13:10 +0100)
committer
GitHub
<noreply@github.com>
Tue, 9 Feb 2021 12:10:16 +0000
(13:10 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js
patch
|
blob
|
blame
|
history
diff --git
a/.eslintrc.js
b/.eslintrc.js
index 16c73a1cbe8ad650e3c980702262104f8492a04c..a5c382c892f5547eddca28912a311ed4a445f690 100644
(file)
--- a/
.eslintrc.js
+++ b/
.eslintrc.js
@@
-20,9
+20,6
@@
module.exports = {
rules: {
'no-void': 'off',
- // Disabled because it reports these for js files
- '@typescript-eslint/no-var-requires': 'off',
-
// We have some intentionally empty functions
'@typescript-eslint/no-empty-function': 'off',
@@
-30,5
+27,13
@@
module.exports = {
'error',
{ ignoreProperties: true }
]
- }
+ },
+ overrides: [
+ {
+ files: ['*.js'],
+ rules: {
+ '@typescript-eslint/no-var-requires': 'off'
+ }
+ }
+ ]
}