I'm trying to overwrite Prettier plugin rules without success. I want to allow whitespace in JavaScript files like this:
import React, { Component } from 'react';
import { View } from 'react-native';
import { Provider, connect } from 'react-redux';
The .eslint file I need to work on:
{
"plugins": ["prettier"],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"tabWidth": 2,
"printWidth": 130
}
]
},
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["prettier"]
}
I already tried eslint key spacing rules but the lint is coming from prettier plugin. I don't find the rule for whitespace characters in the Prettier documentation.