Skip to content

Commit

Permalink
chore: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dziraf committed Mar 21, 2023
1 parent 69b79bf commit 91f6ad1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
env: {
browser: true,
es2020: true,
'cypress/globals': true,
},
extends: [
'airbnb',
Expand All @@ -27,16 +26,13 @@ module.exports = {
sourceType: 'module',
},
plugins: [
'react',
'cypress',
'@typescript-eslint',
],
rules: {
semi: ['error', 'never'],
'no-unused-vars': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'react/jsx-filename-extension': 'off',
indent: [
'error',
2,
Expand All @@ -45,11 +41,4 @@ module.exports = {
'object-curly-newline': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
overrides: [{
files: ['*.tsx'],
rules: {
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
},
}],
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"release": "semantic-release",
"build": "tsc",
"check:all": "yarn lint && yarn build && cd example-app && yarn build",
"lint": "eslint --ext='.ts,.js.tsx' './src/**/*' './example-app/**/*'"
"lint": "eslint --ext='.ts,.js' './src/**/*'"
},
"husky": {
"hooks": {
Expand Down
6 changes: 4 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ const addAdminJsRoutes = (admin: AdminJS, router: Router, app: Application): voi
const { assets } = AdminJSRouter

assets.forEach((asset) => app.use(
mount(admin.options.rootPath + asset.path,
serve(path.dirname(asset.src), { index: path.basename(asset.src) })),
mount(
admin.options.rootPath + asset.path,
serve(path.dirname(asset.src), { index: path.basename(asset.src) }),
),
))
}

Expand Down

0 comments on commit 91f6ad1

Please sign in to comment.