Skip to content

Commit

Permalink
fix eslint configs to use cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Nov 11, 2021
1 parent 7c38011 commit 463ade8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion eslint-config-base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:import/typescript"
Expand Down
2 changes: 1 addition & 1 deletion eslint-config-lodash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
plugins: [
"lodash"
],
Expand Down
2 changes: 1 addition & 1 deletion eslint-config-react-a11y.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
extends: [
"./eslint-config-react.js"
],
Expand Down
2 changes: 1 addition & 1 deletion eslint-config-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const linkComponents = [
{"name": "NavLink", "linkAttribute": "to"}
]

export default {
module.exports = {
extends: [
'plugin:react-hooks/recommended',
'./eslint-config-base.js'
Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import config from './eslint-config-base';

export default config;
module.exports = require('./eslint-config-base');
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@
},
"engines": {
"node": ">=12"
},
"type": "module"
}
}

0 comments on commit 463ade8

Please sign in to comment.