@swis/eslint-config
JavaScript Standard Style - ESLint Shareable Config for SWIS
Possible configs:
Howto
Run: npm install @swis/eslint-config eslint babel-eslint eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
In your .eslintrc.js
:
module.exports = {
extends: [
'@swis/eslint-config/[config]'
]
}
Add some rules to your package.json:
"lint:js": "cross-env NODE_ENV=production node node_modules/eslint/bin/eslint.js --ext=.js,.vue --format=node_modules/eslint-friendly-formatter resources/assets/js/ resources/assets/__tests__/",
"fix:js": "cross-env NODE_ENV=production node node_modules/eslint/bin/eslint.js --ext=.js,.vue --format=node_modules/eslint-friendly-formatter --fix resources/assets/js/ resources/assets/__tests__/"