Skip to content

Commit 96897b0

Browse files
committed
chore(prettier-config): remove configs and ignore files from workspaces
1 parent e179314 commit 96897b0

File tree

122 files changed

+14
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+14
-214
lines changed

.husky/pre-commit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
# listings staged files only
55
fileList=$(git diff --diff-filter=AM --cached --name-only)
66

7-
npm run precommit $fileList
7+
if [ -n "$fileList" ]; then
8+
echo "Prettifying staged files..."
9+
npx prettier-compass --write --ignore-unknown $fileList
10+
git add $fileList
11+
fi
File renamed without changes.

configs/eslint-plugin-compass/.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

configs/eslint-plugin-compass/.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

configs/mocha-config-compass/.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.nyc_output
2+
.nyc-output
23
dist
34
coverage

configs/prettier-config-compass/.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
#!/usr/bin/env node
22
'use strict';
33
const path = require('path');
4+
const fs = require('fs');
45
if (process.argv.some((arg) => /^--(no-)?config/.test(arg))) {
56
throw new Error('--config option is not allowed');
67
}
78
process.argv.push('--config', path.resolve(__dirname, '..', 'index.js'));
9+
if (!fs.existsSync(path.resolve(process.cwd(), '.prettierignore'))) {
10+
process.argv.push(
11+
'--ignore-path',
12+
path.resolve(__dirname, '..', '.prettierignore-default')
13+
);
14+
}
815
require('prettier/bin-prettier.js');

configs/testing-library-compass/.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

configs/testing-library-compass/.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)