@destination/eslint-config
v2.0.2
Published
Default ESLint config used by Destination
Downloads
190
Readme
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 --devUsage
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
