Registry / testing / eslint-config-alloy

eslint-config-alloy

JSON →
library5.1.2jsnpmunverified

AlloyTeam's progressive ESLint config for React/Vue/TypeScript projects, currently at v5.1.2. It lets Prettier handle style and focuses on logical error detection. Supports TypeScript 5.0 since v5.0.0 (breaking: v4.x for TS 4.0), Vue 3.0 since v3.x. High automation: auto-checks for new rules, deprecated rules, and Prettier overlap. Differentiator: rule-per-directory management enabling documentation generation and test-as-document approach.

npm install eslint-config-alloy
INSTALL
IMPORT
SIG · ESLINT-CONFIG-ALLO
E
eslint-config-alloy
testingjavascriptv5.1.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

eslint-config-alloy
module.exports = { extends: ['alloy'] }
module.exports = { extends: ['eslint-config-alloy'] }
In ESLint config, you can omit the `eslint-config-` prefix. Use `alloy` instead of full package name.
alloy/react
module.exports = { extends: ['alloy/react'] }
module.exports = { extends: ['alloy/react'] }
alloy/vue
module.exports = { extends: ['alloy/vue'] }
module.exports = { extends: ['alloy/vue'] }
alloy/typescript
module.exports = { extends: ['alloy/typescript'] }
module.exports = { extends: ['alloy/typescript'] }
alloy/typescript/react
module.exports = { extends: ['alloy/typescript/react'] }
module.exports = { extends: ['alloy/typescript/react'] }
alloy/typescript/vue
module.exports = { extends: ['alloy/typescript/vue'] }
module.exports = { extends: ['alloy/typescript/vue'] }

Basic ESLint configuration extending the AlloyTeam TypeScript preset. Customize env, globals, and rules as needed.

// .eslintrc.js module.exports = { extends: [ 'alloy', 'alloy/typescript', ], env: { // Your environments (which contains globals like __dirname, window, document) // List of available envs: https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments browser: true, node: true, // mocha: true, // jest: true, // jquery: true }, globals: { // Your global variables (setting to false means it's not allowed to be reassigned) // myGlobal: false }, rules: { // Customize your rules } };
Debug
Known issues
breakingeslint-config-alloy v5.0.0 drops TypeScript 4.x support; requires TypeScript 5.0+.
fix
Upgrade TypeScript to >=5.0, or stay on eslint-config-alloy@4 for TS 4.x.
affects: >=5.0.0
breakingeslint-config-alloy v4.0.0 drops Vue 2.x support; requires Vue 3.0+.
fix
Upgrade to Vue 3.0, or use eslint-config-alloy@3 for Vue 2.x.
affects: >=4.0.0
deprecatedThe rule `react/jsx-sort-default-props` was removed in v5.0.0.
fix
If you rely on this rule, you must add it manually to your project's .eslintrc.
affects: >=5.0.0
gotchaWhen using TypeScript, you must install both `@typescript-eslint/parser` and `@typescript-eslint/eslint-plugin` as peer dependencies. Not installing the plugin will cause ESLint to throw an error.
fix
Run: npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
affects: >=5.0.0
gotchaThe config disables `no-undef` in TypeScript files (since TS handles that). This can mask real issues if you have JavaScript files in a mixed project.
fix
If you need `no-undef` in JS files, ensure you're using a separate config for JS files that does not include the TypeScript preset.
affects: >=4.6.0
Errors
Common errors & fixes
Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js': Cannot find module '@typescript-eslint/eslint-plugin'
Missing peer dependency for TypeScript support.
fix
npm install --save-dev @typescript-eslint/eslint-plugin
Error: Cannot find module 'vue-eslint-parser'
Missing peer dependency when using Vue config.
fix
npm install --save-dev vue-eslint-parser eslint-plugin-vue
Error: Failed to load parser '@babel/eslint-parser' declared in '.eslintrc.js'
Missing @babel/eslint-parser when using React config.
fix
npm install --save-dev @babel/eslint-parser @babel/preset-react
Error: ESLint configuration in `.eslintrc.js` is invalid: Unexpected top-level property "extends" value "alloy/typescript"
Using a string instead of array for extends, or missing the base 'alloy' config.
fix
Use extends: ['alloy', 'alloy/typescript']
Upgrade
Version history
5.1.2latest on npm
Audit
Dependencies
@babel/eslint-parseroptionalRequired for Babel/React support
@babel/preset-reactoptionalRequired for React JSX support
@typescript-eslint/eslint-pluginrequiredRequired for TypeScript support
@typescript-eslint/parserrequiredRequired for TypeScript support
eslintrequiredCore linter peer dependency
eslint-plugin-reactoptionalRequired for React support
eslint-plugin-vueoptionalRequired for Vue support
typescriptoptionalRequired for TypeScript support
vue-eslint-parseroptionalRequired for Vue template parsing
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-alloy — npm install eslint-config-alloy · libregistry