UNPKG

solhint

Version:
18 lines (15 loc) 455 B
const baseConfigProperties = { rules: { type: 'object' }, excludedFiles: { type: 'array' }, extends: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] }, globals: { type: 'object' }, env: { type: 'object' }, parserOptions: { type: 'object' }, plugins: { type: 'array' }, } const configSchema = { type: 'object', properties: baseConfigProperties, additionalProperties: false, } module.exports = configSchema