Skip to content

Commit

Permalink
fix(vue): ensure standalone has proper lint rule (nrwl#19505)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Oct 9, 2023
1 parent 4aa1201 commit c38bd37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/vue/src/utils/add-linting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
addExtendsToLintConfig,
isEslintConfigSupported,
} from '@nx/linter/src/generators/utils/eslint-file';
import { mapLintPattern } from '@nx/linter/src/generators/lint-project/lint-project';

export async function addLinting(
host: Tree,
Expand All @@ -33,7 +34,13 @@ export async function addLinting(
joinPathFragments(options.projectRoot, `tsconfig.${projectType}.json`),
],
unitTestRunner: options.unitTestRunner,
eslintFilePatterns: [`${options.projectRoot}/**/*.{ts,tsx,js,jsx,vue}`],
eslintFilePatterns: [
mapLintPattern(
options.projectRoot,
'{ts,tsx,js,jsx,vue}',
options.rootProject
),
],
skipFormat: true,
setParserOptionsProject: options.setParserOptionsProject,
rootProject: options.rootProject,
Expand Down

0 comments on commit c38bd37

Please sign in to comment.