Skip to content

wearedestination/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Destination ESLint Config

Defines a set of rules used by ESLint to enforce our JS/TS coding standards.

Note that version 2 of this package uses the new ESLint config format and requires ESLint v9.0.0 or later.

Installation

bun add @destination/eslint-config eslint --dev

Usage

Your eslint.config.js file should look something like this:

export { default } from "@destination/eslint-config-vue";

Or, if you need to specify additional configuration:

import { defineConfig, globalIgnores } from "eslint/config";
import destinationEsLintConfigVue from "@destination/eslint-config-vue";

export default defineConfig([
  globalIgnores([
    "assets/some-ignored-file.ts",
    "assets/another-ignored-file.ts",
  ]),
  destinationEsLintConfigVue,
  {
    languageOptions: {
      globals: {
        google: "readonly",
      },
    },
  },
]);

Run eslint as normal e.g.:

bun run eslint 'assets/**/*.{js,ts}'

License

Released under the MIT license

About

Destination ESLint Config

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors