mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 06:49:29 -07:00
feat: add eslint
This commit is contained in:
parent
c4b8423c6a
commit
fc50fd56a9
3 changed files with 1191 additions and 601 deletions
20
eslint.config.js
Normal file
20
eslint.config.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
import globals from "globals";
|
||||
import pluginJs from "@eslint/js";
|
||||
|
||||
|
||||
export default [
|
||||
{
|
||||
languageOptions: { globals: globals.node },
|
||||
rules: {
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"argsIgnorePattern": "^_",
|
||||
"caughtErrorsIgnorePattern": "^_",
|
||||
"destructuredArrayIgnorePattern": "^_",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
pluginJs.configs.recommended,
|
||||
];
|
1764
package-lock.json
generated
1764
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -29,11 +29,14 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.8.2",
|
||||
"@eslint/js": "^9.5.0",
|
||||
"@vercel/ncc": "^0.34.0",
|
||||
"chai": "^4.3.6",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"css-loader": "^6.6.0",
|
||||
"eslint": "^9.5.0",
|
||||
"esmock": "^2.5.0",
|
||||
"globals": "^15.6.0",
|
||||
"license-check-and-add": "^4.0.5",
|
||||
"mini-css-extract-plugin": "^2.5.3",
|
||||
"mocha": "^10.1.0",
|
||||
|
@ -56,11 +59,12 @@
|
|||
"build:server": "ncc build ./src/index.js -o dist",
|
||||
"build:static": "webpack --config webpack.config.js --env static=true --env mode=production",
|
||||
"build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development",
|
||||
"lint": "npm run standard:check & npm run biome:check",
|
||||
"lint": "npm run standard:check & npm run eslint:check & npm run biome:check",
|
||||
"standard:check": "standard ./src",
|
||||
"standard:fix": "standard --fix ./src",
|
||||
"biome:check": "npx @biomejs/biome check ./src",
|
||||
"biome:fix": "npx @biomejs/biome check --apply ./src",
|
||||
"eslint:check": "npx eslint ./src/**",
|
||||
"license:check": "license-check-and-add check",
|
||||
"license:add": "license-check-and-add add",
|
||||
"license:remove": "license-check-and-add remove"
|
||||
|
|
Loading…
Reference in a new issue