UNPKG

632 BJavaScriptView Raw
1// @remove-on-eject-begin
2/**
3 * Copyright (c) 2018-present, Merchant Labs, LLC.
4 *
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8// @remove-on-eject-end
9'use strict';
10
11const eslintConfig = require.resolve('eslint-config-react-app');
12const stylelintConfig = require.resolve('./stylelint.config');
13
14module.exports = {
15 "src/**/*.{js,jsx,json,css}": [
16 "prettier --single-quote --no-semi --write",
17 `stylelint 'src/**/*.js' --config ${stylelintConfig}`,
18 `eslint --ext .js,.jsx 'src/**/*.js' --config ${eslintConfig}`,
19 "git add"
20 ]
21};