Skip to content

Commit

Permalink
Update configs for upgraded libs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkbt committed Nov 19, 2020
1 parent abf3128 commit 1817cf2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .depcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ignores: [
"webpack-dev-server"
]
ignore-dirs: [
"build",
"lib",
"pub"
]
specials: [
"bin",
"eslint"
]
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ module.exports = {
browser: true
},
rules: {
'no-multiple-empty-lines': ['error', {max: 2}],
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': ['error', 'never'],
eqeqeq: ['error', 'always'],
'object-curly-spacing': ['error', 'never'],
'no-console': 'off',
'global-require': 'off',
Expand All @@ -22,7 +24,7 @@ module.exports = {
'lifecycle',
'everything-else',
'render'
],
]
}],
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
'react/jsx-closing-bracket-location': ['error', {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"build": "yarn lib && yarn dist",
"start": "NODE_ENV=development webpack-dev-server --config ./webpack/dev.config.js",
"start": "NODE_ENV=development webpack serve --config ./webpack/dev.config.js",
"predist": "rm -rf ./build",
"dist": "NODE_ENV=production webpack-cli --config ./webpack/dist.config.js && NODE_ENV=production webpack-cli --config ./webpack/min.config.js",
"preghPages": "yarn pub",
Expand All @@ -31,7 +31,9 @@
"postversion": "git push --follow-tags",
"nuke": "rm -rf node_modules yarn.lock",
"postnuke": "yarn install",
"deps": "! depcheck --specials=bin,eslint --ignore-dirs=build,lib,pub | grep --invert-match 'No depcheck issue'"
"deps": "! depcheck | grep --invert-match 'No depcheck issue'",
"offline-update": "yarn cache clean && yarn install --force",
"offline": "yarn install --pure-lockfile --offline"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion webpack/dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {

module.exports = {
mode,
devtool: 'eval',
devtool: 'eval-source-map',

entry: [
pathTo('example', 'index.js'),
Expand Down

0 comments on commit 1817cf2

Please sign in to comment.