Commit Graph

22 Commits

Author SHA1 Message Date
Ed Sanders
02e17c5242 build: Update eslint-config-wikimedia to 0.22.1
Change-Id: I02692eeabb23c5b99997faa7a17d42f019148ed1
2022-03-08 09:41:49 +00:00
Amir E. Aharoni
4f257fe8a7 Update grunt-stylelint to 0.17.0
Recommended by `npm audit`.

This required also adding postcss-less and changing Grunt
configuration to support it.

Change-Id: I22861dcdf761068ce37ed1b03c6bbfba1247860a
2022-01-31 08:07:55 +00:00
Volker E
8354e280b6 build: Update SVGO to latest v2.3.0 and re-optimize SVGs
SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-optimize SVGs.

Bug: T278656
Change-Id: I88ebed650be0d20b71bca6f15f3aa70b6b5eb42a
2021-05-27 11:53:05 -07:00
Timo Tijhof
1f64589ae7 build: Remove redundant eslint globs from Gruntfile.js
These ignores are already in package.json. Placing these here was
making `npm test` wait 10-20 seconds doing nothing waiting for Grunt
to synchronously recursively glob and expand an array of every file
in the current working directory (incl node_modules, and vendor) and
then once more for node_modules and vendor, and then to filter one
out from the other. And all before eslint even starts.

Instead, give '.' to eslint as we do in some other repos already,
and let it iterate on its own, skipping sub directories as it goes
based on package.json/eslintIgnore.

This follows-up 445087e5f, which did this once before,
and be400fe75 which unintentionally brought the Gruntfile part
back while leading the other part behind.

Change-Id: If637f2a696326778f25ea208224f5ac101f8c64a
2021-04-20 07:08:17 +00:00
Ed Sanders
e128c51356 build: Update eslint-config-wikimedia to 0.16.2
Change-Id: Iea4b73bdceb66e113b7f9c9244ae6b37a3ce205f
2020-07-09 16:40:05 +01:00
Ed Sanders
b105c2cadc build: Update linters
Change-Id: Ib83952a64224ab550f64975285e60713225b23b7
2019-11-12 14:45:01 +00:00
Ed Sanders
dae53b628c build: Update linters
Change-Id: Ib513d9fe879fb0c848cdfefaaaa753cc7279e242
2019-09-17 14:55:46 +01:00
James D. Forrester
be400fe751 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: Ie5c456ce74674194fd10b3e05a283f32bac60f2f
2019-05-07 11:19:24 -07:00
Ed Sanders
c080452013 build: Update eslint-config-wikimedia to 0.11.0
Change-Id: Ic59891fab5f8e35420bddbed34072841883fa543
2019-03-13 23:41:14 +00:00
Ed Sanders
7bf345669a build: Update linters
eslint-config-wikimedia      0.8.1  →   0.9.0
 stylelint-config-wikimedia   0.4.3  →   0.5.0

Change-Id: I0f55e743c2f38bb8910931c3989a6516e0527703
2018-12-10 14:24:24 +00:00
Alangi Derick
445087e5fe Add recent pattern for ESLinting to repo
Use of all: '.' in Gruntfile.js for eslint config and
eslintIgnore in package.json to ignore linting the "vendor/"
etc directory.

Bug: T203648
Change-Id: I65756ab3b6f413021cedeb22c7933c6cffa2cb78
2018-09-06 18:05:42 +00:00
Volker E
f3d48beef7 build: Bring SVGO optimization to build step
Enabling SVGO automation with 'grunt-svgmin' and conservative
plugin settings to build step, among those:
- enable removeRasterImages and sortAttrs,
- disable cleanupIDs, removeDesc, removeTitle, removeViewBox &
  removeXMLProcInst and
- make use of pretty, indent and multipass options.

Also updating SVG accordingly.

Bug: T185596
Change-Id: I0030a711a2947ca8c1eb4e56d8540661c72a2639
2018-05-20 08:55:05 +00:00
Ed Sanders
3d00c5d8f6 Remove eslint:fix
Not very useful now rules are stable.

Change-Id: Iafc8a393449bdd1909385fb14d051b11255f7cca
2017-04-28 17:29:59 +01:00
Ed Sanders
d9b300e697 build: Re-use MessageDirs in banana conf
Change-Id: Idf2ef6e5b3b8b77a7422161e80fa479016aa0ff3
2017-01-23 14:18:14 +00:00
Ed Sanders
811944c49a build: Replace jscs+jshint with eslint
Change-Id: I7f114267fbb4efd62a9162758445cff4fb3c0973
2016-11-09 15:57:38 +00:00
Ed Sanders
e6dcdb56c4 Introduce stylelint and make pass
Change-Id: Iaf12e7773f21d42ff59591680abdf248bf121224
2016-05-25 09:24:47 +02:00
Ed Sanders
aaa144ca1d Bump package versions and sort
Remove grunt-cli as included by grunt.

Change-Id: If8f2a363ac9bbdf93979390087ac6c48959c5f40
2016-05-25 06:53:01 +00:00
Niklas Laxström
12b355b733 Add vendor to ignore for linters
Change-Id: Icfdc8f23485eee63e7aa33ed4405f8bcb51a0d9d
2016-05-18 09:52:23 +00:00
Siebrand Mazeland
6a2b2e0bba Update test files
- Updated versions and order of checkers.
- Some consistency updates in Gruntfile.js.
- Updates to make jscs pass.

Change-Id: I7ed93596ff383dc713bd17af2da0472be934d59d
2016-02-18 18:51:37 +00:00
paladox
e623702647 Add grunt-jscs
Change-Id: I0213d16e4e1dc3819ae0a663b896033ca572a37d
2015-09-23 09:40:45 +00:00
paladox
b436eab7af Add jshint to npm
Add jshint to gruntfile.js

Change-Id: I1b741215dd04db9dded330dbbd3ba901e20566d1
2015-09-21 07:58:17 +00:00
Kunal Mehta
ba2135f84e build: Configure banana-checker and jsonlint
Change-Id: Ie75e8b79e0b5b50d415c221e52fda73b6a2763f9
2015-06-20 22:32:53 -07:00