update config files
This commit is contained in:
parent
deb40ba5a9
commit
6f7a09643d
4 changed files with 31 additions and 8 deletions
|
@ -1,20 +1,31 @@
|
|||
{
|
||||
"root": true,
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
||||
"plugin:react/recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"overrides": [],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module",
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
}
|
||||
},
|
||||
"plugins": ["react", "@typescript-eslint"],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unsafe-argument": "warn",
|
||||
"@typescript-eslint/no-unsafe-assignment": "warn",
|
||||
"@typescript-eslint/unbound-method": "warn"
|
||||
},
|
||||
"overrides": [],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"ignorePatterns": ["node_modules", "build", "webpack**", "src/public/"]
|
||||
}
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
build
|
||||
dist
|
||||
node_modules
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./build/",
|
||||
"outDir": "./build/util",
|
||||
"noImplicitAny": false,
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
|
|
@ -32,7 +32,20 @@ module.exports = {
|
|||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
// Copy utility files
|
||||
from: "./src/util",
|
||||
to: "../util",
|
||||
globOptions: {
|
||||
ignore: ["**/*.ts", "**/*.tsx"],
|
||||
},
|
||||
},
|
||||
{
|
||||
// Copy public files
|
||||
from: "./src/public",
|
||||
to: "./",
|
||||
globOptions: {
|
||||
ignore: ["**/*.ts", "**/*.tsx"],
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue