Skip to content

Commit

Permalink
Merge pull request #151 from balena-io-modules/bump-lint
Browse files Browse the repository at this point in the history
Bump lint
  • Loading branch information
flowzone-app[bot] authored Nov 20, 2024
2 parents 8f1376a + c913fcb commit f5784d0
Show file tree
Hide file tree
Showing 62 changed files with 3,348 additions and 1,625 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.{ts,tsx}": ["balena-lint --fix -f tslint.json"]
"*.{ts,tsx}": ["balena-lint --fix"]
}
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { FlatCompat } = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
});
module.exports = [
// eslint-disable-next-line @typescript-eslint/no-require-imports
...require('@balena/lint/config/eslint.config'),
// See: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md#when-not-to-use-it
...compat.config({ extends: 'plugin:react/jsx-runtime' }),
];
Loading

0 comments on commit f5784d0

Please sign in to comment.