forked from rocketacademy/basics-beat-that
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.79 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
env: {
browser: true,
},
extends: [
"airbnb-base",
],
rules: {
// Don't enforce block scope on "var" variable declarations, let JS behave as intended.
'block-scoped-var': 'off',
// Don't enforce control flow closing curly brace needs to be
// on same line as next control flow opening statement
'brace-style': 'off',
// Don't enforce ===
eqeqeq: 'off',
// Disable func-names rule so that we can have anonymous functions
'func-names': 'off',
// Disable linebreak style to prevent ESLint errors on Windows line endings
// https://eslint.org/docs/rules/linebreak-style
'linebreak-style': 'off',
// Allow console for students to debug
'no-console': 'off',
// Allow function param reassign for object properties
'no-param-reassign': ['error', { props: false }],
// Do not complain about unused main function
'no-unused-vars': ['error', { varsIgnorePattern: 'main' }],
// Enable var instead of just let and const
'no-var': 'off',
// Don't require a += b instead of a = a + b
'operator-assignment': 'off',
// Don't require array and object destructuring for variable assignment
'prefer-destructuring': 'off',
// Enable + sign to concatenate strings
'prefer-template': 'off',
// Disable radix requirement for functions like parseInt
radix: 'off',
// Don't require vars to be declared at the top
'vars-on-top': 'off',
// allow any kind of quotes
'quotes': 'off',
// allow any kind of comment formatting
'spaced-comment': 'off',
// dont care about oder of bool operators & linebreaks
'operator-linebreak': 'off',
// allow training spaces
'no-trailing-spaces': 'off',
// allow multi lines without dangling commas
'comma-dangle': 'off',
},
};