Skip to content

Commit

Permalink
Merge pull request #19 from bcgov-nr/feat/configSave
Browse files Browse the repository at this point in the history
feat: config save and more
  • Loading branch information
andrwils authored Feb 2, 2024
2 parents 72e28ef + 5ada2e6 commit e9a4798
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['generator-nr-maven-build'],
tsconfigRootDir : __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
2 changes: 2 additions & 0 deletions generator-nr-maven-build/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,7 @@ export default class extends Generator {
{ projectName: this.props.projectName, serviceName: this.props.serviceName }
);
}

this.config.save();
}
}

0 comments on commit e9a4798

Please sign in to comment.