Skip to content

Commit 20d6d9e

Browse files
authored
Merge pull request #208 from aknuds1/dependabot/npm_and_yarn/eslint-9.0.0
Bump eslint from 8.57.0 to 9.0.0
2 parents 937257c + f813524 commit 20d6d9e

14 files changed

+112
-154
lines changed

.eslintignore

-1
This file was deleted.

.eslintrc.yaml

-34
This file was deleted.

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [16.x, 18.x, 20.x]
12+
node-version: [18.x, 20.x]
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Use Node.js ${{ matrix.node-version }}

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)