-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: Bump eslint suite to v9 #1565
Changes from all commits
7a21f5f
0dc40da
afa2fd1
27f28a9
658127f
1f2eaac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import html from 'eslint-plugin-html'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
|
||
const compat = new FlatCompat({}); | ||
|
||
export default tseslint.config( | ||
{ | ||
files: ['**/*.{js,mjs,ts}'], | ||
ignores: [ | ||
'packages/*/docs/', | ||
'packages/*/lib/', | ||
'packages/*/node_modules/', | ||
'packages/*/types/', | ||
|
||
'packages/*/examples/**/*.{js,html}', | ||
|
||
'**/jest.config.js', | ||
], | ||
extends: [ | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
], | ||
rules: { | ||
curly: ['error', 'multi-line'], | ||
|
||
['no-console']: ['error', { | ||
allow: ['info', 'warn', 'error'], | ||
}], | ||
|
||
['@typescript-eslint/naming-convention']: ['error', { | ||
selector: 'default', | ||
format: ['camelCase'], | ||
}, { | ||
selector: 'variable', | ||
format: ['camelCase', 'UPPER_CASE'], | ||
leadingUnderscore: 'allow', | ||
}, { | ||
selector: 'typeLike', | ||
format: ['PascalCase'], | ||
}, { | ||
selector: 'memberLike', | ||
modifiers: ['public'], | ||
format: ['camelCase', 'UPPER_CASE'], | ||
leadingUnderscore: 'forbid', | ||
}, { | ||
selector: 'memberLike', | ||
modifiers: ['protected'], | ||
format: ['camelCase', 'UPPER_CASE'], | ||
leadingUnderscore: 'require', | ||
}, { | ||
selector: 'memberLike', | ||
modifiers: ['private'], | ||
format: ['camelCase', 'UPPER_CASE'], | ||
leadingUnderscore: 'require', | ||
}, { | ||
selector: 'enumMember', | ||
format: ['PascalCase'], | ||
}, { | ||
selector: 'import', | ||
format: ['camelCase', 'PascalCase', 'UPPER_CASE'], | ||
}], | ||
|
||
['@typescript-eslint/no-unused-vars']: ['warn', { | ||
args: 'none', | ||
}], | ||
|
||
['@typescript-eslint/no-explicit-any']: 'off', | ||
['@typescript-eslint/no-non-null-assertion']: ['off'], | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['packages/*/examples/**/*.{js,html}'], | ||
extends: [ | ||
eslint.configs.recommended, | ||
...compat.extends('mdcs'), | ||
], | ||
plugins: { | ||
html, | ||
}, | ||
rules: { | ||
['padded-blocks']: 'off', | ||
['no-unused-vars']: 'off', | ||
}, | ||
}, | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// it's required to make vscode-jest work properly... | ||
export default { | ||
transform: { | ||
'^.+\\.ts$': 'ts-jest', | ||
['^.+\\.ts$']: 'ts-jest', | ||
}, | ||
}; |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean