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
muslnode 18–223 runs
build_error
glibcnode 18–223 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
}
};
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.
fixnpm install --save-dev @typescript-eslint/eslint-plugin
Error: Cannot find module 'vue-eslint-parser'
Missing peer dependency when using Vue config.
fixnpm 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.
fixnpm 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.
fixUse extends: ['alloy', 'alloy/typescript']
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