4.2.0 • Published 7 months ago

@studiometa/eslint-config v4.2.0

Weekly downloads
28
License
MIT
Repository
github
Last release
7 months ago

@studiometa/eslint-config

NPM Version Downloads Size Dependency Status

Set of ESLint configurations for multiple usages.

Installation

Install the package with NPM along ESLint and Prettier:

npm install --save-dev eslint prettier @studiometa/eslint-config

Usage

To use the basic configuration, you just have to install this package and reference it in your ESLint configuration file:

import { defineConfig, js, prettier, globals } from '@studiometa/eslint-config';

export default defineConfig(js, prettier, {
  files: ['./src/js/**/*.js'],
  languageOptions: {
    globals: {
      ...globals.browser,
    },
  },
});

Make sure to always place the prettier configuration last to avoid rules conflicts.

Configurations for Vue 2, Vue 3 and TypeScript are also available:

Vue 3

import { defineConfig, js, vue, prettier, globals } from '@studiometa/eslint-config';

export default defineConfig(js, vue, prettier, {
  files: ['./src/js/**/*.{js,vue}'],
  languageOptions: {
    globals: {
      ...globals.browser,
    },
  },
});

TypeScript

import { defineConfig, ts, prettier, globals } from '@studiometa/eslint-config';

export default defineConfig(ts, prettier, {
  files: ['./src/js/**/*.ts'],
  languageOptions: {
    globals: {
      ...globals.browser,
    },
  },
});

Vue 3 × TypeScript

import { defineConfig, ts, vueTs, prettier, globals } from '@studiometa/eslint-config';

export default defineConfig(ts, vueTs, prettier, {
  files: ['./src/js/**/*.{ts,vue}'],
  languageOptions: {
    globals: {
      ...globals.browser,
    },
  },
});
4.2.0

7 months ago

4.1.0

12 months ago

4.0.1

1 year ago

4.0.0

1 year ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

3.0.0-beta.1

3 years ago

3.0.0-beta.0

4 years ago

3.0.0-beta.3

3 years ago

3.0.0-beta.2

3 years ago

3.0.0-alpha.1

4 years ago

3.0.0-alpha.0

4 years ago

3.0.0-alpha.2

4 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.0-beta.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-beta.1

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago