@appliedminds/eslint-config

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i @appliedminds/eslint-config

Weekly Downloads

117

Version

2.0.1

License

MIT

Unpacked Size

7.39 kB

Total Files

5

Last publish

Collaborators

  • ami-software
  • ivojanssen