Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b31a126

Browse files
committedFeb 1, 2024
Merge branch 'master' of https://github.com/capricorn86/happy-dom into feature-getName
2 parents 36b2c8e + 6cbcc10 commit b31a126

File tree

346 files changed

+27942
-15755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+27942
-15755
lines changed
 

‎.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/node_modules
2+
**/tmp
3+
**/lib
4+
**/cjs
5+
**/tmp

‎packages/happy-dom/.eslintrc.cjs ‎.eslintrc.cjs

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const ERROR = 'error';
33
const OFF = 'off';
44

55
const COMMON_CONFIG = {
6-
plugins: ['turbo', 'jsdoc', 'filenames', 'import', 'prettier'],
7-
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
6+
plugins: ['jsdoc', 'filenames', 'import', 'prettier'],
7+
extends: ['prettier', 'plugin:prettier/recommended'],
88
rules: {
99
'prettier/prettier': WARN,
1010
'no-underscore-dangle': OFF,
@@ -25,7 +25,7 @@ const COMMON_CONFIG = {
2525
'one-var': [ERROR, 'never'],
2626
camelcase: [WARN, { properties: 'always', ignoreImports: true }],
2727
'spaced-comment': [WARN, 'always'],
28-
'capitalized-comments': [WARN, 'always', { ignorePattern: 'prettier' }],
28+
'capitalized-comments': OFF,
2929
'no-useless-rename': WARN,
3030
'jsdoc/check-alignment': WARN,
3131
'jsdoc/check-examples': OFF,
@@ -35,7 +35,7 @@ const COMMON_CONFIG = {
3535
'jsdoc/check-types': WARN,
3636
'jsdoc/implements-on-classes': WARN,
3737
'jsdoc/match-description': OFF,
38-
'jsdoc/newline-after-description': WARN,
38+
'jsdoc/newline-after-description': OFF,
3939
'jsdoc/no-types': OFF,
4040
'jsdoc/no-undefined-types': OFF,
4141
'jsdoc/require-description': OFF,
@@ -68,9 +68,6 @@ const COMMON_CONFIG = {
6868
const TS_PARSER_FIELDS = {
6969
parser: '@typescript-eslint/parser',
7070
parserOptions: {
71-
ecmaFeatures: {
72-
jsx: true
73-
},
7471
ecmaVersion: 2020,
7572
sourceType: 'module'
7673
}
@@ -79,12 +76,14 @@ const TS_PARSER_FIELDS = {
7976
module.exports = {
8077
env: {
8178
es6: true,
82-
browser: true,
8379
node: true
8480
},
81+
parserOptions: {
82+
ecmaVersion: 2020
83+
},
8584
overrides: [
8685
{
87-
files: ['*.js', '*.jsx', '*.mjs'],
86+
files: ['*.js', '*.jsx', '*.mjs', '*.cjs'],
8887
...TS_PARSER_FIELDS,
8988
plugins: COMMON_CONFIG.plugins,
9089
extends: COMMON_CONFIG.extends,
@@ -124,7 +123,7 @@ module.exports = {
124123
WARN,
125124
{ assertionStyle: 'angle-bracket' }
126125
],
127-
'@typescript-eslint/no-explicit-any': ERROR,
126+
'@typescript-eslint/no-explicit-any': OFF,
128127
'@typescript-eslint/no-empty-function': OFF,
129128
'@typescript-eslint/no-use-before-define': OFF,
130129
'@typescript-eslint/no-this-alias': OFF,

0 commit comments

Comments
 (0)
Please sign in to comment.