@appliedminds/eslint-config
v2.0.2
Published
Applied Minds' ESLint Config
Downloads
391
Readme
Applied Minds ESLint Config
Linting configuration used by Applied Minds for all Node.js/Javascript projects.
Includes a configuration for usage with Vue.js.
Installation
npm install @appliedminds/eslint-config --save-dev
Usage
Node Projects
Add the following to your eslint.config.js
:
import jsConfig from '@appliedminds/eslint-config'
export default [
...jsConfig,
{
rules: {
// your overrides, etc
}
}
]
The Applied Minds linting configuration generally follows the Standard Javascript style with main exception:
- Readability: Use 4-space indents
Vue Projects
Also install eslint-plugin-vue
:
npm install eslint-plugin-vue --save-dev
Then add the following to your eslint.config.js
:
import jsConfig from '@appliedminds/eslint-config'
import vueConfig from '@appliedminds/eslint-config/vue.js'
export default [
...jsConfig,
...vueConfig,
// overrides, etc
]
The Applied Minds Vue linting configuration follows the Vue Strongly Recommended config style, but modifies the following:
- Readability: Use 4-space indents
- Readability: Allow up to 3 attributes per line to more effectively use horizontal space and prevent excessive line breaks
- Unnecessary: Remove multi-word component name enforcement. Well-named single-word components should be allowed.
License
MIT