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": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:react/recommended",
|
||||||
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
"plugin:@typescript-eslint/recommended"
|
||||||
],
|
],
|
||||||
|
"overrides": [],
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
"ecmaVersion": "latest",
|
||||||
|
"sourceType": "module",
|
||||||
"project": "./tsconfig.json"
|
"project": "./tsconfig.json"
|
||||||
},
|
},
|
||||||
|
"settings": {
|
||||||
|
"react": {
|
||||||
|
"version": "detect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plugins": ["react", "@typescript-eslint"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/no-unsafe-argument": "warn",
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
||||||
"@typescript-eslint/no-unsafe-assignment": "warn",
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
||||||
"@typescript-eslint/unbound-method": "warn"
|
"@typescript-eslint/unbound-method": "warn"
|
||||||
},
|
},
|
||||||
"overrides": [],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"plugins": ["@typescript-eslint"],
|
|
||||||
"ignorePatterns": ["node_modules", "build", "webpack**", "src/public/"]
|
"ignorePatterns": ["node_modules", "build", "webpack**", "src/public/"]
|
||||||
}
|
}
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
||||||
build
|
build
|
||||||
dist
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./build/",
|
"outDir": "./build/util",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
|
|
|
@ -32,7 +32,20 @@ module.exports = {
|
||||||
new CopyPlugin({
|
new CopyPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{
|
{
|
||||||
|
// Copy utility files
|
||||||
from: "./src/util",
|
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