Skip to content

Commit

Permalink
Merge pull request #138 from bento-platform/chore/linting
Browse files Browse the repository at this point in the history
chore: integrate eslint and prettier
  • Loading branch information
davidlougheed authored Dec 22, 2023
2 parents f3ef164 + ea46a33 commit 7cec2c7
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
node: true,
},
plugins: ['react', '@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
rules: {
'react/prop-types': 'off', // disable prop-types since we're using TypeScript
'@typescript-eslint/explicit-module-boundary-types': 'off', // allow implicit return types
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ jobs:
- uses: actions/checkout@v4
- name: Install modules
run: npm install
- name: Run eslint
- name: Run eslint + prettier plugin
run: npm run lint
- name: Run prettier
run: npx prettier --check src/js
Loading

0 comments on commit 7cec2c7

Please sign in to comment.