-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all of the friggin eslint errors Add admin js entries Check for dead code Fix lint
- Loading branch information
Showing
118 changed files
with
5,237 additions
and
19,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// eslint.config.js | ||
import js from '@eslint/js'; | ||
import pluginPrettier from 'eslint-plugin-prettier'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
{ | ||
files: ['tests/js/**/*.js'], | ||
...js.configs.recommended, | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
globals: { | ||
...globals.jest, | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.js'], | ||
ignores: [ | ||
'deps/**', | ||
'node_modules/**', | ||
'site-static/**', | ||
'static-build/**', | ||
], | ||
...js.configs.recommended, | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
globals: { | ||
...globals.browser, | ||
gettext: 'readonly', | ||
ngettext: 'readonly', | ||
}, | ||
}, | ||
|
||
plugins: { | ||
prettier: pluginPrettier, | ||
}, | ||
|
||
rules: { | ||
'no-undef': 2, | ||
'no-implicit-globals': 'error', | ||
strict: ['error', 'global'], | ||
|
||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
arrowParens: 'always', | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
proseWrap: 'never', | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@5/schema.json", | ||
"entry": ["static/js/*.js", "static/css/*.{less,css}"], | ||
"project": ["static/**/*.{js,less,css}"], | ||
"vite": { | ||
"config": "vite.config.js" | ||
}, | ||
"jest": { | ||
"config": "jest.config.js" | ||
}, | ||
"eslint": { | ||
"config": "eslint.config.js" | ||
} | ||
} |
Oops, something went wrong.