],
"rules": {
- "arrow-spacing": 1,
- "comma-spacing": [1, { "before": false, "after": true }],
+ "arrow-spacing": 2,
+ "comma-spacing": 2,
"curly": 2,
- "eol-last": 1,
+ "eol-last": 2,
"eqeqeq": [2, "smart"],
- "indent": [1, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
- "jsx-quotes": 1,
- "key-spacing": [1, { "beforeColon": false, "afterColon": true }],
- "no-multi-spaces": 1,
+ "indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
+ "jsx-quotes": 2,
+ "key-spacing": 2,
+ "no-multi-spaces": 2,
"no-self-compare": 2,
"no-unexpected-multiline": 2,
- "max-len": 0,
+ "max-len": [2, 120],
"no-const-assign": 2,
- "no-multiple-empty-lines": [1, { "max": 3 }],
- "no-spaced-func": 1,
+ "no-multiple-empty-lines": [2, { "max": 3 }],
+ "no-spaced-func": 2,
"no-this-before-super": 2,
- "no-trailing-spaces": 1,
- "no-unneeded-ternary": 1,
- "object-curly-spacing": [1, "always"],
+ "no-trailing-spaces": 2,
+ "no-unneeded-ternary": 2,
+ "object-curly-spacing": [2, "always"],
"no-var": 2,
"object-shorthand": 2,
- "one-var": [1, { "let": "never", "const": "never" }],
- "quotes": [1, "single", "avoid-escape"],
+ "one-var": [2, { "let": "never", "const": "never" }],
+ "quotes": [2, "single", "avoid-escape"],
"prefer-const": 2,
- "semi": [1, "always"],
- "keyword-spacing": 1,
+ "semi": [2, "always"],
+ "keyword-spacing": 2,
- "react/jsx-closing-bracket-location": [1, "after-props"],
+ "react/jsx-closing-bracket-location": [2, "after-props"],
"react/jsx-handler-names": 0,
- "react/jsx-max-props-per-line": [1, { "maximum": 3 }],
+ "react/jsx-max-props-per-line": [2, { "maximum": 3 }],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
- "react/jsx-pascal-case": 1,
- "react/jsx-uses-react": 1,
+ "react/jsx-pascal-case": 2,
+ "react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-update-set-state": [2, "allow-in-func"],
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
- "react/sort-comp": 1
+ "react/sort-comp": 2
},
"settings": {
+++ /dev/null
-{
- "preset": "airbnb",
- "esnext": true,
- "excludeFiles": [
- "src/main/js/libs/**"
- ],
-
- "disallowSpacesInFunctionDeclaration": false,
- "requireTrailingComma": false,
- "requirePaddingNewLinesAfterBlocks": false,
- "requireShorthandArrowFunctions": false,
- "disallowQuotedKeysInObjects": false,
- "requireSpacesInFunctionDeclaration": {
- "beforeOpeningRoundBrace": true,
- "beforeOpeningCurlyBrace": true
- },
- "requireDotNotation": {
- "allExcept": [
- "snake_case"
- ]
- },
- "disallowSpaceAfterObjectKeys": false,
- "maximumLineLength": 120,
- "safeContextKeyword": [
- "that"
- ],
- "requireDollarBeforejQueryAssignment": false,
- "requireDotNotation": false,
- "disallowArrayDestructuringReturn": false,
- "requireEnhancedObjectLiterals": true,
- "requireObjectKeysOnNewLine": {
- "allExcept": ["sameLine"]
- },
- "requireSpaceBeforeDestructuredValues": true,
- "requireSpaceBeforeObjectValues": true,
- "requireSpacesInsideObjectBrackets": "all",
- "requirePaddingNewLinesBeforeLineComments": false
-}
"d3": "3.5.6",
"del": "2.0.2",
"enzyme": "2.2.0",
- "eslint": "^2.9.0",
- "eslint-plugin-import": "^1.8.0",
- "eslint-plugin-react": "^5.1.1",
+ "eslint": "^2.13.1",
+ "eslint-plugin-import": "^1.9.2",
+ "eslint-plugin-react": "^5.2.2",
"event-stream": "3.3.1",
"expose-loader": "0.7.1",
"express": "4.13.4",
"history": "2.0.0",
"imports-loader": "0.6.5",
"jquery": "2.2.0",
- "jscs": "^2.11.0",
"jsdom": "6.5.1",
"lodash": "4.6.1",
"mocha": "2.3.4",
"build": "gulp build",
"test": "mocha --opts tests/mocha.opts src/main/js/**/__tests__/**/*",
"coverage": "nyc --exclude tests,**/__tests__/** mocha --opts tests/mocha.opts src/main/js/**/__tests__/**/* && nyc report --reporter lcov --report-dir target/coverage",
- "lint": "eslint src/main/js && jscs src/main/js",
+ "lint": "eslint src/main/js",
"dev": "NODE_ENV=hot node devServer"
},
"engines": {
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import without from 'lodash/without';
-import sortBy from 'lodash/sortBy';
import {
addComponent,
import React from 'react';
export default function IconBubbles () {
- /* jscs:disable maximumLineLength */
+ /* eslint max-len: 0 */
return (
<svg className="measure-tab-icon"
viewBox="0 0 512 448"
import React from 'react';
export default function IconHistory () {
- /* jscs:disable maximumLineLength */
+ /* eslint max-len: 0 */
return (
<svg className="measure-tab-icon"
viewBox="0 0 512 448"
import React from 'react';
export default function ListIcon () {
- /* jscs:disable maximumLineLength */
+ /* eslint max-len: 0 */
return (
<svg className="measure-tab-icon"
viewBox="0 0 448 448"
import React from 'react';
export default function IconTree () {
- /* jscs:disable maximumLineLength */
+ /* eslint max-len: 0 */
return (
<svg className="measure-tab-icon"
viewBox="0 0 448 448"
import React from 'react';
import ProfileInheritanceBox from './ProfileInheritanceBox';
import ChangeParentView from '../views/ChangeParentView';
-import { ProfileType, ProfilesListType } from '../propTypes';
+import { ProfileType } from '../propTypes';
import { translate } from '../../../helpers/l10n';
import { getProfileInheritance } from '../../../api/quality-profiles';
render () {
const inputProps = pick(this.props, ['placeholder', 'name']);
+ /* eslint max-len: 0 */
return (
<span className="date-input-control">
<input
}
renderSVG () {
- /* jscs:disable maximumLineLength */
+ /* eslint max-len: 0 */
return (
<svg width="16" height="16">
<path
export default React.createClass({
render() {
- /* jscs:disable maximumLineLength */
+ /* eslint max-len: 0 */
return (
<svg width="16" height="16" className="icon-pending">
<g transform="matrix(0.0364583,0,0,0.0364583,1,-0.166667)">
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-/* jscs:disable maximumLineLength */
+/* eslint max-len: 0 */
import React from 'react';
const PinIcon = () => (
if (diff.key === 'file') {
return translate('issue.change.issue_was_moved');
}
-
+
if (diff.newValue != null) {
message = translateWithParameters('issue.changelog.changed_to',
translate('issue.changelog.field', diff.key), diff.newValue);