diff --git a/bin/lint b/bin/lint index 242c713..a8f2c7f 100755 --- a/bin/lint +++ b/bin/lint @@ -22,7 +22,7 @@ done if [[ -n "$INIT$UPDATE" ]]; then echo "[@diplodoc/lint] Add initial lint configs" - cp -r "$SRCDIR/scaffolding/" . + cp -r "$SRCDIR/scaffolding/" ./ echo "[@diplodoc/lint] Extend .ignore configuration" node "$SRCDIR/scripts/modify-ignore.js" diff --git a/eslint-common-config.js b/eslint-common-config.js index 1744d83..fb74ebd 100644 --- a/eslint-common-config.js +++ b/eslint-common-config.js @@ -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, },