Ethan Lane
6f0109ae6e
All checks were successful
Test / build (push) Successful in 8s
- Update eslint #95, #185 Reviewed-on: #198 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
54 lines
No EOL
1.3 KiB
JavaScript
54 lines
No EOL
1.3 KiB
JavaScript
import js from "@eslint/js";
|
|
import ts from "typescript-eslint";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"**/dist/",
|
|
"eslint.config.mjs",
|
|
"jest.config.cjs",
|
|
"jest.setup.js"
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
exports: "writable",
|
|
module: "writable",
|
|
require: "writable",
|
|
process: "writable",
|
|
console: "writable",
|
|
jest: "writable",
|
|
},
|
|
|
|
ecmaVersion: 6,
|
|
sourceType: "script",
|
|
},
|
|
|
|
files: [
|
|
"./src",
|
|
"./tests"
|
|
],
|
|
|
|
rules: {
|
|
camelcase: "error",
|
|
"brace-style": ["error", "1tbs"],
|
|
"comma-dangle": ["error", "never"],
|
|
|
|
"comma-spacing": ["error", {
|
|
before: false,
|
|
after: true,
|
|
}],
|
|
|
|
"comma-style": ["error", "last"],
|
|
"arrow-body-style": ["error", "as-needed"],
|
|
"arrow-parens": ["error", "as-needed"],
|
|
"arrow-spacing": "error",
|
|
"no-var": "error",
|
|
"prefer-template": "error",
|
|
"prefer-const": "error",
|
|
},
|
|
}
|
|
]; |