Skip to content

Commit 9c7a60c

Browse files
Merge pull request #86 from plotly/update-deps
Update dependencies and fixes warnings
2 parents bd3c8b3 + 1f08047 commit 9c7a60c

Some content is hidden

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

54 files changed

+4387
-5926
lines changed

.babelrc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
{
2-
"presets": ["es2015", "react"],
3-
"env": {
4-
"development": {
5-
"presets": ["es2015", "react"],
6-
"plugins": [
7-
["transform-es2015-modules-commonjs-simple", {
8-
"noMangle": true
9-
}]
10-
]
11-
}
12-
}
13-
}
2+
"presets": ["env", "react"]
3+
}

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- "node_modules"
4444

4545
- run:
46-
name: Npm test
47-
command: npm test
46+
name: Npm lint
47+
command: npm run lint
4848

4949
- run:
5050
name: Run tests

.eslintrc.json

Lines changed: 127 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,128 @@
11
{
2-
"extends": "./config/eslint/eslintrc-node.json"
3-
}
2+
"extends": ["eslint:recommended", "prettier"],
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module",
7+
"ecmaFeatures": {
8+
"arrowFunctions": true,
9+
"blockBindings": true,
10+
"classes": true,
11+
"defaultParams": true,
12+
"destructuring": true,
13+
"forOf": true,
14+
"generators": true,
15+
"modules": true,
16+
"templateStrings": true,
17+
"jsx": true
18+
}
19+
},
20+
"env": {
21+
"browser": true,
22+
"es6": true,
23+
"jasmine": true,
24+
"jest": true,
25+
"node": true
26+
},
27+
"globals": {
28+
"jest": true
29+
},
30+
"plugins": [
31+
"react",
32+
"import"
33+
],
34+
"rules": {
35+
"accessor-pairs": ["error"],
36+
"block-scoped-var": ["error"],
37+
"consistent-return": ["error"],
38+
"curly": ["error", "all"],
39+
"default-case": ["error"],
40+
"dot-location": ["off"],
41+
"dot-notation": ["error"],
42+
"eqeqeq": ["error"],
43+
"guard-for-in": ["off"],
44+
"import/export": "error",
45+
"import/named": ["off"],
46+
"import/namespace": ["off"],
47+
"import/no-duplicates": ["error"],
48+
"import/no-named-as-default": ["error"],
49+
"import/no-unresolved": ["off"],
50+
"new-cap": ["error", {
51+
"capIsNewExceptions": ["Radium"],
52+
"capIsNewExceptionPattern": "Immutable\\.*"
53+
}],
54+
"no-alert": ["off"],
55+
"no-caller": ["error"],
56+
"no-case-declarations": ["error"],
57+
"no-console": ["error"],
58+
"no-div-regex": ["error"],
59+
"no-dupe-keys": ["error"],
60+
"no-else-return": ["error"],
61+
"no-empty-pattern": ["error"],
62+
"no-eq-null": ["error"],
63+
"no-eval": ["error"],
64+
"no-extend-native": ["error"],
65+
"no-extra-bind": ["error"],
66+
"no-extra-boolean-cast": ["error"],
67+
"no-inline-comments": ["error"],
68+
"no-implicit-coercion": ["error"],
69+
"no-implied-eval": ["error"],
70+
"no-inner-declarations": ["off"],
71+
"no-invalid-this": ["error"],
72+
"no-iterator": ["error"],
73+
"no-labels": ["error"],
74+
"no-lone-blocks": ["error"],
75+
"no-loop-func": ["error"],
76+
"no-multi-str": ["error"],
77+
"no-native-reassign": ["error"],
78+
"no-new": ["error"],
79+
"no-new-func": ["error"],
80+
"no-new-wrappers": ["error"],
81+
"no-param-reassign": ["error"],
82+
"no-process-env": ["warn"],
83+
"no-proto": ["error"],
84+
"no-redeclare": ["error"],
85+
"no-return-assign": ["error"],
86+
"no-script-url": ["error"],
87+
"no-self-compare": ["error"],
88+
"no-sequences": ["error"],
89+
"no-shadow": ["off"],
90+
"no-throw-literal": ["error"],
91+
"no-undefined": ["error"],
92+
"no-unused-expressions": ["error"],
93+
"no-use-before-define": ["error", "nofunc"],
94+
"no-useless-call": ["error"],
95+
"no-useless-concat": ["error"],
96+
"no-with": ["error"],
97+
"prefer-const": ["error"],
98+
"radix": ["error"],
99+
"react/jsx-no-duplicate-props": ["error"],
100+
"react/jsx-no-undef": ["error"],
101+
"react/jsx-uses-react": ["error"],
102+
"react/jsx-uses-vars": ["error"],
103+
"react/no-did-update-set-state": ["error"],
104+
"react/no-direct-mutation-state": ["error"],
105+
"react/no-is-mounted": ["error"],
106+
"react/no-unknown-property": ["error"],
107+
"react/prefer-es6-class": ["error", "always"],
108+
"react/prop-types": "error",
109+
"valid-jsdoc": ["error"],
110+
"yoda": ["error"],
111+
"spaced-comment": ["error", "always", {
112+
"block": {
113+
"exceptions": ["*"]
114+
}
115+
}],
116+
"no-unused-vars": ["error", {
117+
"args": "after-used",
118+
"argsIgnorePattern": "^_",
119+
"caughtErrorsIgnorePattern": "^e$"
120+
}],
121+
"no-magic-numbers": ["error", {
122+
"ignoreArrayIndexes": true,
123+
"ignore": [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 100, 10, 16, 0.5, 25]
124+
}],
125+
"no-underscore-dangle": ["off"],
126+
"no-useless-escape": ["off"]
127+
}
128+
}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 4,
3+
"singleQuote": true,
4+
"bracketSpacing": false,
5+
"trailingComma": "es5"
6+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": "${workspaceFolder}/venv/bin/python"
3+
}

config/eslint/eslintrc-node.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

config/partials/babel.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

config/partials/babelHot.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

config/partials/defineEnv.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

config/partials/entryDev.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

config/partials/entryHot.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

config/partials/entryProd.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

config/partials/optimizeProd.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

config/partials/outputDev.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

config/partials/outputProd.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)