diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..8b2cdbe --- /dev/null +++ b/.eslintignore @@ -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 diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..08de8c7 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "@decidim" +} diff --git a/package.json b/package.json index fb39a63..416e199 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,9 @@ }, "browserslist": [ "extends @decidim/browserslist-config" - ] -} \ No newline at end of file + ], + "scripts": { + "lint": "eslint -c .eslintrc.json --ext .js app/packs/src", + "lint-fix": "eslint -c .eslintrc.json --ext .js app/packs/src --fix" + } +}