Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 9cf9a9f

Browse files
author
Marlow Payne
committed
Merge pull request #61 from mobify/fix-eslint-for-atom
Fix eslint for Atom
2 parents 48ad27a + 60804f8 commit 9cf9a9f

4 files changed

Lines changed: 286 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.2.0
2+
- Fixes eslint config to play nicely with Atom's linter-eslint package
3+
- Adds an eslint config reset file so that our ruleset is an override
14
2.1.1
25
- Re-publish to work-around NPM issue
36
2.1.0

javascript/.eslintrc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "./.eslintrc-reset",
23
"env": {
34
"node": true,
45
"browser": true,
@@ -102,17 +103,17 @@
102103
"no-inner-declarations": 2,
103104

104105
// Disallows the nesting of blocks more than 5 deep
105-
"max-depth": [2, "5"],
106+
"max-depth": [2, 5],
106107

107108
// Enforces a maximum of 10 parameters in a function declaration
108-
"max-params": [2, "10"],
109+
"max-params": [2, 10],
109110

110111
// Enforces a maximum of 25 statements within a single function
111-
"max-statements": [2, "25"],
112+
"max-statements": [2, 25],
112113

113114
// Enforces a maximum of 100 characters in a single line; adjusts tabs
114115
// to equal 4 characters
115-
"max-len": [2, "300", "4"],
116+
"max-len": [2, 300, 4],
116117

117118
// Enforces semicolons at the end of statements
118119
"semi": 2,

0 commit comments

Comments
 (0)