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 | ;
|
10 |
|
11 | const eslintConfig = require.resolve('eslint-config-react-app');
|
12 | const stylelintConfig = require.resolve('./stylelint.config');
|
13 |
|
14 | module.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 | };
|