init
This commit is contained in:
commit
d8d0e9d536
2567 changed files with 167778 additions and 0 deletions
35
kubejs/eslint.config.mjs
Normal file
35
kubejs/eslint.config.mjs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
* ESLint configuration file.
|
||||
*/
|
||||
|
||||
import js from "@eslint/js";
|
||||
import stylistic from "@stylistic/eslint-plugin-js";
|
||||
import { MoniLabs } from "./dx/eslint-plugin/custom-plugin.mjs";
|
||||
|
||||
/** @type {import('eslint').Linter.Config[]} */
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
"@stylistic/js": stylistic,
|
||||
},
|
||||
rules: {
|
||||
"no-unused-vars": "off",
|
||||
"no-undef": "off",
|
||||
"no-unexpected-multiline": "off",
|
||||
"no-var": "error",
|
||||
"no-useless-escape": "warn",
|
||||
"space-infix-ops": ["error", { "int32Hint": true }],
|
||||
"@stylistic/js/indent": ["error", 4],
|
||||
"@stylistic/js/spaced-comment": "error",
|
||||
"@stylistic/js/linebreak-style": ["error", "unix"],
|
||||
"@stylistic/js/no-trailing-spaces": "error",
|
||||
"@stylistic/js/eol-last": ["error", "always"],
|
||||
"@stylistic/js/no-multi-spaces": ["error", { ignoreEOLComments: true }],
|
||||
"@stylistic/js/no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
|
||||
"@stylistic/js/no-extra-semi": "error",
|
||||
"@stylistic/js/quotes": ["error", "double", { avoidEscape: true }],
|
||||
},
|
||||
},
|
||||
MoniLabs,
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue