Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit ce1e7bd

Browse files
fix(eslint-config-atlauncher): update some rules and add in jest to global
1 parent 2c4c77b commit ce1e7bd

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

packages/eslint-config-atlauncher/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
node: true,
3838
es6: true,
3939
browser: true,
40-
mocha: true,
40+
jest: true,
4141
},
4242
parser: 'babel-eslint',
4343
parserOptions: {

packages/eslint-config-atlauncher/rules/ecmascript-6.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
module.exports = {
22
rules: {
3-
// require braces unless straight returning a simple value
4-
'arrow-body-style': ['error', 'as-needed'],
3+
// always require braces in arrow functions
4+
'arrow-body-style': ['error', 'always'],
55

66
// always require the start of an arrow function to be wrapped in parenthesis
77
'arrow-parens': ['error', 'always'],
88

99
// require spaces before and after the `=>` in an arrow function
10-
'arrow-spacing': ['error', {
11-
before: true,
12-
after: true,
13-
}],
10+
'arrow-spacing': [
11+
'error',
12+
{
13+
before: true,
14+
after: true,
15+
},
16+
],
1417

1518
// require calling super when defining a constructor in a sub class
1619
'constructor-super': 'error',
1720

1821
// require generators to be defined as `function*()`
19-
'generator-star-spacing': ['error', {
20-
before: false,
21-
after: false,
22-
}],
22+
'generator-star-spacing': [
23+
'error',
24+
{
25+
before: false,
26+
after: false,
27+
},
28+
],
2329

2430
// don't allow reassigning class definitions
2531
'no-class-assign': 'error',

0 commit comments

Comments
 (0)