How to use the @umijs/fabric.prettier function in @umijs/fabric

To help you get started, we’ve selected a few @umijs/fabric examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / apisix-dashboard / frontend / .prettierrc.js View on Github external
* The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.prettier,
};
github chenshuai2144 / umi-remove-locale / src / index.js View on Github external
const prettierCode = (code, filepath) =>
  prettier.format(code, {
    ...fabric.prettier,
    filepath,
  });
github oam-dev / kubevela / references / dashboard / .prettierrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.prettier,
};
github umijs / qiankun / .prettierrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.prettier,
  printWidth: 120,
};
github ant-design / ant-design-pro-cli / src / i18n / index.js View on Github external
const prettierCode = (code, filepath) =>
  prettier.format(code, {
    ...fabric.prettier,
    filepath,
  });

@umijs/fabric

A collection of configuration files containing prettier, eslint, stylelint

ISC
Latest version published 11 months ago

Package Health Score

61 / 100
Full package analysis