Have ideas to improve npm?Join in the discussion! »

@swis/eslint-config

1.0.0 • Public • Published

@swis/eslint-config

JavaScript Standard Style - ESLint Shareable Config for SWIS

Possible configs:

  • standard
  • vue

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__/"

Install

npm i @swis/eslint-config

DownloadsWeekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

6.98 kB

Total Files

6

Last publish

Collaborators

  • avatar