Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 75ebffb

Browse files
amaury1093jacogr
authored andcommitted
React 16 (#9)
* Update package versions * Preprocess sass to css * Remove deprecated React.proptypes * Install react-redux * Add babel transform runtime * Remove useless packages and babel plugins * Use strict standard * Interpolate sass variables * Roll back to react-router v3 * Major version
1 parent 5a6c19d commit 75ebffb

File tree

183 files changed

+3919
-1847
lines changed

Some content is hidden

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

183 files changed

+3919
-1847
lines changed

.babelrc

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,27 @@
55
"react"
66
],
77
"plugins": [
8-
"transform-decorators-legacy",
9-
"transform-class-properties",
10-
"transform-object-rest-spread",
11-
"transform-react-remove-prop-types"
8+
[
9+
"css-modules-transform",
10+
{
11+
"extractCss": {
12+
"dir": "./lib/",
13+
"relativeRoot": "./src/",
14+
"filename": "[path]/[name].css"
15+
},
16+
"keepImport": true,
17+
"preprocessCss": "./scripts/sass.js"
18+
}
19+
],
20+
[
21+
"transform-runtime",
22+
{
23+
"helpers": false,
24+
"polyfill": false,
25+
"regenerator": true,
26+
"moduleName": "babel-runtime"
27+
}
28+
],
29+
"transform-decorators-legacy"
1230
]
13-
}
31+
}

.eslintrc.json

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
11
{
2-
"extends": ["semistandard", "standard-react"],
2+
"extends": [
3+
"semistandard",
4+
"standard-react"
5+
],
36
"parser": "babel-eslint",
47
"env": {
58
"browser": true,
6-
"mocha": true,
7-
"node": true
9+
"mocha": true
810
},
911
"globals": {
1012
"expect": true,
1113
"FileReader": true
12-
},
13-
"rules": {
14-
"curly": ["error", "all"],
15-
"jsx-quotes": ["error", "prefer-single"],
16-
"newline-after-var": ["error", "always"],
17-
"no-alert": "error",
18-
"no-debugger": "error",
19-
"no-duplicate-imports": ["error", {
20-
"includeExports": true
21-
}],
22-
"object-curly-spacing": ["error", "always"],
23-
"object-property-newline": 0,
24-
"one-var-declaration-per-line": ["error", "always"],
25-
"padded-blocks": ["error", {
26-
"blocks": "never",
27-
"classes": "never",
28-
"switches": "never"
29-
}],
30-
"react/jsx-closing-bracket-location": "error",
31-
"react/jsx-curly-spacing": ["error", "always"]
3214
}
33-
}
15+
}

.stylelintrc.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"extends": "stylelint-config-standard",
3-
"rules": {
4-
"selector-pseudo-class-no-unknown": [
5-
true, { "ignorePseudoClasses": ["global"] }
6-
]
7-
}
8-
}
2+
"extends": "stylelint-config-standard"
3+
}

0 commit comments

Comments
 (0)