Yuri
Yuri
NNuxt
Created by Yuri on 11/9/2024 in #❓・help
eslint ignore
Correct variant is:
// @ts-check
// @ts-ignore
import tailwind from 'eslint-plugin-tailwindcss'
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
{
ignores: ['android/**', 'ios/**'],
},
...tailwind.configs['flat/recommended'],
)
// @ts-check
// @ts-ignore
import tailwind from 'eslint-plugin-tailwindcss'
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
{
ignores: ['android/**', 'ios/**'],
},
...tailwind.configs['flat/recommended'],
)
7 replies
NNuxt
Created by Yuri on 11/9/2024 in #❓・help
eslint ignore
1- Object literal may only specify known properties, and 'ignore' does not exist in type 'Partial<ModuleOptions>'.ts(2353) 2 - not working 3 - incorrect code. I receive error:
Oops! Something went wrong! :(

ESLint: 9.10.0

A config object is using the "ignorePatterns" key, which is not supported in flat config system.

Flat config uses "ignores" to specify files to ignore.
Oops! Something went wrong! :(

ESLint: 9.10.0

A config object is using the "ignorePatterns" key, which is not supported in flat config system.

Flat config uses "ignores" to specify files to ignore.
7 replies
NNuxt
Created by Yuri on 11/3/2024 in #❓・help
Eslint Ignore
The correct variant is: import tailwind from 'eslint-plugin-tailwindcss'; import { defineFlatConfig, concat } from 'eslint-flat-config-utils'; export default concat( defineFlatConfig({ ignores: ['./android/**'], }), tailwind.configs['flat/recommended'] );
5 replies
NNuxt
Created by Yuri on 6/29/2023 in #❓・help
Different tailwind config for desktop and mobile version
Yes, I just use this module. The problem is that tailwind connects one config for two versions. I would like to make it different for desktop and mobile.
10 replies
NNuxt
Created by Yuri on 12/29/2022 in #❓・help
Different components for different types of devices
Now I do just that. But perhaps there is a more correct option, by analogy with the suffix in the component file name (.client or .server) or the prefix in the component name (Lazy for async component).
5 replies