2.0.2 • Published 8 months ago

@appliedminds/eslint-config v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

2.0.2

8 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago