Skip to content

Commit c066f23

Browse files
author
Michael Zapata
committed
Merge pull request #32 from scality/ft/new_warnings
Ft/new warnings
2 parents 25a421f + e11048a commit c066f23

File tree

3 files changed

+51
-29
lines changed

3 files changed

+51
-29
lines changed

bin/mdlint.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env node
22

3-
"use strict"; // eslint-disable-line strict
3+
'use strict'; // eslint-disable-line strict
44

5-
const commander = require("commander");
6-
const markdownlint = require("markdownlint");
5+
const commander = require('commander');
6+
const markdownlint = require('markdownlint');
77

88
const files = commander.parse(process.argv).args;
99

@@ -13,7 +13,7 @@ const config = {
1313
MD007: false, // Unordered list indentation
1414
MD024: false, // Multiple headers with the same content
1515
MD027: false, // Multiple spaces after blockquote symbol
16-
MD029: { style: "ordered" }, // Ordered list item prefix
16+
MD029: { style: 'ordered' }, // Ordered list item prefix
1717
MD034: false, // Bare URL used
1818
MD040: false, // Fenced code blocks should have a language specified
1919
};

index.js

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: "airbnb/base",
2+
extends: 'airbnb/base',
33

44
env: {
55
browser: false,
@@ -8,26 +8,48 @@ module.exports = {
88
},
99

1010
rules: {
11-
"strict": [2, "global"],
12-
"indent": [2, 4],
13-
"no-mixed-spaces-and-tabs": 2,
14-
"max-len": [2, 80, 4],
15-
"quotes": 0,
16-
"semi": [2, "always"],
17-
"curly": 0,
18-
"space-before-keywords": 2,
19-
"space-before-function-paren": [2, { anonymous: "always",
20-
named: "never"} ],
21-
"comma-dangle": 1,
22-
"camelcase": [2, { properties: "always" }],
23-
"id-length": 0,
24-
"no-shadow": 0,
25-
"valid-jsdoc": 1,
26-
"eol-last": 2,
27-
"no-multiple-empty-lines": [ 2, { max: 2, maxEOF: 1 } ],
28-
"no-console": 2,
29-
"object-shorthand": 1,
30-
"quote-props": [1, "consistent-as-needed"],
31-
"prefer-template": 1,
11+
'strict': [2, 'global'],
12+
'indent': [2, 4],
13+
'no-mixed-spaces-and-tabs': 2,
14+
'max-len': [2, 80, 4],
15+
'quotes': [1, 'single', 'avoid-escape'],
16+
'semi': [2, 'always'],
17+
'curly': 0,
18+
'space-before-function-paren': [2, { anonymous: 'always',
19+
named: 'never' }],
20+
'comma-dangle': 1,
21+
'camelcase': [2, { properties: 'always' }],
22+
'id-length': 0,
23+
'no-shadow': 0,
24+
'valid-jsdoc': 1,
25+
'eol-last': 2,
26+
'no-multiple-empty-lines': [2, { max: 2, maxEOF: 1 }],
27+
'no-console': 2,
28+
'object-shorthand': 1,
29+
'quote-props': [1, 'consistent-as-needed'],
30+
'prefer-template': 1,
31+
'array-bracket-spacing': [1, 'never'],
32+
'keyword-spacing': [1, {
33+
before: true,
34+
after: true,
35+
overrides: {
36+
return: { after: true },
37+
throw: { after: true },
38+
case: { after: true },
39+
},
40+
}],
41+
'linebreak-style': [1, 'unix'],
42+
'new-cap': [1, { newIsCap: true }],
43+
'space-in-parens': [1, 'never'],
44+
'consistent-return': 1,
45+
'prefer-arrow-callback': 1,
46+
'no-param-reassign': [1, { props: true }],
47+
'arrow-body-style': [1, 'as-needed'],
48+
'prefer-rest-params': 1,
49+
'no-unneeded-ternary': [1, { defaultAssignment: false }],
50+
'arrow-parens': [1, 'as-needed'],
51+
'no-return-assign': [1, 'always'],
52+
'prefer-const': 1,
53+
'array-callback-return': 1,
3254
},
3355
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"markdownlint": "^0.0.8"
2121
},
2222
"devDependencies": {
23-
"babel-eslint": "^4.1.3",
24-
"eslint": "^1.10.3",
25-
"eslint-config-airbnb": "^1.0.0"
23+
"babel-eslint": "^5.0.0",
24+
"eslint": "^2.4.0",
25+
"eslint-config-airbnb": "^6.1.0"
2626
},
2727
"keywords": [
2828
"eslint",

0 commit comments

Comments
 (0)