Skip to content

Commit

Permalink
chore(eslint): use babel resolver instead of webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Jun 20, 2024
1 parent 048eaec commit 4c98e9e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 134 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ module.exports = {
},
settings: {
'import/resolver': {
webpack: {
config: './webpack.config.cjs',
},
'babel-module': {},
},
},
env: {
Expand Down
144 changes: 18 additions & 126 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"cross-env": "^7.0.3",
"eslint": "^8.55.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-import-resolver-babel-module": "^5.3.2",
"eslint-plugin-import": "^2.29.0",
"eslint-webpack-plugin": "^4.0.1",
"github-url-from-git": "^1.5.0",
Expand Down
4 changes: 0 additions & 4 deletions webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const babelConf = {

const include = [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'test'),
path.resolve(__dirname, 'utils'),
];

Expand All @@ -46,9 +45,6 @@ module.exports = () => {
return {
mode,
context: path.resolve(__dirname),
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
},
entry: {
itowns: [
'core-js',
Expand Down

0 comments on commit 4c98e9e

Please sign in to comment.