mirror of
https://github.com/zoriya/flood.git
synced 2025-12-05 23:06:20 +00:00
This allows us to be dependency-free in production.
Caveats:
- NCC can't handle WASM. Thus, we have to remove WASM files inside
argon2-browser before build to force JS.
- Duplicate geoip databases inside dist/data and dist. We have to
remove dist/data after build.
25 lines
347 B
JavaScript
25 lines
347 B
JavaScript
module.exports = {
|
|
extends: '../.eslintrc',
|
|
|
|
env: {
|
|
browser: 0,
|
|
node: 1,
|
|
},
|
|
|
|
rules: {
|
|
'no-console': 0,
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
patterns: ['**/client/**/*'],
|
|
},
|
|
],
|
|
'no-restricted-modules': [
|
|
'error',
|
|
{
|
|
patterns: ['**/client/**/*'],
|
|
},
|
|
],
|
|
},
|
|
};
|