@praha/eslint-config-style
Version:
31 lines (30 loc) • 923 B
JavaScript
import eslint_plugin_default from "@stylistic/eslint-plugin";
const stylistic = ()=>[
{
name: 'stylistic/recommended',
...eslint_plugin_default.configs.customize({
indent: 2,
quotes: 'single',
semi: true,
jsx: true,
arrowParens: true,
braceStyle: '1tbs',
blockSpacing: true,
quoteProps: 'consistent-as-needed',
commaDangle: 'always-multiline'
})
},
{
name: 'praha/stylistic/rules',
rules: {
'@stylistic/jsx-one-expression-per-line': [
'error',
{
allow: 'single-line'
}
],
'@stylistic/multiline-ternary': 'off'
}
}
];
export { stylistic };