mirror of
https://github.com/jakejarvis/eslint-config.git
synced 2025-04-26 06:25:23 -04:00
fix some rules
This commit is contained in:
parent
fcb55a20bd
commit
ed541485b3
26
index.js
26
index.js
@ -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", {
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user