-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to ESLint v9 and update deps
- Migrate to ESLint flat config - Switch from `eslint-config-standard` to `neostandard` as the former does not support ESLint v9 and seems to be unmaintained. - Conform to the rules of the ESLint plugins/configs. - Update all dependencies to their latest versions.
- Loading branch information
1 parent
3cb5255
commit b982dae
Showing
24 changed files
with
74 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,5 +90,6 @@ export function handler(argv) { | |
if (status === false) { | ||
throw new Error(IGNORE); | ||
} | ||
return undefined; | ||
})); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import globals from 'globals'; | ||
import pluginJs from '@eslint/js'; | ||
import neostandard from 'neostandard'; | ||
import nodePlugin from 'eslint-plugin-n'; | ||
import pluginPromise from 'eslint-plugin-promise'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
|
||
export default [ | ||
pluginJs.configs.recommended, | ||
...neostandard(), | ||
nodePlugin.configs['flat/recommended'], | ||
pluginPromise.configs['flat/recommended'], | ||
importPlugin.flatConfigs.recommended, | ||
{ | ||
ignores: [ | ||
'**/.git', | ||
'**/.nyc_output', | ||
'coverage', | ||
'node_modules', | ||
'lib/wpt/templates', | ||
], | ||
languageOptions: { | ||
globals: globals.node, | ||
sourceType: 'module', | ||
ecmaVersion: 'latest', | ||
}, | ||
rules: { | ||
'@stylistic/semi': ['error', 'always'], | ||
'@stylistic/space-before-function-paren': ['error', 'never'], | ||
'@stylistic/no-multi-spaces': ['error', { ignoreEOLComments: true }], | ||
camelcase: 'off', | ||
'@stylistic/max-len': [ | ||
2, | ||
100, | ||
4, | ||
{ ignoreRegExpLiterals: true, ignoreUrls: true }, | ||
], | ||
'@stylistic/object-property-newline': 'off', | ||
'promise/always-return': ['error', { ignoreLastCallback: true }], | ||
'n/no-process-exit': 'off', | ||
'n/no-unsupported-features/node-builtins': 'off', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,8 @@ export class TestBuild extends Job { | |
return result; | ||
} | ||
} | ||
|
||
return undefined; | ||
} | ||
|
||
get commit() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters