-
Hi @antfu, Thank you very much for this project, it offers a lot of useful defaults and has made my old ESLint configurations almost completely superfluous. import antfu from '@antfu/eslint-config';
export default antfu({
ignores: [
'*.svg',
],
stylistic: {
semi: true,
},
}, {
rules: {
'curly': 'off',
'regexp/strict': 'off',
'style/brace-style': ['error', '1tbs'],
'style/max-len': ['warn', {code: 120}],
'style/object-curly-spacing': ['error', 'never'],
'style/operator-linebreak': ['error', 'after'],
},
}, {
files: ['**/*.md'],
rules: {
'no-trailing-spaces': 'off',
'style/max-len': 'off',
},
}); ESLint always removes the two spaces at the end of lines that are used to create a line break in MD files. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It's I agree that it should be disabled for Markdown though |
Beta Was this translation helpful? Give feedback.
-
Requested eslint-stylistic/eslint-stylistic#397 |
Beta Was this translation helpful? Give feedback.
🤦♂obviously, thank you very much for the correction @Dimava