Skip to content

Commit 4a14e81

Browse files
dependabot[bot]aknuds1
authored andcommitted
Bump eslint from 8.57.0 to 9.0.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.0.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.0.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Arve Knudsen <[email protected]>
1 parent 937257c commit 4a14e81

13 files changed

+111
-153
lines changed

.eslintignore

-1
This file was deleted.

.eslintrc.yaml

-34
This file was deleted.

eslint.config.mjs

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import globals from 'globals';
2+
3+
export default {
4+
languageOptions: {
5+
ecmaVersion: 9,
6+
globals: {
7+
...globals.browser,
8+
...globals.commonjs,
9+
...globals.es6,
10+
},
11+
},
12+
ignores: [
13+
'dist/',
14+
],
15+
rules: {
16+
semi: [2,],
17+
strict: [2, 'global',],
18+
'comma-dangle': [
19+
2,
20+
{
21+
arrays: 'always',
22+
objects: 'always',
23+
imports: 'always',
24+
exports: 'always',
25+
functions: 'never',
26+
},
27+
],
28+
quotes: [2, 'single', {allowTemplateLiterals: true,},],
29+
'new-cap': [0,],
30+
'camelcase': [0,],
31+
'keyword-spacing': ['error', {after: true,},],
32+
'max-len': ['error', 100,],
33+
},
34+
};

index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const parser = require('./lib/parser');
42
const processingInstructions = require('./lib/processing-instructions');
53
const isValidNodeDefinitions = require('./lib/is-valid-node-definitions');

lib/camel-case-attribute-names.js

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// all attributes regardless of whether they have a different case to their HTML equivalents are
33
// listed to reduce the chance of human error and make it easier to just copy-paste the new list if
44
// it changes.
5-
'use strict';
65
const HTML_ATTRIBUTES = [
76
'accept', 'acceptCharset', 'accessKey', 'action', 'allowFullScreen', 'allowTransparency',
87
'alt', 'async', 'autoComplete', 'autoFocus', 'autoPlay', 'capture', 'cellPadding',

lib/is-valid-node-definitions.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
function alwaysValid() {
32
return true;
43
}

lib/parser.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
const HtmlParser = require('htmlparser2').Parser;
32
const DomHandler = require('domhandler').DomHandler;
43
const ProcessingInstructions = require('./processing-instructions');

lib/process-node-definitions.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
const utils = require('./utils');
32

43
// eslint-disable-next-line max-len

lib/processing-instructions.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
const ShouldProcessNodeDefinitions = require('./should-process-node-definitions');
32
const ProcessNodeDefinitions = require('./process-node-definitions');
43

lib/should-process-node-definitions.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
function shouldProcessEveryNode(node) {
32
return true;
43
}

lib/utils.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
const camelCase = require('lodash.camelcase');
32
const React = require('react');
43
const camelCaseAttrMap = require('./camel-case-attribute-names');

0 commit comments

Comments
 (0)