Registry / testing / eslint-config-firstvet

eslint-config-firstvet

JSON →
library9.0.1jsnpmunverified

FirstVet's shared ESLint configuration (v9.0.1) combining Airbnb base, Prettier, TypeScript, Vue, and Tailwind CSS rules. Extends plugins for import resolution, JSON formatting, and Vue parsing. Released as needed by FirstVet development. Differentiators: opinionated all-in-one config for FirstVet projects, includes autoformatting via ESLint, and requires peer dependencies via install-peerdeps.

npm install eslint-config-firstvet
INSTALL
IMPORT
SIG · ESLINT-CONFIG-FIRS
E
eslint-config-firstvet
testingjavascriptv9.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

firstvet
extends: ['firstvet']
extends: ['eslint-config-firstvet']
Use the short name 'firstvet' in eslintrc; the full npm package name also works but is redundant.
firstvet/vue
extends: ['firstvet/vue']
extends: ['firstvet/vue']
Adds Vue-specific rules; requires vue-eslint-parser.
install-peerdeps
npx install-peerdeps -D eslint-config-firstvet
npm install eslint-config-firstvet --save-dev (missing peer deps)
Use npx install-peerdeps to automatically install all peer dependencies, which are many.

Installs peer deps, configures .eslintrc.json for JS or Vue, and sets up VSCode autoformatting on save.

// 1. Install with peer deps (requires npm 5+): // npx install-peerdeps -D eslint-config-firstvet // 2. Create .eslintrc.json: { "extends": ["firstvet"] } // For Vue projects use: // { "extends": ["firstvet/vue"] } // 3. VSCode settings.json: // { // "[javascript]": { "editor.formatOnSave": false, "editor.formatOnPaste": false }, // "[json]": { "editor.formatOnSave": false, "editor.formatOnPaste": false }, // "[vue]": { "editor.formatOnSave": false, "editor.formatOnPaste": false }, // "[typescript]": { "editor.formatOnSave": false, "editor.formatOnPaste": false }, // "eslint.validate": ["javascript", "json", "vue", "typescript"], // "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, // "prettier.disableLanguages": ["javascript", "json", "vue", "typescript"], // "path-intellisense.mappings": { "@": "${workspaceRoot}/src" } // }
Debug
Known issues
gotchaVSCode autoformatting fails when project is opened in a subdirectory; ESLint plugin cannot find plugins.
fix
Open the subdirectory as the project root in VSCode (File > Open Folder) so that node_modules are resolved correctly.
affects: >=0.0.0
breakingeslint-plugin-tailwindcss requires v3.18.0 or v4.0.0-beta.0; mismatched version causes rule errors.
fix
Ensure eslint-plugin-tailwindcss is installed at ^3.18.0 || ^4.0.0-beta.0 as specified in peer dependencies.
affects: >=9.0.0
deprecatedprettier.disableLanguages is deprecated in newer Prettier VSCode extensions; use editor.defaultFormatter instead.
fix
Remove prettier.disableLanguages and set editor.defaultFormatter to null for those languages, or use ESLint as the formatter.
affects: >=0.0.0
gotchaIf using eslint-plugin-prettier, conflicting formatting rules may arise if both Prettier and ESLint format on save.
fix
Set editor.formatOnSave to false and rely solely on ESLint's fixAll action.
affects: >=0.0.0
gotchaPath intellisense mapping '@' requires eslint-import-resolver-alias to be configured; otherwise imports may not resolve.
fix
Ensure eslint-import-resolver-alias is installed and configured in .eslintrc if using path aliases.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'prettier' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-prettier'
Peer dependencies not installed.
fix
Run npx install-peerdeps -D eslint-config-firstvet to install all missing peers.
Error: Cannot find module 'vue-eslint-parser'
Missing peer dependency for Vue config.
fix
Install vue-eslint-parser: npm install -D vue-eslint-parser
Parsing error: The keyword 'import' is reserved
Missing @typescript-eslint/parser or incorrect parser configuration.
fix
Ensure @typescript-eslint/parser is installed and no parserOptions overrides it.
ESLint: TypeError: this.options is not iterable (eslint-plugin-tailwindcss)
Incompatible version of eslint-plugin-tailwindcss.
fix
Install eslint-plugin-tailwindcss@^3.18.0 or @^4.0.0-beta.0 (not v2.x).
Upgrade
Version history
9.0.1latest on npm
Audit
Dependencies
@typescript-eslint/eslint-pluginrequiredTypeScript lint rules
@typescript-eslint/parserrequiredTypeScript parser
eslintrequiredCore linter
eslint-config-airbnb-baserequiredBase style rules
eslint-config-prettierrequiredDisables Prettier-conflicting rules
eslint-import-resolver-aliasrequiredResolve import aliases
eslint-plugin-importrequiredImport/export rules
eslint-plugin-json-formatrequiredJSON formatting
eslint-plugin-prettierrequiredPrettier as ESLint rule
eslint-plugin-tailwindcssrequiredTailwind CSS class ordering
eslint-plugin-vuerequiredVue-specific lint rules
prettierrequiredCode formatter
vue-eslint-parserrequiredParse Vue single-file components
Agent activity
2 hits · last 30 days
node
2
Resources