-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
173 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use strict'; | ||
|
||
const HapiPlugin = require('@hapi/eslint-plugin'); | ||
|
||
module.exports = [ | ||
{ | ||
ignores: [ | ||
'node_modules/', | ||
'test_runner/', | ||
'test/coverage/', | ||
'test/cli/', | ||
'test/cli_*/', | ||
'test/lint/', | ||
'test/override/', | ||
'test/plan/', | ||
'test/transform/' | ||
] | ||
}, | ||
...HapiPlugin.configs.module | ||
]; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'plugin:@hapi/module' | ||
}; | ||
const HapiPlugin = require('@hapi/eslint-plugin'); | ||
|
||
module.exports = [...HapiPlugin.configs.module]; |
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
8 changes: 5 additions & 3 deletions
8
test/coverage/test-folder/.eslintrc.js → test/coverage/test-folder/eslint.config.js
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
'use strict'; | ||
|
||
const HapiPlugin = require('@hapi/eslint-plugin'); | ||
|
||
// this is a deliberately unused function that will reduce coverage percentage | ||
// if it ends up getting instrumented, giving us something to assert against | ||
const unusedMethod = () => { | ||
console.log('hello world') | ||
} | ||
|
||
module.exports = { | ||
extends: 'plugin:@hapi/module' | ||
} | ||
module.exports = [...HapiPlugin.configs.module] |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use strict'; | ||
|
||
const HapiPlugin = require('@hapi/eslint-plugin'); | ||
|
||
module.exports = [ | ||
...HapiPlugin.configs.module, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
sourceType: 'module' | ||
} | ||
} | ||
}, | ||
{ | ||
files: ['*.cjs'], | ||
languageOptions: { | ||
parserOptions: { | ||
sourceType: 'script' | ||
} | ||
} | ||
} | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.