1
mirror of https://github.com/jakejarvis/eslint-config.git synced 2025-04-26 01:45:25 -04:00

fix some rules

This commit is contained in:
Jake Jarvis 2025-01-16 10:41:11 -05:00
parent fcb55a20bd
commit ed541485b3
Signed by: jake
SSH Key Fingerprint: SHA256:nCkvAjYA6XaSPUqc4TfbBQTpzr8Xj7ritg/sGInCdkc
2 changed files with 10 additions and 18 deletions

View File

@ -7,22 +7,18 @@ export default [{
ignoreDestructuring: true,
}],
"comma-dangle": ["error", "always-multiline"],
"comma-dangle": ["error", {
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "never"
}],
"comma-spacing": "error",
"comma-style": "error",
curly: ["error", "all"],
curly: ["error", "multi-line"],
"func-call-spacing": "error",
"max-len": ["warn", {
code: 120,
tabWidth: 2,
ignoreComments: false,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
}],
"no-multiple-empty-lines": ["error", {
max: 1,
}],
@ -39,7 +35,7 @@ export default [{
"operator-linebreak": ["error", "after"],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "consistent-as-needed"],
"quote-props": ["error", "as-needed"],
quotes: ["error", "double", {
avoidEscape: true,
@ -71,10 +67,6 @@ export default [{
"template-tag-spacing": ["error", "never"],
"arrow-body-style": ["error", "as-needed", {
requireReturnForObjectLiteral: false,
}],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", {

View File

@ -1,6 +1,6 @@
{
"name": "@jakejarvis/eslint-config",
"version": "4.0.2",
"version": "4.0.3",
"description": "My ESLint config. Inspired heavily by eslint-config-google and moderately by eslint-config-airbnb.",
"license": "MIT",
"repository": "jakejarvis/eslint-config",