Replace gulp with plain npm for linting.

This commit is contained in:
Fredrik Jonsson 2021-06-21 19:20:17 +02:00
commit d4117c730b
21 changed files with 1782 additions and 3864 deletions

View file

@ -1,3 +1,4 @@
/* eslint-disable no-undef */
(function () {
'use strict';

View file

@ -3,10 +3,10 @@
* A JavaScript file for the theme.
*/
(function ($) {
(function () {
'use strict';
// Place your code here.
})(u);
})();

View file

@ -1,3 +1,5 @@
/* eslint-disable no-undef */
/**
* @file
* A JavaScript file for flexsearch.
@ -36,7 +38,7 @@
results.appendChild(fragment);
}
function doSearch () {
function doSearch() {
const query = document.querySelector('.search-text').value.trim();
const results = flexSearch.search({
query: query,
@ -45,21 +47,21 @@
showResults(results);
}
function enableUI () {
function enableUI() {
const searchform = document.querySelector('.search-form');
searchform.addEventListener('submit', function (e) {
e.preventDefault();
doSearch();
})
});
searchform.addEventListener('keyup', function () {
doSearch();
})
});
document.querySelector('.search-loading').classList.add('hidden');
document.querySelector('.search-input').classList.remove('hidden');
document.querySelector('.search-text').focus();
}
function buildIndex () {
function buildIndex() {
document.querySelector('.search-loading').classList.remove('hidden');
fetch('/searchindex.json')
.then(function (response) {

View file

@ -1,3 +1,5 @@
/* eslint-disable no-undef */
/**
* @file
* A JavaScript file for analytic tracking.

View file

@ -1,3 +1,3 @@
// sass-lint:disable no-css-comments, no-color-hex, no-color-literals
// stylelint-disable color-no-hex, color-named
// Site custom styles

View file

@ -83,7 +83,6 @@ aside {
}
article {
& > header {
color: $text-meta;
}

View file

@ -1,4 +1,4 @@
// sass-lint:disable no-vendor-prefixes
// stylelint-disable property-no-vendor-prefix
// Document
//

View file

@ -1,4 +1,4 @@
// sass-lint:disable no-vendor-prefixes, no-css-comments
// stylelint-disable property-no-vendor-prefix
// Form defaults
//

View file

@ -14,7 +14,7 @@
a,
%link {
color: $link;
// sass-lint:disable no-vendor-prefixes
// stylelint-disable property-no-vendor-prefix
// Remove gaps in links underline in iOS 8+ and Safari 8+.
-webkit-text-decoration-skip: objects;
}

View file

@ -10,7 +10,7 @@
abbr[title] {
// Remove the bottom border in Chrome 57- and Firefox 39-.
border-bottom: 0;
// sass-lint:disable no-duplicate-properties
// stylelint-disable no-duplicate-properties
// Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
text-decoration: underline;
text-decoration: underline dotted;
@ -31,7 +31,7 @@ strong {
font-weight: inherit;
}
// sass-lint:disable no-mergeable-selectors
// stylelint-disable no-mergeable-selectors
b,
strong {
// Add the correct font weight in Chrome, Edge, and Safari.

View file

@ -14,7 +14,7 @@ button,
[type='button'],
[type='reset'],
[type='submit'] {
// sass-lint:disable no-color-hex, no-color-literals
// stylelint-disable color-no-hex, color-named
@extend %button--disabled;
@include typeface(headings);
@include margin-right(.75);
@ -38,7 +38,7 @@ button,
border-bottom-color: #b4b4b4;
border-radius: 2px;
// sass-lint:disable no-vendor-prefixes
// stylelint-disable property-no-vendor-prefix
// Correct the inability to style clickable types in iOS and Safari.
-moz-appearance: button;
-webkit-appearance: button;
@ -53,7 +53,7 @@ button,
&:-moz-focusring {
outline: 1px dotted ButtonText;
}
// sass-lint:enable no-vendor-prefixes
// sass-lint:enable property-no-vendor-prefix
&:hover,
&:focus,

View file

@ -3,11 +3,11 @@
.cookieconsent {
@include type-layout(s, 1);
position: sticky;
bottom: 0;
bottom: 0;
width: 100%;
color: $warning;
background-color: $warning-bg;
border-top: 4px solid $warning-border;
border-top: 4px solid $warning-border;
text-align: center;
transform: translateY(100vh);
transition: all 130ms ease-in;

View file

@ -1,3 +1,5 @@
// stylelint-disable selector-max-compound-selectors
// Inline sibling
//
// An element that needs to appear inline with the content that follows.

View file

@ -14,7 +14,7 @@
font-size: 75px;
line-height: 1;
text-align: center;
// sass-lint:disable no-color-literals
// stylelint-disable no-color-literals
text-shadow: 0 0 1px rgba(0, 0, 0, .1);
word-wrap: break-word;
}

View file

@ -9,7 +9,6 @@ $with-wireframes: false !default;
// variable: `$with-wireframes: true;`
@if $with-wireframes {
.wireframe,
%wireframe {
outline: 1px solid $border;
@ -31,5 +30,4 @@ $with-wireframes: false !default;
@extend %wireframe;
}
}
}

View file

@ -1,4 +1,4 @@
// sass-lint:disable no-color-keywords; no-color-hex
// stylelint-disable color-no-hex, color-named
// Base colors.
$black: #000;

View file

@ -102,7 +102,7 @@ $typefaces: (
// We could also specify the following property:
// letter-spacing: .5px,
),
);
); // stylelint-disable indentation
// Output a horizontal grid to help with debugging typography.
$typey-debug: false;

View file

@ -1,3 +1,5 @@
// stylelint-disable function-url-quotes
// The relative path from the css directory to the sass directory.
$image-url-path-to-source: '../sass' !default;
// The relative path from the root sass directory to where your components usually lie.

View file

@ -1,4 +1,4 @@
// sass-lint:disable no-important
// stylelint-disable declaration-no-important
// visually-hidden()
//

View file

@ -1,4 +1,4 @@
// sass-lint:disable indentation
// stylelint-disable indentation
.layout {
&__page {
@ -29,7 +29,6 @@
}
@supports (display: grid) {
.layout {
&__page {
display: grid;

Some files were not shown because too many files have changed in this diff Show more