-
Notifications
You must be signed in to change notification settings - Fork 44
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
Sorting logic #188
Comments
Can replicate this. Doesn't seem to make any sense. |
Are you using v2 of this extension? The version on the marketplace doesn't have the latest changes so that may be where the issue comes from. |
Unsure, I assumed marketplace was updated. Can it be updated? Otherwise I need to figure out how to get the v2. |
It can not be updated since the author is not around anymore. That's why @praveenperera published v2 on the issue I shared. I personally started using |
Cool, let me try that. Thank you for the help! |
Do you mind sharing how you use |
@bilogic here's the contents of my const { join } = require('path')
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-react'],
},
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:tailwindcss/recommended',
],
plugins: [
'tailwindcss',
],
rules: {
'arrow-parens': ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'no-cond-assign': ['error', 'except-parens'],
'quote-props': ['warn', 'consistent-as-needed'],
'no-unused-expressions': 'off',
// 'babel/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'vue/attribute-hyphenation': [0],
'vue/singleline-html-element-content-newline': [0],
'vue/max-attributes-per-line': [0],
'tailwindcss/no-custom-classname': ['warn', {
config: join(process.cwd(), 'packages/frontend/tailwind.config.js'),
cssFiles: ['**/*.css', '**/*.pcss', '!**/node_modules'],
whitelist: ['swiper-(container|wrapper|slide)'],
prependCustom: true,
}],
},
ignorePatterns: [
'dist',
'storybook-static',
'storybook',
],
} On this project I'm using |
Pardon me, but I did tried googling and did not get far, I'm on W10
Thank you |
@bilogic maybe try creating {
"editor.formatOnSave": false,
"vetur.validation.template": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
} This should disable some of vscode formatting things and pass that responsability to Here's the other related eslint deps my project uses "@babel/core": "7.18.6",
"@babel/eslint-parser": "7.18.2",
"@babel/preset-react": "7.18.6",
"@nuxtjs/eslint-config": "10.0.0",
"@nuxtjs/eslint-module": "3.1.0",
"eslint": "8.19.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-nuxt": "3.2.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-tailwindcss": "1.17.2",
"eslint-plugin-vue": "9.2.0", Keep in mind, using the exact config I shared without having the dependencies installed might be breaking eslint execution on your machine. Try to remove everything you don't need and see if you can get it to work like that. Here's what I would leave if I wasnt' using all the other stuff for my project: const { join } = require('path')
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'plugin:tailwindcss/recommended',
],
plugins: [
'tailwindcss',
],
rules: {
'tailwindcss/no-custom-classname': ['warn', {
config: join(process.cwd(), 'packages/frontend/tailwind.config.js'),
cssFiles: ['**/*.css', '**/*.pcss', '!**/node_modules'],
whitelist: ['swiper-(container|wrapper|slide)'],
prependCustom: true,
}],
},
} |
Hi,
The sorting logic seems inconsistent, making things hard to read.
It's not immediately obvious there was only 1 tiny change.
Bug? Or by design? Thank you.
The text was updated successfully, but these errors were encountered: