Skip to content

Commit b474d45

Browse files
committed
style(eslint): align codebase with standard airbnb codestyle
1 parent f3adb13 commit b474d45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+8291
-8360
lines changed

.eslintrc

+14-27
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,21 @@
11
{
2+
"root": true,
23
"extends": "eslint-config-airbnb-base",
34
"env": {
4-
"node": true
5+
"shared-node-browser": true,
6+
"es6": true,
7+
"es2017": true
8+
},
9+
"parserOptions": {
10+
"sourceType": "module",
11+
"ecmaFeatures": {
12+
"impliedStrict": true
13+
}
514
},
615
"rules": {
7-
"class-methods-use-this": 0,
8-
"consistent-return": 0,
9-
"no-plusplus": 0,
10-
"camelcase": 2,
11-
"func-names": 0,
12-
"brace-style": [2, "stroustrup"],
13-
"no-param-reassign": 0,
14-
"semi": [2, "never"],
15-
"strict": 0,
16-
"quotes": [2, "single"],
17-
"comma-dangle": 0,
18-
"arrow-body-style": 0,
19-
"guard-for-in": 0,
20-
"no-unused-vars": 0,
21-
"vars-on-top": 0,
22-
"no-continue": 0,
23-
"no-multi-spaces": 1,
24-
"no-multi-assign": 0,
25-
"no-template-curly-in-string": 0,
26-
"no-restricted-syntax": 0,
27-
"no-use-before-define": [2,"nofunc"],
28-
"no-underscore-dangle": 0,
29-
"no-unused-expressions": [2, {"allowShortCircuit": true}],
30-
"object-curly-spacing": [2, "never"],
31-
"import/prefer-default-export": 1,
32-
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["!test/**/*.js"]}]
16+
"arrow-body-style": 0, // will be eliminated by prettier
17+
18+
"no-param-reassign": 0, // needs to be eliminated in future
19+
"no-use-before-define": [2, "nofunc"] // needs to be eliminated in future
3320
}
3421
}

jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict'
1+
'use strict';
22

33
module.exports = {
44
testEnvironment: 'node',
@@ -16,4 +16,4 @@ module.exports = {
1616
'<rootDir>/test/specmap/data/',
1717
'<rootDir>/test/webpack-bundle/.tmp/'
1818
]
19-
}
19+
};

src/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// eslint-disable-next-line import/prefer-default-export
2-
export const ACCEPT_HEADER_VALUE_FOR_DOCUMENTS = 'application/json, application/yaml'
2+
export const ACCEPT_HEADER_VALUE_FOR_DOCUMENTS = 'application/json, application/yaml';

0 commit comments

Comments
 (0)