eslint-config-vca
Version:
ESLint shareable config for VCA
101 lines (99 loc) • 2.83 kB
JavaScript
;
module.exports = {
extends: 'xo-space',
rules: {
'linebreak-style': 0,
'valid-jsdoc': [2, {
requireReturn: false,
preferType: {
array: 'Array',
arrayBuffer: 'ArrayBuffer',
atomics: 'Atomics',
bool: 'Boolean',
Bool: 'Boolean',
boolean: 'Boolean',
dataview: 'DataView',
date: 'Date',
error: 'Error',
evalerror: 'EvalError',
float32array: 'Float32Array',
float64array: 'Float64Array',
'function': 'Function',
generator: 'Generator',
generatorfunction: 'GeneratorFunction',
infinity: 'Infinity',
int16array: 'Int16Array',
int32array: 'Int32Array',
int8array: 'Int8Array',
internalerror: 'InternalError',
intl: 'Intl',
collator: 'Intl.Collator',
datetimeformat: 'Intl.DateTimeFormat',
numberformat: 'Intl.NumberFormat',
iterator: 'Iterator',
json: 'JSON',
Json: 'JSON',
map: 'Map',
nan: 'NaN',
Nan: 'NaN',
number: 'Number',
object: 'Object',
parallelarray: 'ParallelArray',
promise: 'Promise',
proxy: 'Proxy',
rangeerror: 'RangeError',
referenceerror: 'ReferenceError',
reflect: 'Reflect',
egExp: 'RegExp',
simd: 'SIMD',
Simd: 'SIMD',
bool16x8: 'SIMD.Bool16x8',
bool32x4: 'SIMD.Bool32x4',
bool64x2: 'SIMD.Bool64x2',
bool8x16: 'SIMD.Bool8x16',
float32x4: 'SIMD.Float32x4',
float64x2: 'SIMD.Float64x2',
int16x8: 'SIMD.Int16x8',
int32x4: 'SIMD.Int32x4',
int8x16: 'SIMD.Int8x16',
uint16x8: 'SIMD.Uint16x8',
uint32x4: 'SIMD.Uint32x4',
uint8x16: 'SIMD.Uint8x16',
set: 'Set',
sharedarraybuffer: 'SharedArrayBuffer',
stopiteration: 'StopIteration',
string: 'String',
symbol: 'Symbol',
syntaxerror: 'SyntaxError',
typeerror: 'TypeError',
typedarray: 'TypedArray',
urierror: 'URIError',
UriError: 'URIError',
uint16array: 'Uint16Array',
uint32array: 'Uint32Array',
uint8array: 'Uint8Array',
uint8clampedarray: 'Uint8ClampedArray',
weakmap: 'WeakMap',
weakset: 'WeakSet'
},
prefer: {
abstract: 'virtual',
arg: 'param',
argument: 'param',
augments: 'extends',
constant: 'const',
defaultvalue: 'default',
desc: 'description',
emits: 'fires',
exception: 'throws',
fileoverview: 'file',
func: 'function',
host: 'external',
overview: 'file',
prop: 'property',
'return': 'returns',
'var': 'member'
}
}]
}
};