Skip to content

Commit

Permalink
build: add ESLint config and update dependencies in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocarmo committed Jul 20, 2024
1 parent 27d3e6f commit 4a6cb30
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 924 deletions.
30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// @ts-check

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
ignores: [
'dist',
'node_modules',
'test-functional',
'babel.config.js',
'eslint.config.mjs',
'jest.config.js',
'webpack.config.js',
],
},
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
)
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@
"babel-loader": "^9.1.3",
"core-js": "^3.37.1",
"eslint": "^9.7.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"husky": "^9.1.1",
"jest": "^29.7.0",
"lint-staged": "^15.2.7",
Expand Down
Loading

0 comments on commit 4a6cb30

Please sign in to comment.