Skip to content

Commit

Permalink
fix: Fix Windows specific
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Aug 11, 2024
1 parent 41a92d2 commit b82bdff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/lint
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ done

if [[ -n "$INIT$UPDATE" ]]; then
echo "[@diplodoc/lint] Add initial lint configs"
cp -r "$SRCDIR/scaffolding/" .
cp -a "$SRCDIR/scaffolding/." .

echo "[@diplodoc/lint] Extend .ignore configuration"
node "$SRCDIR/scripts/modify-ignore.js"
Expand Down
7 changes: 6 additions & 1 deletion eslint-common-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ module.exports = {
process.env.npm_command && '@gravity-ui/eslint-config/prettier',
].filter(Boolean),
overrides: [{
files: ['.eslintrc.js'],
files: [
'.eslintrc.js',
'.prettierrc.js',
'.stylelintrc.js',
'.lintstagedrc.js',
],
env: {
node: true,
},
Expand Down
2 changes: 1 addition & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e

npm i @diplodoc/lint
npx @diplodoc/lint init
npm run lint
npm run lint:fix

0 comments on commit b82bdff

Please sign in to comment.