-
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
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7a21f5f
deps: Bump eslint to v9 + migrate to flat config
0b5vr 0dc40da
refactor: fix a lint issue
0b5vr afa2fd1
deps: remove eslint related deps that are no longer used
0b5vr 27f28a9
Merge branch 'dev' into eslint-v9
0b5vr 658127f
chore: remove `.eslintrc.json` that replaced by `eslint.config.mjs`
0b5vr 1f2eaac
refactor: fix eslint issues in `eslint.config.mjs` and `jest.config.mjs`
0b5vr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,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', | ||
}, | ||
}, | ||
); |
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
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/three-vrm-materials-hdr-emissive-multiplier/examples/.eslintrc
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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