Skip to content

Commit 1e3ce13

Browse files
committed
Remove style-related rules
Code style is handled by Prettier.
1 parent 3df93a4 commit 1e3ce13

File tree

1 file changed

+1
-86
lines changed

1 file changed

+1
-86
lines changed

config/base-rules.js

Lines changed: 1 addition & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ module.exports = {
1010
* Possible errors
1111
*/
1212

13-
// Enforce "for" loop update clause moving the counter
14-
// in the right direction
15-
'for-direction': 'error',
16-
1713
// Allow unnecessary parentheses
1814
'no-extra-parens': 'off',
1915

@@ -55,77 +51,21 @@ module.exports = {
5551
* Stylistic issues
5652
*/
5753

58-
// Require 'one true brace style', in which the opening brace
59-
// of a block is placed on the same line as its corresponding
60-
// statement or declaration
61-
'brace-style': ['error', '1tbs'],
62-
63-
// Disallow spaces inside of brackets
64-
'array-bracket-spacing': ['error', 'never'],
65-
6654
// Require CamelCase
6755
camelcase: ['error', { properties: 'never' }],
6856

69-
// Require or disallow trailing commas
70-
'comma-dangle': [
71-
'error',
72-
{
73-
arrays: 'always-multiline',
74-
objects: 'always-multiline',
75-
imports: 'always-multiline',
76-
exports: 'never',
77-
functions: 'never',
78-
},
79-
],
80-
81-
// Require space after comma
82-
'comma-spacing': ['error', { after: true }],
83-
84-
// Require newline at the end of files
85-
'eol-last': ['error', 'always'],
86-
87-
// Disallow spacing between function identifiers and their invocations
88-
'func-call-spacing': 'error',
89-
90-
// Use tabs as indentation
91-
// Enforce indentation level for case clauses in switch statements
92-
indent: ['error', 'tab', { SwitchCase: 1 }],
93-
94-
// Require space after colon in object literal properties
95-
'key-spacing': ['error', { afterColon: true }],
96-
97-
// Require space before and after keywords
98-
'keyword-spacing': 'error',
99-
100-
// Require Unix line endings
101-
'linebreak-style': ['error', 'unix'],
102-
103-
// Disallow empty block statements
104-
'no-empty': ['error', { allowEmptyCatch: true }],
105-
10657
// Disallow `if` statements as the only statement in `else` blocks
10758
'no-lonely-if': 'error',
10859

109-
// Disallow multiple spaces
110-
'no-multi-spaces': 'error',
111-
11260
// Disallow nested ternary expressions
11361
'no-nested-ternary': 'error',
11462

115-
// Disallow trailing whitespace at the end of lines
116-
'no-trailing-spaces': 'error',
117-
11863
// Disallow ternary operators when simpler alternatives exist
11964
'no-unneeded-ternary': 'error',
12065

121-
// Disallow whitespace before properties
122-
'no-whitespace-before-property': 'error',
123-
66+
// Enforce variables to be declared separately in functions
12467
'one-var': ['error', 'never'],
12568

126-
// Require spaces inside curly braces
127-
'object-curly-spacing': ['error', 'always'],
128-
12969
// Require single quotes
13070
quotes: [
13171
'error',
@@ -135,34 +75,9 @@ module.exports = {
13575
},
13676
],
13777

138-
// Require space before blocks
139-
'space-before-blocks': ['error', 'always'],
140-
141-
// Disallow a space before function parenthesis
142-
'space-before-function-paren': [
143-
'error',
144-
{
145-
named: 'never',
146-
anonymous: 'always',
147-
asyncArrow: 'always',
148-
},
149-
],
150-
151-
// Disallow spaces inside of parentheses
152-
'space-in-parens': 'error',
153-
154-
// Require spacing around infix operators
155-
'space-infix-ops': 'error',
156-
15778
// Enforce consistent spacing after the // or /* in a comment
15879
'spaced-comment': 'error',
15980

160-
// Require semicolon at the end of statement
161-
semi: ['error', 'always'],
162-
163-
// Enforce spacing around colons of switch statements
164-
'switch-colon-spacing': ['error', { after: true, before: false }],
165-
16681
/*
16782
* ECMAScript 6
16883
*/

0 commit comments

Comments
 (0)