UNPKG

546 BJavaScriptView Raw
1const eslintConfigPrettier = require("eslint-config-prettier");
2
3// Note that we are not extending from the recommended config.
4// Because that would be an overkill:
5// - since we are not formatting, the plugin isn't needed;
6// - and without the `prettier/prettier` rule, we don't have to disable the conflicting `arrow-body-style` and `prefer-arrow-callback` rules.
7
8/** @type {import('eslint').Linter.Config} */
9module.exports = {
10 ...eslintConfigPrettier,
11 rules: {
12 ...eslintConfigPrettier.rules,
13 "prettier/prettier": "off",
14 },
15};