-
Notifications
You must be signed in to change notification settings - Fork 0
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
flat config #637
Comments
久々にflat config試そうとしたが全然できん |
prettierはいける // @ts-check
import { defineFlatConfig } from 'eslint-define-config';
import eslintConfigPrettier from 'eslint-config-prettier';
/**
* eslint-config-prettier
* {@link https://www.npmjs.com/package/eslint-config-prettier}
*/
export default defineFlatConfig([eslintConfigPrettier]); |
nextjsは無理 import { defineFlatConfig } from 'eslint-define-config';
import next from '@next/eslint-plugin-next';
/**
* FIXME: @ts-checkすると死ぬ
*
* @next/eslint-plugin-next
* {@link https://www.npmjs.com/package/@next/eslint-plugin-next}
*/
export default defineFlatConfig([
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
'@next/next': next,
},
rules: {
...next.configs.recommended.rules,
...next.configs['core-web-vitals'].rules,
},
},
]); |
tailwindはdefineFlatConfigではうまくいかなかったけど // @ts-check
import tailwind from 'eslint-plugin-tailwindcss';
/**
* eslint-plugin-tailwindcss
* {@link https://www.npmjs.com/package/eslint-plugin-tailwindcss}
*
* @type {import("eslint").Linter.FlatConfig[]}
*/
export default [...tailwind.configs['flat/recommended']]; |
@tanstack/eslint-plugin-queryだめ |
reactもダメだな |
延期 |
--ignore-path廃止されたから |
このcliで作ることもできるのかー! |
Nextjsいけるかも |
こっちのreactのeslintも良さそう |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作業
公式 Flat Config support 表
eslint/eslint#18093
対応パッケージ
eslint-config-next
in flat config vercel/next.js#58411require-description
- Allow comment above eslint-community/eslint-plugin-eslint-comments#190- https://github.com/un-ts/eslint-plugin-import-x
案
#46
The text was updated successfully, but these errors were encountered: