Skip to content

Commit

Permalink
Lint JS files with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Apr 18, 2024
1 parent 4d796c3 commit 9f2552e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**/*{.,-}min.js
decidim-*/vendor/**/*.js
**/node_modules/**
bundle.js
karma.conf.js
webpack.config.js
webpack.config.babel.js
entry.test.js
entry.js
*_manifest.js
coverage
vendor/bundle
**/vendor/**/*.js
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@decidim"
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
},
"browserslist": [
"extends @decidim/browserslist-config"
]
}
],
"scripts": {
"lint": "eslint -c .eslintrc.json --ext .js app/packs/src",
"lint-fix": "eslint -c .eslintrc.json --ext .js app/packs/src --fix"
}
}

0 comments on commit 9f2552e

Please sign in to comment.