Update devDependencies, CI and Node.js minimum version to 12

This commit is contained in:
XhmikosR 2021-09-02 18:25:15 +03:00
Родитель 36919096b8
Коммит ed386c501c
6 изменённых файлов: 1720 добавлений и 3674 удалений

2
.github/workflows/test.yml поставляемый
Просмотреть файл

@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
node: [12, 14, 16]
steps:
- name: Clone repository

Просмотреть файл

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2014-2020 The Bootlint Authors
Copyright (c) 2014-2021 The Bootlint Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

Просмотреть файл

@ -1,6 +1,6 @@
# Bootlint Server
[![NPM version](https://img.shields.io/npm/v/bootlint-server.svg)](https://www.npmjs.com/package/bootlint-server)
[![npm version](https://img.shields.io/npm/v/bootlint-server.svg)](https://www.npmjs.com/package/bootlint-server)
[![Build Status](https://img.shields.io/github/workflow/status/twbs/bootlint-server/Tests/master)](https://github.com/twbs/bootlint-server/actions?query=branch%3Amaster+workflow%3ATests)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg "MIT License")](https://github.com/twbs/bootlint-server/blob/master/LICENSE)
[![Dependency Status](https://img.shields.io/david/twbs/bootlint-server.svg)](https://david-dm.org/twbs/bootlint-server)
@ -53,4 +53,4 @@ Response:
The project's coding style is laid out in the ESLint configuration. Add unit tests for any new or changed functionality. Lint and test your code using the npm scripts.
Copyright (c) 2014-2020 The Bootlint Authors. Licensed under the MIT License.
Copyright (c) 2014-2021 The Bootlint Authors. Licensed under the MIT License.

4
app.js
Просмотреть файл

@ -90,12 +90,12 @@ routes.post('/', (req, res) => {
const app = express();
app.use(logger('dev'));
HTML_MIME_TYPES.forEach(type => {
for (const type of HTML_MIME_TYPES) {
app.use(bodyParser.text({
type,
limit: MAX_HTML_SIZE
}));
});
}
app.use('/', routes);

5364
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -39,10 +39,10 @@
"morgan": "^1.10.0"
},
"devDependencies": {
"xo": "^0.37.1"
"xo": "^0.44.0"
},
"engines": {
"node": ">=10"
"node": ">=12"
},
"files": [
"bin/www",
@ -53,8 +53,22 @@
"esnext": true,
"space": 4,
"rules": {
"arrow-body-style": "off",
"capitalized-comments": "off",
"comma-dangle": [
"error",
"never"
],
"operator-linebreak": [
"error",
"after"
],
"space-before-function-paren": [
"error",
"never"
],
"unicorn/explicit-length-check": "off",
"unicorn/prefer-module": "off",
"unicorn/prevent-abbreviations": "off"
}
}