-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: switch to shared eslint config
- Loading branch information
1 parent
e13fbd3
commit 2f88e5b
Showing
53 changed files
with
4,773 additions
and
4,800 deletions.
There are no files selected for viewing
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,17 +1,76 @@ | ||
require('@ayuhito/eslint-config/patch'); | ||
|
||
module.exports = { | ||
extends: ['@ayuhito/eslint-config/profile/node'], | ||
extends: [ '@martin-kolarik/eslint-config/typescript' ], | ||
parserOptions: { | ||
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true, | ||
project: 'packages/*/tsconfig.json', | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
'unicorn/no-null': 'off', | ||
'unicorn/prefer-module': 'off', | ||
'unicorn/filename-case': 'off', | ||
'unicorn/consistent-destructuring': 'off', | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**', | ||
], | ||
rules: { | ||
'camelcase': 'off', | ||
'n/no-extraneous-import': [ | ||
'error', | ||
{ allowModules: [ 'msw', 'vitest' ] }, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'**/tsconfig.json', | ||
], | ||
rules: { | ||
'jsonc/no-comments': 'off', | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
'**/tests/**', | ||
], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'no-restricted-properties': [ | ||
'error', | ||
{ | ||
object: 'sinon', | ||
property: 'spy', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'stub', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'mock', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'fake', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'restore', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'reset', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'resetHistory', | ||
}, | ||
{ | ||
object: 'sinon', | ||
property: 'resetBehavior', | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
}; |
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,7 +1,6 @@ | ||
{ | ||
"name": "globalping-chat-bots", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"start": "pnpm --filter slack-bot start", | ||
"dev": "pnpm --filter slack-bot start-pretty", | ||
|
@@ -21,9 +20,8 @@ | |
"typescript": "^4.9.5" | ||
}, | ||
"devDependencies": { | ||
"@ayuhito/eslint-config": "^0.2.4", | ||
"eslint": "^8.38.0", | ||
"prettier": "^2.8.7", | ||
"@martin-kolarik/eslint-config": "^7.3.2", | ||
"eslint": "^8.57.1", | ||
"vitest": "^2.1.2" | ||
} | ||
} |
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
Oops, something went wrong.