mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-03-21 17:24:28 -05:00
chore: update eslint to common
This commit is contained in:
parent
51fba60d8b
commit
e63adcd63f
|
|
@ -1,2 +0,0 @@
|
|||
# web javascript causes a lot of eslint warnings
|
||||
assets/js
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"commonjs": true,
|
||||
"es6": true
|
||||
},
|
||||
"globals": {
|
||||
"document": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2021
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"rules": {
|
||||
"no-case-declarations": "off",
|
||||
"no-empty": "off",
|
||||
"no-console": "off",
|
||||
"linebreak-style": "off",
|
||||
"prefer-const": "error",
|
||||
"no-var": "error",
|
||||
"one-var": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"indent": [
|
||||
"error",
|
||||
"tab",
|
||||
{
|
||||
"SwitchCase": 1
|
||||
}
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
}
|
||||
}
|
||||
26
eslint.config.mjs
Normal file
26
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import eslintConfig from '@pretendonetwork/eslint-config';
|
||||
import globals from 'globals';
|
||||
|
||||
export default [
|
||||
...eslintConfig,
|
||||
{
|
||||
files: ['public/**'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['src/**'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
ignores: ['**/*.bundled.js']
|
||||
}
|
||||
];
|
||||
5677
package-lock.json
generated
5677
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
|
@ -6,6 +6,8 @@
|
|||
"scripts": {
|
||||
"start": "node src/server.js",
|
||||
"build": "npm run browserify",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"browserify": "npm run browserify-miieditor && npm run browserify-reset-password",
|
||||
"browserify-miieditor": "browserify ./public/assets/js/miieditor.js -o ./public/assets/js/miieditor.bundled.js",
|
||||
"browserify-reset-password": "browserify ./public/assets/js/reset-password.js -o ./public/assets/js/reset-password.bundled.js"
|
||||
|
|
@ -46,6 +48,8 @@
|
|||
"stripe": "^9.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.32.0"
|
||||
"@pretendonetwork/eslint-config": "^0.0.3",
|
||||
"eslint": "^9.18.0",
|
||||
"globals": "^15.14.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user