-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [eslint] upgrade to 4.10.0 * [eslint-config-kibana] limit jest config to jest test files * [ui_framework] remove trailing comma from rest-spreads * [dashboard/tests] tag jest helpers with .test.js suffix * explicitly import expect.js where used * [eslint] apply auto-fixes * [eslint] manually add/wrap some parens for compliance * [npm] point to local packages for testing/review * [jest] remove .test extension from jest helpers * [ui_framework] fix trailing comma removal from 3bc661a * [packages] upgrade eslint packages
- Loading branch information
Showing
380 changed files
with
8,797 additions
and
8,772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
module.exports = { | ||
plugins: [ | ||
'jest', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['**/*.test.js'], | ||
plugins: [ | ||
'jest', | ||
], | ||
|
||
env: { | ||
'jest/globals': true, | ||
}, | ||
env: { | ||
'jest/globals': true, | ||
}, | ||
|
||
rules: { | ||
'jest/no-disabled-tests': 'error', | ||
'jest/no-focused-tests': 'error', | ||
'jest/no-identical-title': 'error', | ||
}, | ||
rules: { | ||
'jest/no-disabled-tests': 'error', | ||
'jest/no-focused-tests': 'error', | ||
'jest/no-identical-title': 'error', | ||
}, | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
module.exports.rules = { | ||
'no-default-export': context => ({ | ||
ExportDefaultDeclaration: (node) => { | ||
context.report(node, 'Default exports not allowed.'); | ||
module.exports = { | ||
rules: { | ||
'no-default-export': { | ||
meta: { | ||
schema: [] | ||
}, | ||
create: context => ({ | ||
ExportDefaultDeclaration: (node) => { | ||
context.report(node, 'Default exports not allowed.'); | ||
} | ||
}) | ||
} | ||
}) | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.