loom/.eslintrc.cjs

66 lines
946 B
JavaScript
Raw Normal View History

2023-11-15 06:47:20 -08:00
module.exports = {
env: {
node: true,
jest: true,
},
extends: [
2023-11-15 07:55:55 -08:00
"eslint:recommended",
2023-11-15 06:47:20 -08:00
],
overrides: [
{
env: {
node: true,
},
2023-11-15 07:55:55 -08:00
files: [".eslintrc.{js,cjs}"],
2023-11-15 06:47:20 -08:00
parserOptions: {
2023-11-15 07:55:55 -08:00
sourceType: "script",
2023-11-15 06:47:20 -08:00
},
},
],
parserOptions: {
2023-11-15 07:55:55 -08:00
ecmaVersion: "latest",
sourceType: "module",
2023-11-15 06:47:20 -08:00
},
plugins: [
2023-11-15 07:55:55 -08:00
"jest",
2023-11-15 06:47:20 -08:00
],
rules: {
2023-11-15 07:55:55 -08:00
"no-console": [
"warn",
2023-11-15 06:47:20 -08:00
],
2023-11-15 07:55:55 -08:00
"no-unused-vars": [
"warn",
2023-11-15 06:47:20 -08:00
],
indent: [
2023-11-15 07:55:55 -08:00
"error",
"tab",
2023-11-15 06:47:20 -08:00
],
2023-11-15 07:55:55 -08:00
"no-tabs": ["off"],
"linebreak-style": [
"error",
"unix",
2023-11-15 06:47:20 -08:00
],
2023-11-15 07:55:55 -08:00
// quotes: [ "error", "double" ],
"max-len": [
"error",
2023-11-15 06:47:20 -08:00
{
code: 90,
comments: 80,
ignoreUrls: true,
ignoreRegExpLiterals: true,
},
],
2023-11-15 07:55:55 -08:00
"object-curly-spacing": ["off"],
"comma-dangle": [
"error",
2023-11-15 06:47:20 -08:00
{
2023-11-15 07:55:55 -08:00
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "ignore",
2023-11-15 06:47:20 -08:00
},
],
},
};