Skip to content

Commit

Permalink
update config eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
partyk committed Feb 22, 2019
1 parent bdb3924 commit a5a4689
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 51 deletions.
27 changes: 3 additions & 24 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
{
"extends": "standard",
"env": {
"browser": true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
}
},
"rules": {
"indent": [2, 4, { "SwitchCase": 1 }],
"semi": [2, "always", { "omitLastInOneLineBlock": true }],
"quotes": [2, "single", { "allowTemplateLiterals": true }],
"object-curly-spacing": [2, "never", { "objectsInObjects": true }],
"eol-last": 0,
"spaced-comment": 1,
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}]
}
"extends": [
"@partyk/eslint-config-standard"
]
}
6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 42 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"private": true,
"devDependencies": {
"@babel/core": "^7.3.3",
"@partyk/eslint-config-standard": "git+https://github.com/partyk/eslint-config-standart.git",
"babel-loader": "^8.0.5",
"browser-sync": "^2.26.3",
"browser-sync-webpack-plugin": "^2.2.2",
Expand All @@ -23,5 +24,6 @@
"webpack": "^4.29.5",
"webpack-cli": "^3.2.3",
"webpack-merge": "^4.2.1"
}
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
alert('jedu');
console.log('ahoj');
12 changes: 9 additions & 3 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ module.exports = {
module: {
rules: [
{
test: /\.js?$/,
exclude: /node_modules|bower_components/,
use: ['babel-loader','eslint-loader']
enforce: 'pre',
test: /\.(js(x)?|ts|tsx|vue)$/,
loader: 'eslint-loader',
exclude: /node_modules/,
},
{
test: /\.js(x)?$/,
// exclude: /node_modules|bower_components/,
use: ['babel-loader']
}
],
}
};
2 changes: 1 addition & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = merge(common, {
{
// prevent BrowserSync from reloading the page
// and let Webpack Dev Server take care of this
reload: false
reload: true
}
)
]
Expand Down

0 comments on commit a5a4689

Please sign in to comment.