Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Commit 246dd97

Browse files
committed
Merge pull request #4 from mbst/sr-eslint
Add linting to styleguide
2 parents e48ff5f + 8abf78d commit 246dd97

File tree

4 files changed

+16
-133
lines changed

4 files changed

+16
-133
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
*A mostly reasonable approach to JavaScript*
55

6-
76
## Table of Contents
87

8+
1. [Linting](#linting)
99
1. [Types](#types)
1010
1. [Dates and times](#dates-and-times)
1111
1. [Objects](#objects)
@@ -40,6 +40,15 @@
4040
1. [Contributors](#contributors)
4141
1. [License](#license)
4242

43+
## Linting
44+
ESLint is already included in FESK and BESK, but if your current project isn't using it install the necessary modules:
45+
46+
```
47+
npm install --save-dev eslint-config-airbnb eslint
48+
```
49+
50+
Copy the `.eslintrc` file from this repos `linters` directory to your project root.
51+
4352
## Types
4453

4554
- **Primitives**: When you access a primitive type you work directly on its value.

linters/.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "airbnb/base",
3+
"rules": {
4+
// any additional rules or overrides go here
5+
}
6+
}

linters/SublimeLinter/SublimeLinter.sublime-settings

Lines changed: 0 additions & 73 deletions
This file was deleted.

linters/jshintrc

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)