Skip to content

Commit 812668b

Browse files
committed
fix(lunchbot): adjusting the restaurant visit calculator
1 parent 3b04881 commit 812668b

File tree

12 files changed

+501
-70
lines changed

12 files changed

+501
-70
lines changed

.eslintrc.json

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/deps.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const project = new awscdk.AwsCdkTypeScriptApp({
3131
],
3232
devDeps: [
3333
'eslint-plugin-functional@6.6.3',
34+
'eslint-plugin-unicorn',
3435
'commitizen',
3536
'cz-conventional-changelog',
3637
'semantic-release',
@@ -75,9 +76,10 @@ project.tasks.addTask('commit', {
7576
exec: 'npx git-cz',
7677
})
7778

78-
project?.eslint?.addExtends('plugin:functional/recommended')
79+
project.eslint?.addPlugins('unicorn')
80+
project.eslint?.addExtends('plugin:functional/recommended')
7981

80-
project?.eslint?.addRules({
82+
project.eslint?.addRules({
8183
'functional/no-expression-statements': 'off',
8284
'functional/no-return-void': 'off',
8385
'functional/no-classes': 'off',
@@ -87,6 +89,17 @@ project?.eslint?.addRules({
8789
enforcement: 'ReadonlyDeep',
8890
},
8991
],
92+
'unicorn/better-regex': 'error',
93+
'unicorn/consistent-empty-array-spread': 'error',
94+
'unicorn/catch-error-name': 'error',
95+
'unicorn/error-message': 'error',
96+
'unicorn/no-lonely-if': 'error',
97+
'unicorn/no-negation-in-equality-check': 'error',
98+
'unicorn/no-unnecessary-await': 'error',
99+
'unicorn/no-useless-undefined': 'error',
100+
'unicorn/prefer-array-flat-map': 'error',
101+
'unicorn/prefer-json-parse-buffer': 'error',
102+
'unicorn/prefer-object-from-entries': 'error',
90103
})
91104

92105
const workflow = project.github?.addWorkflow('release')

0 commit comments

Comments
 (0)