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,
|
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-spacing": "error",
|
||||||
"comma-style": "error",
|
"comma-style": "error",
|
||||||
curly: ["error", "all"],
|
curly: ["error", "multi-line"],
|
||||||
"func-call-spacing": "error",
|
"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", {
|
"no-multiple-empty-lines": ["error", {
|
||||||
max: 1,
|
max: 1,
|
||||||
}],
|
}],
|
||||||
@ -39,7 +35,7 @@ export default [{
|
|||||||
|
|
||||||
"operator-linebreak": ["error", "after"],
|
"operator-linebreak": ["error", "after"],
|
||||||
"padded-blocks": ["error", "never"],
|
"padded-blocks": ["error", "never"],
|
||||||
"quote-props": ["error", "consistent-as-needed"],
|
"quote-props": ["error", "as-needed"],
|
||||||
|
|
||||||
quotes: ["error", "double", {
|
quotes: ["error", "double", {
|
||||||
avoidEscape: true,
|
avoidEscape: true,
|
||||||
@ -71,10 +67,6 @@ export default [{
|
|||||||
|
|
||||||
"template-tag-spacing": ["error", "never"],
|
"template-tag-spacing": ["error", "never"],
|
||||||
|
|
||||||
"arrow-body-style": ["error", "as-needed", {
|
|
||||||
requireReturnForObjectLiteral: false,
|
|
||||||
}],
|
|
||||||
|
|
||||||
"arrow-parens": ["error", "always"],
|
"arrow-parens": ["error", "always"],
|
||||||
|
|
||||||
"arrow-spacing": ["error", {
|
"arrow-spacing": ["error", {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@jakejarvis/eslint-config",
|
"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.",
|
"description": "My ESLint config. Inspired heavily by eslint-config-google and moderately by eslint-config-airbnb.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "jakejarvis/eslint-config",
|
"repository": "jakejarvis/eslint-config",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user