Skip to content

Commit

Permalink
Move all new rules into shareable configs
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 19, 2019
1 parent 42d2248 commit e78c328
Showing 1 changed file with 1 addition and 70 deletions.
71 changes: 1 addition & 70 deletions eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,3 @@
{
"extends": ["standard", "standard-jsx"],

"parserOptions": {
"ecmaVersion": 2019,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},

"rules": {
"dot-notation": ["error", { "allowKeywords": true }],
"import/no-absolute-path": ["error", { "esmodule": true, "commonjs": true, "amd": false }],
"indent": ["error", 2, {
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"MemberExpression": 1,
"FunctionDeclaration": { "parameters": 1, "body": 1 },
"FunctionExpression": { "parameters": 1, "body": 1 },
"CallExpression": { "arguments": 1 },
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoreComments": false,
"ignoredNodes": ["TemplateLiteral > *"]
}],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-case-declarations": "error",
"no-self-assign": ["error", { "props": true }],
"no-void": "error",
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
"quotes": ["error", "single", { "avoidEscape": true }],

"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/jsx-closing-tag-location": "error",
"react/jsx-curly-spacing": ["error", {
"attributes": { "when": "never" },
"children": { "when": "never" },
"allowMultiline": true
}],
"react/jsx-curly-newline": ["error", { "multiline": "consistent", "singleline": "consistent" }],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-handler-names": "error",
"react/jsx-indent": ["error", 2, { "checkAttributes": true, "indentLogicalExpressions": true }],
"react/jsx-key": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-target-blank": ["error", { "enforceDynamicLinks": "always" }],
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }],
"react/jsx-pascal-case": ["error", { "allowAllCaps": false }],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-tag-spacing": ["error", {
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}],
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "ignore",
"prop": "ignore"
}]
}
"extends": ["standard", "standard-jsx"]
}

0 comments on commit e78c328

Please sign in to comment.