19 lines
529 B
JavaScript
19 lines
529 B
JavaScript
const eslintConfigPrettier = require('eslint-config-prettier');
|
|
const eslintPluginPrettier = require('./eslint-plugin-prettier');
|
|
|
|
// Merge the contents of eslint-config-prettier into config
|
|
module.exports = {
|
|
...eslintConfigPrettier,
|
|
name: 'eslint-plugin-prettier/recommended',
|
|
plugins: {
|
|
...eslintConfigPrettier.plugins,
|
|
prettier: eslintPluginPrettier,
|
|
},
|
|
rules: {
|
|
...eslintConfigPrettier.rules,
|
|
'prettier/prettier': 'error',
|
|
'arrow-body-style': 'off',
|
|
'prefer-arrow-callback': 'off',
|
|
},
|
|
};
|