Skip to content

Commit

Permalink
fix: test-int eslint-config and eslint-config-otter
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-crouzet committed Nov 22, 2024
1 parent 433f3b7 commit 62acf90
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
10 changes: 9 additions & 1 deletion packages/@o3r/eslint-config-otter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@o3r/schematics": "workspace:^",
"@schematics/angular": "~18.2.0",
"@stylistic/eslint-plugin-ts": "^2.7.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/eslint-plugin": "^7.14.1 || ^8.0.0",
"@typescript-eslint/parser": "^7.14.1 || ^8.0.0",
"@typescript-eslint/utils": "^7.14.1 || ^8.0.0",
"eslint": ">=8.57.0 <9.15.0",
Expand All @@ -72,6 +72,14 @@
"eslint-plugin-unicorn": "^54.0.0 || ^55.0.0",
"typescript": "~5.5.4"
},
"generatorDependencies": {
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "~8.12.2",
"@typescript-eslint/utils": "~8.12.2",
"eslint": "~9.14.0",
"eslint-plugin-jsdoc": "~50.2.0",
"eslint-plugin-unicorn": "^55.0.0"
},
"devDependencies": {
"@angular-devkit/core": "~18.2.0",
"@angular-devkit/schematics": "~18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const __dirname = dirname(__filename);
parserOptions: {
tsconfigRootDir: __dirname,
project: [
<%= detectedTsConfigs.map((tsconfig) => ` '${tsconfig}'`).join(', ') %>
<%= detectedTsConfigs.map((tsconfig) => ` '${tsconfig}'`).join(',\n') %>
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ const o3rTemplate = require('@o3r/eslint-config/template');
linterOptions: {
reportUnusedDisableDirectives: 'error'
}
},
{
name: '<%= packageName %>/settings',
settings: {
'import/resolver': {
node: true,
typescript: {
project: [
<%= detectedTsConfigs.map((tsconfig) => ` '${tsconfig}'`).join(',\n') %>
]
}
}
}
}<% if (extension === 'mjs') { %>,
{
name: '<%= packageName %>/eslint-config',
Expand Down

0 comments on commit 62acf90

Please sign in to comment.