nextcloud /
tasks
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | const path = require('path') |
||
|
0 ignored issues
–
show
Backwards Compatibility
introduced
by
Loading history...
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: Loading history...
|
|||
| 2 | const webpack = require('webpack') |
||
|
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: Loading history...
|
|||
| 3 | const { VueLoaderPlugin } = require('vue-loader') |
||
|
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: Loading history...
|
|||
| 4 | const StyleLintPlugin = require('stylelint-webpack-plugin') |
||
|
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: Loading history...
|
|||
| 5 | |||
| 6 | module.exports = { |
||
| 7 | entry: path.join(__dirname, 'src', 'main.js'), |
||
| 8 | output: { |
||
| 9 | path: path.resolve(__dirname, './js'), |
||
| 10 | publicPath: '/js/', |
||
| 11 | filename: 'tasks.js' |
||
| 12 | }, |
||
| 13 | module: { |
||
| 14 | rules: [ |
||
| 15 | { |
||
| 16 | test: /\.css$/, |
||
| 17 | use: ['vue-style-loader', 'css-loader'] |
||
| 18 | }, |
||
| 19 | { |
||
| 20 | test: /\.scss$/, |
||
| 21 | use: ['vue-style-loader', 'css-loader', 'sass-loader'] |
||
| 22 | }, |
||
| 23 | { |
||
| 24 | test: /\.(js|vue)$/, |
||
| 25 | use: 'eslint-loader', |
||
| 26 | enforce: 'pre' |
||
| 27 | }, |
||
| 28 | { |
||
| 29 | test: /\.vue$/, |
||
| 30 | loader: 'vue-loader' |
||
| 31 | }, |
||
| 32 | { |
||
| 33 | test: /\.js$/, |
||
| 34 | loader: 'babel-loader', |
||
| 35 | exclude: /node_modules/ |
||
| 36 | }, |
||
| 37 | { |
||
| 38 | test: /\.(png|jpg|gif|svg)$/, |
||
| 39 | loader: 'file-loader', |
||
| 40 | options: { |
||
| 41 | name: '[name].[ext]?[hash]' |
||
| 42 | } |
||
| 43 | } |
||
| 44 | ] |
||
| 45 | }, |
||
| 46 | plugins: [ |
||
| 47 | new VueLoaderPlugin(), |
||
| 48 | new StyleLintPlugin(), |
||
| 49 | new webpack.DefinePlugin({ |
||
| 50 | appVersion: JSON.stringify(require('./package.json').version) |
||
| 51 | }) |
||
| 52 | ], |
||
| 53 | resolve: { |
||
| 54 | extensions: ['*', '.js', '.vue', '.json'] |
||
| 55 | } |
||
| 56 | } |
||
|
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: Loading history...
|
|||
| 57 |