Skip to content

Commit 1d88050

Browse files
committed
Bump eslint and node version
1 parent 82d79b8 commit 1d88050

File tree

5 files changed

+48
-43
lines changed

5 files changed

+48
-43
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
node: [12, 14, 16]
16+
node: [14, 16, 18]
1717
os: [ubuntu-latest, windows-latest]
1818

1919
steps:

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v1.6.0
2+
date: 2023-01-28
3+
changes:
4+
- Requires node.js 14+.
5+
-
16
v1.5.3
27
date: 2022-04-23
38
changes:

Gruntfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ module.exports = function(grunt) {
1515
}
1616
},
1717
eslint: {
18-
gruntfile_tasks: ['Gruntfile.js', 'internal-tasks/*.js'],
19-
libs_n_tests: ['lib/**/*.js', '<%= nodeunit.all %>'],
18+
gruntfileTasks: ['Gruntfile.js', 'internal-tasks/*.js'],
19+
libsAndTests: ['lib/**/*.js', '<%= nodeunit.all %>'],
2020
subgrunt: ['<%= subgrunt.all %>']
2121
},
2222
watch: {
23-
gruntfile_tasks: {
24-
files: ['<%= eslint.gruntfile_tasks %>'],
25-
tasks: ['eslint:gruntfile_tasks']
23+
gruntfileTasks: {
24+
files: ['<%= eslint.gruntfileTasks %>'],
25+
tasks: ['eslint:gruntfileTasks']
2626
},
27-
libs_n_tests: {
28-
files: ['<%= eslint.libs_n_tests %>'],
29-
tasks: ['eslint:libs_n_tests', 'nodeunit']
27+
libsAndTests: {
28+
files: ['<%= eslint.libsAndTests %>'],
29+
tasks: ['eslint:libsAndTests', 'nodeunit']
3030
},
3131
subgrunt: {
3232
files: ['<%= subgrunt.all %>'],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "https://github.com/gruntjs/grunt.git",
88
"license": "MIT",
99
"engines": {
10-
"node": ">=8"
10+
"node": ">=14"
1111
},
1212
"scripts": {
1313
"test": "node bin/grunt test",
@@ -55,10 +55,10 @@
5555
},
5656
"devDependencies": {
5757
"difflet": "~1.0.1",
58-
"eslint-config-grunt": "~1.0.1",
58+
"eslint-config-grunt": "~2.0.1",
5959
"grunt-contrib-nodeunit": "~4.0.0",
6060
"grunt-contrib-watch": "~1.1.0",
61-
"grunt-eslint": "~18.1.0",
61+
"grunt-eslint": "~24.0.1",
6262
"temporary": "~0.0.4",
6363
"through2": "~4.0.2"
6464
},

test/gruntfile/multi-task-files.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = function(grunt) {
5959
]
6060
},
6161
// File mapping options can be specified in these 2 formats.
62-
built_mapping: {
62+
builtMapping: {
6363
options: {a: 6, c: 66},
6464
expand: true,
6565
cwd: '<%= mappings.cwd %>',
@@ -68,7 +68,7 @@ module.exports = function(grunt) {
6868
rename: '<%= mappings.rename %>',
6969
extra: 123
7070
},
71-
long3_mapping: {
71+
long3Mapping: {
7272
options: {a: 7, c: 77},
7373
files: [
7474
{
@@ -81,22 +81,22 @@ module.exports = function(grunt) {
8181
}
8282
]
8383
},
84-
long4_mapping: {
84+
long4Mapping: {
8585
options: {a: 8, c: 88},
8686
files: [
87-
'<%= run.long3_mapping.files %>'
87+
'<%= run.long3Mapping.files %>'
8888
]
8989
},
90-
long5_mapping: {
90+
long5Mapping: {
9191
options: {a: 9, c: 99},
9292
files: [
93-
'<%= run.long3_mapping.files %>',
94-
'<%= run.long4_mapping.files %>'
93+
'<%= run.long3Mapping.files %>',
94+
'<%= run.long4Mapping.files %>'
9595
]
9696
},
9797
// Need to ensure the task function is run if no files or options were
9898
// specified!
99-
no_files_or_options: {},
99+
noFilesOrOptions: {},
100100
},
101101
});
102102

@@ -124,7 +124,7 @@ module.exports = function(grunt) {
124124
});
125125

126126
var expecteds = {
127-
'run:no_files_or_options': {
127+
'run:noFilesOrOptions': {
128128
options: {a: 1, b: 11, d: 9},
129129
files: [],
130130
},
@@ -236,7 +236,7 @@ module.exports = function(grunt) {
236236
},
237237
],
238238
},
239-
'run:built_mapping': {
239+
'run:builtMapping': {
240240
options: {a: 6, b: 11, c: 66, d: 9},
241241
files: [
242242
{
@@ -248,7 +248,7 @@ module.exports = function(grunt) {
248248
cwd: grunt.config.get('mappings.cwd'),
249249
src: ['*1.js', '*2.js'],
250250
dest: grunt.config.get('mappings.dest'),
251-
rename: grunt.config.get('run.built_mapping.rename'),
251+
rename: grunt.config.get('run.builtMapping.rename'),
252252
extra: 123,
253253
},
254254
},
@@ -258,16 +258,16 @@ module.exports = function(grunt) {
258258
extra: 123,
259259
orig: {
260260
expand: true,
261-
cwd: grunt.config.get('run.built_mapping.cwd'),
261+
cwd: grunt.config.get('run.builtMapping.cwd'),
262262
src: ['*1.js', '*2.js'],
263-
dest: grunt.config.get('run.built_mapping.dest'),
264-
rename: grunt.config.get('run.built_mapping.rename'),
263+
dest: grunt.config.get('run.builtMapping.dest'),
264+
rename: grunt.config.get('run.builtMapping.rename'),
265265
extra: 123,
266266
},
267267
},
268268
],
269269
},
270-
'run:long3_mapping': {
270+
'run:long3Mapping': {
271271
options: {a: 7, b: 11, c: 77, d: 9},
272272
files: [
273273
{
@@ -292,13 +292,13 @@ module.exports = function(grunt) {
292292
cwd: grunt.config.get('mappings.cwd'),
293293
src: ['*1.js', '*2.js'],
294294
dest: grunt.config.get('mappings.dest'),
295-
rename: grunt.config.get('run.built_mapping.rename'),
295+
rename: grunt.config.get('run.builtMapping.rename'),
296296
extra: 123,
297297
},
298298
},
299299
],
300300
},
301-
'run:long4_mapping': {
301+
'run:long4Mapping': {
302302
options: {a: 8, b: 11, c: 88, d: 9},
303303
files: [
304304
{
@@ -323,13 +323,13 @@ module.exports = function(grunt) {
323323
cwd: grunt.config.get('mappings.cwd'),
324324
src: ['*1.js', '*2.js'],
325325
dest: grunt.config.get('mappings.dest'),
326-
rename: grunt.config.get('run.built_mapping.rename'),
326+
rename: grunt.config.get('run.builtMapping.rename'),
327327
extra: 123,
328328
},
329329
},
330330
],
331331
},
332-
'run:long5_mapping': {
332+
'run:long5Mapping': {
333333
options: {a: 9, b: 11, c: 99, d: 9},
334334
files: [
335335
{
@@ -354,7 +354,7 @@ module.exports = function(grunt) {
354354
cwd: grunt.config.get('mappings.cwd'),
355355
src: ['*1.js', '*2.js'],
356356
dest: grunt.config.get('mappings.dest'),
357-
rename: grunt.config.get('run.built_mapping.rename'),
357+
rename: grunt.config.get('run.builtMapping.rename'),
358358
extra: 123,
359359
},
360360
},
@@ -380,7 +380,7 @@ module.exports = function(grunt) {
380380
cwd: grunt.config.get('mappings.cwd'),
381381
src: ['*1.js', '*2.js'],
382382
dest: grunt.config.get('mappings.dest'),
383-
rename: grunt.config.get('run.built_mapping.rename'),
383+
rename: grunt.config.get('run.builtMapping.rename'),
384384
extra: 123,
385385
},
386386
},
@@ -427,8 +427,8 @@ module.exports = function(grunt) {
427427
});
428428

429429
grunt.registerTask('default', [
430-
'run:no_files_or_options',
431-
'test:no_files_or_options',
430+
'run:noFilesOrOptions',
431+
'test:noFilesOrOptions',
432432
'run:dist/built.js',
433433
'test:dist/built.js',
434434
'run:dist/built1.js',
@@ -441,14 +441,14 @@ module.exports = function(grunt) {
441441
'test:long2',
442442
'run:long3',
443443
'test:long3',
444-
'run:built_mapping',
445-
'test:built_mapping',
446-
'run:long3_mapping',
447-
'test:long3_mapping',
448-
'run:long4_mapping',
449-
'test:long4_mapping',
450-
'run:long5_mapping',
451-
'test:long5_mapping',
444+
'run:builtMapping',
445+
'test:builtMapping',
446+
'run:long3Mapping',
447+
'test:long3Mapping',
448+
'run:long4Mapping',
449+
'test:long4Mapping',
450+
'run:long5Mapping',
451+
'test:long5Mapping',
452452
'run',
453453
'test:all',
454454
'test:counters',

0 commit comments

Comments
 (0)