Skip to content

Commit 1817cf2

Browse files
committed
Update configs for upgraded libs
1 parent abf3128 commit 1817cf2

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.depcheckrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ignores: [
2+
"webpack-dev-server"
3+
]
4+
ignore-dirs: [
5+
"build",
6+
"lib",
7+
"pub"
8+
]
9+
specials: [
10+
"bin",
11+
"eslint"
12+
]

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ module.exports = {
55
browser: true
66
},
77
rules: {
8+
'no-multiple-empty-lines': ['error', {max: 2}],
89
'arrow-parens': ['error', 'as-needed'],
910
'comma-dangle': ['error', 'never'],
11+
eqeqeq: ['error', 'always'],
1012
'object-curly-spacing': ['error', 'never'],
1113
'no-console': 'off',
1214
'global-require': 'off',
@@ -22,7 +24,7 @@ module.exports = {
2224
'lifecycle',
2325
'everything-else',
2426
'render'
25-
],
27+
]
2628
}],
2729
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
2830
'react/jsx-closing-bracket-location': ['error', {

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"scripts": {
1818
"build": "yarn lib && yarn dist",
19-
"start": "NODE_ENV=development webpack-dev-server --config ./webpack/dev.config.js",
19+
"start": "NODE_ENV=development webpack serve --config ./webpack/dev.config.js",
2020
"predist": "rm -rf ./build",
2121
"dist": "NODE_ENV=production webpack-cli --config ./webpack/dist.config.js && NODE_ENV=production webpack-cli --config ./webpack/min.config.js",
2222
"preghPages": "yarn pub",
@@ -31,7 +31,9 @@
3131
"postversion": "git push --follow-tags",
3232
"nuke": "rm -rf node_modules yarn.lock",
3333
"postnuke": "yarn install",
34-
"deps": "! depcheck --specials=bin,eslint --ignore-dirs=build,lib,pub | grep --invert-match 'No depcheck issue'"
34+
"deps": "! depcheck | grep --invert-match 'No depcheck issue'",
35+
"offline-update": "yarn cache clean && yarn install --force",
36+
"offline": "yarn install --pure-lockfile --offline"
3537
},
3638
"repository": {
3739
"type": "git",

webpack/dev.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111

1212
module.exports = {
1313
mode,
14-
devtool: 'eval',
14+
devtool: 'eval-source-map',
1515

1616
entry: [
1717
pathTo('example', 'index.js'),

0 commit comments

Comments
 (0)