Commit graph

4 commits

Author SHA1 Message Date
Spencer
e0c66b98d2 [backport/5.x] [eslint] enable no-undef rule - #10825 (#10846)
* [codeshift] add proper ignore comments

* use more descriptive file ignore pattern

* [codeshift] apply require-to-import transform

* [codeshift/fixup] remove duplicate imports

* [eslint] upgrade config for react "unused" support

(cherry picked from commit aa2bb174a3)

* [eslint] remove no-unused-vars override

* [eslint] remove no-unused-vars override

* add eslint-plugin-react peerDependency

* [codeshift] apply remove-unused-basic-requires transform

* [codeshift] apply remove-unused-function-arguments transform

* [lintroller] fix argument list spacing

* [codeshift] apply remove-unused-basic-vars transform

* [codeshift/fixup] fixup unused basic var removals

* manually apply remove-unused-assignments transform

* [codeshift] reapply remove-unused-imports transform

* [codeshift] reapply remove-unused-function-arguments transform

* [resizeChecker] remove assignment to unused var

* [eslint] autofix param spacing

* manually fix remaining no-undef errors

* replace values that looked unused in tests

* remove // kibana-jscodeshift-no-babel comment

* remove import statements from code required by api tests

* Remove '// kibana-jscodeshift-ignore' comments

* address review feedback

* remove remnant of removed if condition

* [console] use * import for settings
2017-03-22 11:13:19 -07:00
Spencer
9ed7e81b62 Backport eslint updates to 5.x (#10139)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule

* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations

* [eslint] enable quotes+no-extra-semi and autofix
2017-02-06 21:27:07 -07:00
Court Ewing
300b1e6404 Use grunt root path when collecting git files
No reason to reinvent the wheel here. We already determine the root path
of the project in our grunt config, so we just use that instead.
2015-12-29 10:46:22 -05:00
Court Ewing
acded081fa Check that all new files are snake cased
We removed the snake case check during precommit because it was
interfering with us getting features merged when dealing with legacy
files, but we do want to verify that any new files added have snake
cased names.
2015-12-28 16:53:39 -05:00