-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathd3.js
More file actions
23 lines (23 loc) · 693 Bytes
/
d3.js
File metadata and controls
23 lines (23 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict';
var mainConfig = require('./es5');
var idLengthOptions = mainConfig.rules['id-length'][1];
var idMatchOptions = mainConfig.rules['id-match'][2];
module.exports = {
rules : {
'id-length': [
2,
{
'min': idLengthOptions.min,
'max': idLengthOptions.max,
'exceptions': idLengthOptions.exceptions.concat([ 'd', 'dx', 'dy', 'd3' ]),
},
],
'id-match': [
2,
// identifiers must always be camel cased, unless they are all caps
// they may not include numbers, except as a part of the phrase "d3"
'^([A-Za-z]*([dD]3)?[A-Za-z]*|([A-Z]|(D3))[A-Z_]*((D3)?[A-Z_]*[A-Z]|D3))$',
idMatchOptions,
],
},
};