feat(wbpck-rct-bbl-slnt): adjust esling from "airbnb" to "eslint:recommended".

This commit is contained in:
dancingCycle 2024-04-23 14:53:04 +02:00
parent 6bfc03ba2c
commit dfe5ac424a
7 changed files with 29 additions and 1667 deletions

View File

@ -11,4 +11,4 @@
}
]
]
}
}

View File

@ -1,9 +1,19 @@
{
"parser": "@babel/eslint-parser",
"extends": ["airbnb"],
"extends": "eslint:recommended",
"env": {
"es6": 1,
"node": 1
},
"parserOptions": {
"ecmaVersion": 2020
},
"ignorePatterns": [
"node_modules",
"dist"
],
"rules": {
"no-tabs": 0,
"no-mixed-spaces-and-tabs": 0
"no-console": "error",
"no-mixed-spaces-and-tabs": 0
}
}
}

View File

@ -19,8 +19,8 @@ module.exports = {
// test all *.jsx (e.g. React.js) using babel-loader
test: /\.(js|jsx)$/,
exclude: /node_modules/,
include: path.resolve(__dirname, '../src'),
use: {
include: path.resolve(__dirname, '../src'),
use: {
loader: 'babel-loader',
options: {
presets: [
@ -28,13 +28,13 @@ module.exports = {
'@babel/preset-react',
],
},
},
},
},
{
// test all *.css using style-loader and css-loader
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
{
// test all *.css using style-loader and css-loader
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
],
},
resolve: {

View File

@ -1,7 +1,7 @@
// path is used to resolve properly across the OS
const path = require('path');
const { merge } = require('webpack-merge');
const common = require('./webpack.common.config');
const common = require('./webpack.common');
// merge() calls in the environment-specific configuration to include commons
module.exports = merge(common, {
// set development mode
@ -16,7 +16,5 @@ module.exports = merge(common, {
Enable devServer.historyApiFallback by setting it to true.
*/
historyApiFallback: true,
port: 8080,
open: true,
},
});

View File

@ -1,5 +1,5 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common.config');
const common = require('./webpack.common');
module.exports = merge(common, {
mode: 'production',

File diff suppressed because it is too large Load Diff

View File

@ -14,8 +14,9 @@
"node": ">=18.17.0"
},
"scripts": {
"start": "webpack serve --config config/webpack.dev.config.js",
"build": "webpack --config config/webpack.prod.config.js",
"start": "webpack serve --config config/webpack.dev.js",
"build": "webpack --config config/webpack.prod.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
},
@ -29,7 +30,6 @@
"babel-loader": "9.1.3",
"css-loader": "6.10.0",
"eslint": "8.56.0",
"eslint-config-airbnb": "19.0.4",
"eslint-webpack-plugin": "4.0.1",
"style-loader": "3.3.4",
"webpack": "5.90.2",