Skip to content

Commit 9cb1b43

Browse files
committed
Fix linter-issues
1 parent 66a9766 commit 9cb1b43

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.ncurc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint no-unused-vars: ["error", { "args": "none" }] */
2+
13
module.exports = {
24
/** Filter out non-major version updates.
35
@param {string} packageName The name of the dependency.

tools/linters/.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
module.exports = {
22
ignorePatterns: ["!/tools/linters/.eslintrc.yml", "!/tools/linters/.stylelintrc.json"],
3+
settings: {
4+
react: {
5+
version: "detect"
6+
},
7+
},
38
parserOptions: {
49
ecmaVersion: 2015,
510
sourceType: "module"
@@ -9,6 +14,9 @@ module.exports = {
914
files: ["*.json"],
1015
extends: ["plugin:jsonc/recommended-with-json"],
1116
parser: "jsonc-eslint-parser",
17+
rules: {
18+
"no-unused-vars": "off"
19+
},
1220
}
1321
]
1422
};

webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const path = require('path');
2-
const webpack = require('webpack');
32
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
43
const CopyWebpackPlugin = require('copy-webpack-plugin');
54

@@ -12,9 +11,9 @@ const localConfig = {
1211

1312
module.exports = environment => {
1413
const env = typeof environment !== 'undefined' ? environment : {};
15-
const primaryBackground = env.hasOwnProperty('primaryBackground') ? env.primaryBackground : '#b8002c';
16-
const transitionBackground = env.hasOwnProperty('transitionBackground') ? env.transitionBackground : '#db0100';
17-
const secondaryBackground = env.hasOwnProperty('secondaryBackground') ? env.secondaryBackground : '#e8410c';
14+
const primaryBackground = Object.prototype.hasOwnProperty.call(env, 'primaryBackground') ? env.primaryBackground : '#b8002c';
15+
const transitionBackground = Object.prototype.hasOwnProperty.call(env, 'transitionBackground') ? env.transitionBackground : '#db0100';
16+
const secondaryBackground = Object.prototype.hasOwnProperty.call(env, 'secondaryBackground') ? env.secondaryBackground : '#e8410c';
1817
return {
1918
entry: {
2019
bundle: './resources/js/bundle/main',
@@ -77,7 +76,7 @@ module.exports = environment => {
7776
new CopyWebpackPlugin({
7877
patterns: [
7978
{
80-
from: path.resolve(__dirname + '/node_modules/\@fortawesome/fontawesome-free/webfonts/fa-solid*'),
79+
from: path.resolve(__dirname + '/node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid*'),
8180
to: 'fonts/[name][ext]'
8281
}
8382
]

0 commit comments

Comments
 (0)